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