<?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 .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /xml/reply/SaveKiDiffDetailsRequest HTTP/1.1
Host: 52.142.207.43
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<ecUpdaterLicenseCommModel.SaveKiDiffDetailsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EndianUpdaterLicenser">
<Aenderungstyp>String</Aenderungstyp>
<GeaenderteFelderJson>String</GeaenderteFelderJson>
<KiAnalyseId>0</KiAnalyseId>
<Lizenz>String</Lizenz>
<NachSnapshotJSON>String</NachSnapshotJSON>
<VorSnapshotJSON>String</VorSnapshotJSON>
</ecUpdaterLicenseCommModel.SaveKiDiffDetailsRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <ecUpdaterLicenseCommModel.SaveKiDiffDetailsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EndianUpdaterLicenser"> <DiffId>0</DiffId> <Status>false</Status> </ecUpdaterLicenseCommModel.SaveKiDiffDetailsResponse>