<?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 UpsertKiSchemaBeispielResponse implements JsonSerializable
{
public function __construct(
/** @var bool|null */
public ?bool $Status=null,
/** @var int */
public int $SchemaId=0
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Status'])) $this->Status = $o['Status'];
if (isset($o['SchemaId'])) $this->SchemaId = $o['SchemaId'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Status)) $o['Status'] = $this->Status;
if (isset($this->SchemaId)) $o['SchemaId'] = $this->SchemaId;
return empty($o) ? new class(){} : $o;
}
}
class UpsertKiSchemaBeispielRequest implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $Lizenz=null,
/** @var string|null */
public ?string $FehlerklasseId=null,
/** @var string|null */
public ?string $SchemaFingerprint=null,
/** @var string|null */
public ?string $FehlerMeldung=null,
/** @var string|null */
public ?string $KiAnalyse=null,
/** @var string|null */
public ?string $GeaenderteFelderJson=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Lizenz'])) $this->Lizenz = $o['Lizenz'];
if (isset($o['FehlerklasseId'])) $this->FehlerklasseId = $o['FehlerklasseId'];
if (isset($o['SchemaFingerprint'])) $this->SchemaFingerprint = $o['SchemaFingerprint'];
if (isset($o['FehlerMeldung'])) $this->FehlerMeldung = $o['FehlerMeldung'];
if (isset($o['KiAnalyse'])) $this->KiAnalyse = $o['KiAnalyse'];
if (isset($o['GeaenderteFelderJson'])) $this->GeaenderteFelderJson = $o['GeaenderteFelderJson'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Lizenz)) $o['Lizenz'] = $this->Lizenz;
if (isset($this->FehlerklasseId)) $o['FehlerklasseId'] = $this->FehlerklasseId;
if (isset($this->SchemaFingerprint)) $o['SchemaFingerprint'] = $this->SchemaFingerprint;
if (isset($this->FehlerMeldung)) $o['FehlerMeldung'] = $this->FehlerMeldung;
if (isset($this->KiAnalyse)) $o['KiAnalyse'] = $this->KiAnalyse;
if (isset($this->GeaenderteFelderJson)) $o['GeaenderteFelderJson'] = $this->GeaenderteFelderJson;
return empty($o) ? new class(){} : $o;
}
}
PHP UpsertKiSchemaBeispielRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /jsonl/reply/UpsertKiSchemaBeispielRequest HTTP/1.1
Host: 52.142.207.43
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"Lizenz":"String","FehlerklasseId":"String","SchemaFingerprint":"String","FehlerMeldung":"String","KiAnalyse":"String","GeaenderteFelderJson":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"Status":false,"SchemaId":0}