<?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 MndStatistikCheckResponse implements JsonSerializable
{
public function __construct(
/** @var bool|null */
public ?bool $Antwort=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Antwort'])) $this->Antwort = $o['Antwort'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Antwort)) $o['Antwort'] = $this->Antwort;
return empty($o) ? new class(){} : $o;
}
}
class MndStatistikCheckedRequest implements JsonSerializable
{
public function __construct(
/** @var bool|null */
public ?bool $istTestmandant=null,
/** @var string|null */
public ?string $LizenzNr=null,
/** @var string|null */
public ?string $Firmierung=null,
/** @var string|null */
public ?string $Databasename=null,
/** @var string|null */
public ?string $Serveraddress=null,
/** @var string|null */
public ?string $Port=null,
/** @var DateTime */
public DateTime $LetzteAenderungMandant=new DateTime(),
/** @var int */
public int $AnzahlAbrechnungen=0,
/** @var int */
public int $AnzahlNutzeinheiten=0,
/** @var int */
public int $AnzahlArchiv=0,
/** @var int */
public int $UVIObjekte=0,
/** @var int */
public int $UVIKeine=0,
/** @var int */
public int $UVIPost=0,
/** @var int */
public int $UVIEMail=0,
/** @var int */
public int $UVIOnline=0,
/** @var DateTime */
public DateTime $UVIZuletzt=new DateTime(),
/** @var string|null */
public ?string $AbrDetail=null,
/** @var int|null */
public ?int $AnzahlNeuObjekte=null,
/** @var int|null */
public ?int $AnzahlNeuNutzeinheiten=null,
/** @var string|null */
public ?string $NeuDetail=null,
/** @var int|null */
public ?int $AnzahlGekuendigtObjekte=null,
/** @var int|null */
public ?int $AnzahlGekuendigtNutzeinheiten=null,
/** @var string|null */
public ?string $GekuendigtDetail=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['istTestmandant'])) $this->istTestmandant = $o['istTestmandant'];
if (isset($o['LizenzNr'])) $this->LizenzNr = $o['LizenzNr'];
if (isset($o['Firmierung'])) $this->Firmierung = $o['Firmierung'];
if (isset($o['Databasename'])) $this->Databasename = $o['Databasename'];
if (isset($o['Serveraddress'])) $this->Serveraddress = $o['Serveraddress'];
if (isset($o['Port'])) $this->Port = $o['Port'];
if (isset($o['LetzteAenderungMandant'])) $this->LetzteAenderungMandant = JsonConverters::from('DateTime', $o['LetzteAenderungMandant']);
if (isset($o['AnzahlAbrechnungen'])) $this->AnzahlAbrechnungen = $o['AnzahlAbrechnungen'];
if (isset($o['AnzahlNutzeinheiten'])) $this->AnzahlNutzeinheiten = $o['AnzahlNutzeinheiten'];
if (isset($o['AnzahlArchiv'])) $this->AnzahlArchiv = $o['AnzahlArchiv'];
if (isset($o['UVIObjekte'])) $this->UVIObjekte = $o['UVIObjekte'];
if (isset($o['UVIKeine'])) $this->UVIKeine = $o['UVIKeine'];
if (isset($o['UVIPost'])) $this->UVIPost = $o['UVIPost'];
if (isset($o['UVIEMail'])) $this->UVIEMail = $o['UVIEMail'];
if (isset($o['UVIOnline'])) $this->UVIOnline = $o['UVIOnline'];
if (isset($o['UVIZuletzt'])) $this->UVIZuletzt = JsonConverters::from('DateTime', $o['UVIZuletzt']);
if (isset($o['AbrDetail'])) $this->AbrDetail = $o['AbrDetail'];
if (isset($o['AnzahlNeuObjekte'])) $this->AnzahlNeuObjekte = $o['AnzahlNeuObjekte'];
if (isset($o['AnzahlNeuNutzeinheiten'])) $this->AnzahlNeuNutzeinheiten = $o['AnzahlNeuNutzeinheiten'];
if (isset($o['NeuDetail'])) $this->NeuDetail = $o['NeuDetail'];
if (isset($o['AnzahlGekuendigtObjekte'])) $this->AnzahlGekuendigtObjekte = $o['AnzahlGekuendigtObjekte'];
if (isset($o['AnzahlGekuendigtNutzeinheiten'])) $this->AnzahlGekuendigtNutzeinheiten = $o['AnzahlGekuendigtNutzeinheiten'];
if (isset($o['GekuendigtDetail'])) $this->GekuendigtDetail = $o['GekuendigtDetail'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->istTestmandant)) $o['istTestmandant'] = $this->istTestmandant;
if (isset($this->LizenzNr)) $o['LizenzNr'] = $this->LizenzNr;
if (isset($this->Firmierung)) $o['Firmierung'] = $this->Firmierung;
if (isset($this->Databasename)) $o['Databasename'] = $this->Databasename;
if (isset($this->Serveraddress)) $o['Serveraddress'] = $this->Serveraddress;
if (isset($this->Port)) $o['Port'] = $this->Port;
if (isset($this->LetzteAenderungMandant)) $o['LetzteAenderungMandant'] = JsonConverters::to('DateTime', $this->LetzteAenderungMandant);
if (isset($this->AnzahlAbrechnungen)) $o['AnzahlAbrechnungen'] = $this->AnzahlAbrechnungen;
if (isset($this->AnzahlNutzeinheiten)) $o['AnzahlNutzeinheiten'] = $this->AnzahlNutzeinheiten;
if (isset($this->AnzahlArchiv)) $o['AnzahlArchiv'] = $this->AnzahlArchiv;
if (isset($this->UVIObjekte)) $o['UVIObjekte'] = $this->UVIObjekte;
if (isset($this->UVIKeine)) $o['UVIKeine'] = $this->UVIKeine;
if (isset($this->UVIPost)) $o['UVIPost'] = $this->UVIPost;
if (isset($this->UVIEMail)) $o['UVIEMail'] = $this->UVIEMail;
if (isset($this->UVIOnline)) $o['UVIOnline'] = $this->UVIOnline;
if (isset($this->UVIZuletzt)) $o['UVIZuletzt'] = JsonConverters::to('DateTime', $this->UVIZuletzt);
if (isset($this->AbrDetail)) $o['AbrDetail'] = $this->AbrDetail;
if (isset($this->AnzahlNeuObjekte)) $o['AnzahlNeuObjekte'] = $this->AnzahlNeuObjekte;
if (isset($this->AnzahlNeuNutzeinheiten)) $o['AnzahlNeuNutzeinheiten'] = $this->AnzahlNeuNutzeinheiten;
if (isset($this->NeuDetail)) $o['NeuDetail'] = $this->NeuDetail;
if (isset($this->AnzahlGekuendigtObjekte)) $o['AnzahlGekuendigtObjekte'] = $this->AnzahlGekuendigtObjekte;
if (isset($this->AnzahlGekuendigtNutzeinheiten)) $o['AnzahlGekuendigtNutzeinheiten'] = $this->AnzahlGekuendigtNutzeinheiten;
if (isset($this->GekuendigtDetail)) $o['GekuendigtDetail'] = $this->GekuendigtDetail;
return empty($o) ? new class(){} : $o;
}
}
PHP MndStatistikCheckedRequest 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/MndStatistikCheckedRequest HTTP/1.1
Host: 52.142.207.43
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<ecUpdaterLicenseCommModel.MndStatistikCheckedRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EndianUpdaterLicenser">
<AbrDetail>String</AbrDetail>
<AnzahlAbrechnungen>0</AnzahlAbrechnungen>
<AnzahlArchiv>0</AnzahlArchiv>
<AnzahlGekuendigtNutzeinheiten>0</AnzahlGekuendigtNutzeinheiten>
<AnzahlGekuendigtObjekte>0</AnzahlGekuendigtObjekte>
<AnzahlNeuNutzeinheiten>0</AnzahlNeuNutzeinheiten>
<AnzahlNeuObjekte>0</AnzahlNeuObjekte>
<AnzahlNutzeinheiten>0</AnzahlNutzeinheiten>
<Databasename>String</Databasename>
<Firmierung>String</Firmierung>
<GekuendigtDetail>String</GekuendigtDetail>
<LetzteAenderungMandant>0001-01-01T00:00:00</LetzteAenderungMandant>
<LizenzNr>String</LizenzNr>
<NeuDetail>String</NeuDetail>
<Port>String</Port>
<Serveraddress>String</Serveraddress>
<UVIEMail>0</UVIEMail>
<UVIKeine>0</UVIKeine>
<UVIObjekte>0</UVIObjekte>
<UVIOnline>0</UVIOnline>
<UVIPost>0</UVIPost>
<UVIZuletzt>0001-01-01T00:00:00</UVIZuletzt>
<istTestmandant>false</istTestmandant>
</ecUpdaterLicenseCommModel.MndStatistikCheckedRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <ecUpdaterLicenseCommModel.MndStatistikCheckResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EndianUpdaterLicenser"> <Antwort>false</Antwort> </ecUpdaterLicenseCommModel.MndStatistikCheckResponse>