WebService

<back to all web services

SaveKiDiffDetailsRequest

<?php namespace dtos;

use DateTime;
use Exception;
use DateInterval;
use JsonSerializable;
use ServiceStack\{IReturn,IReturnVoid,IGet,IPost,IPut,IDelete,IPatch,IMeta,IHasSessionId,IHasBearerToken,IHasVersion};
use ServiceStack\{ICrud,ICreateDb,IUpdateDb,IPatchDb,IDeleteDb,ISaveDb,AuditBase,QueryDb,QueryDb2,QueryData,QueryData2,QueryResponse};
use ServiceStack\{ResponseStatus,ResponseError,EmptyResponse,IdResponse,ArrayList,KeyValuePair2,StringResponse,StringsResponse,Tuple2,Tuple3,ByteArray};
use ServiceStack\{JsonConverters,Returns,TypeContext};


class SaveKiDiffDetailsResponse implements JsonSerializable
{
    public function __construct(
        /** @var bool|null */
        public ?bool $Status=null,
        /** @var int */
        public int $DiffId=0
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['Status'])) $this->Status = $o['Status'];
        if (isset($o['DiffId'])) $this->DiffId = $o['DiffId'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->Status)) $o['Status'] = $this->Status;
        if (isset($this->DiffId)) $o['DiffId'] = $this->DiffId;
        return empty($o) ? new class(){} : $o;
    }
}

class SaveKiDiffDetailsRequest implements JsonSerializable
{
    public function __construct(
        /** @var string|null */
        public ?string $Lizenz=null,
        /** @var int */
        public int $KiAnalyseId=0,
        /** @var string|null */
        public ?string $VorSnapshotJSON=null,
        /** @var string|null */
        public ?string $NachSnapshotJSON=null,
        /** @var string|null */
        public ?string $GeaenderteFelderJson=null,
        /** @var string|null */
        public ?string $Aenderungstyp=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['Lizenz'])) $this->Lizenz = $o['Lizenz'];
        if (isset($o['KiAnalyseId'])) $this->KiAnalyseId = $o['KiAnalyseId'];
        if (isset($o['VorSnapshotJSON'])) $this->VorSnapshotJSON = $o['VorSnapshotJSON'];
        if (isset($o['NachSnapshotJSON'])) $this->NachSnapshotJSON = $o['NachSnapshotJSON'];
        if (isset($o['GeaenderteFelderJson'])) $this->GeaenderteFelderJson = $o['GeaenderteFelderJson'];
        if (isset($o['Aenderungstyp'])) $this->Aenderungstyp = $o['Aenderungstyp'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->Lizenz)) $o['Lizenz'] = $this->Lizenz;
        if (isset($this->KiAnalyseId)) $o['KiAnalyseId'] = $this->KiAnalyseId;
        if (isset($this->VorSnapshotJSON)) $o['VorSnapshotJSON'] = $this->VorSnapshotJSON;
        if (isset($this->NachSnapshotJSON)) $o['NachSnapshotJSON'] = $this->NachSnapshotJSON;
        if (isset($this->GeaenderteFelderJson)) $o['GeaenderteFelderJson'] = $this->GeaenderteFelderJson;
        if (isset($this->Aenderungstyp)) $o['Aenderungstyp'] = $this->Aenderungstyp;
        return empty($o) ? new class(){} : $o;
    }
}

PHP SaveKiDiffDetailsRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /csv/reply/SaveKiDiffDetailsRequest HTTP/1.1 
Host: 52.142.207.43 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"Lizenz":"String","KiAnalyseId":0,"VorSnapshotJSON":"String","NachSnapshotJSON":"String","GeaenderteFelderJson":"String","Aenderungstyp":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Status":false,"DiffId":0}