WebService

<back to all web services

UVIStatistikRequest

<?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 UVIStatistikResponse 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 UVIStatistikRequest 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 $UVI_Objekt=null,
        /** @var string|null */
        public ?string $UVI_Nutzeinheit=null,
        /** @var string|null */
        public ?string $UVI_Nutzername=null,
        /** @var DateTime */
        public DateTime $UVI_NutzungVon=new DateTime(),
        /** @var DateTime */
        public DateTime $UVI_NutzungBis=new DateTime(),
        /** @var int */
        public int $UVI_Monat=0,
        /** @var int */
        public int $UVI_Jahr=0,
        /** @var bool|null */
        public ?bool $UVI_ZweiteSeite=null,
        /** @var DateTime */
        public DateTime $UVI_Erstellt=new DateTime(),
        /** @var bool|null */
        public ?bool $UVI_Post=null,
        /** @var bool|null */
        public ?bool $UVI_Email=null,
        /** @var bool|null */
        public ?bool $UVI_Online=null,
        /** @var bool|null */
        public ?bool $UVI_Masse=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['UVI_Objekt'])) $this->UVI_Objekt = $o['UVI_Objekt'];
        if (isset($o['UVI_Nutzeinheit'])) $this->UVI_Nutzeinheit = $o['UVI_Nutzeinheit'];
        if (isset($o['UVI_Nutzername'])) $this->UVI_Nutzername = $o['UVI_Nutzername'];
        if (isset($o['UVI_NutzungVon'])) $this->UVI_NutzungVon = JsonConverters::from('DateTime', $o['UVI_NutzungVon']);
        if (isset($o['UVI_NutzungBis'])) $this->UVI_NutzungBis = JsonConverters::from('DateTime', $o['UVI_NutzungBis']);
        if (isset($o['UVI_Monat'])) $this->UVI_Monat = $o['UVI_Monat'];
        if (isset($o['UVI_Jahr'])) $this->UVI_Jahr = $o['UVI_Jahr'];
        if (isset($o['UVI_ZweiteSeite'])) $this->UVI_ZweiteSeite = $o['UVI_ZweiteSeite'];
        if (isset($o['UVI_Erstellt'])) $this->UVI_Erstellt = JsonConverters::from('DateTime', $o['UVI_Erstellt']);
        if (isset($o['UVI_Post'])) $this->UVI_Post = $o['UVI_Post'];
        if (isset($o['UVI_Email'])) $this->UVI_Email = $o['UVI_Email'];
        if (isset($o['UVI_Online'])) $this->UVI_Online = $o['UVI_Online'];
        if (isset($o['UVI_Masse'])) $this->UVI_Masse = $o['UVI_Masse'];
    }
    
    /** @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->UVI_Objekt)) $o['UVI_Objekt'] = $this->UVI_Objekt;
        if (isset($this->UVI_Nutzeinheit)) $o['UVI_Nutzeinheit'] = $this->UVI_Nutzeinheit;
        if (isset($this->UVI_Nutzername)) $o['UVI_Nutzername'] = $this->UVI_Nutzername;
        if (isset($this->UVI_NutzungVon)) $o['UVI_NutzungVon'] = JsonConverters::to('DateTime', $this->UVI_NutzungVon);
        if (isset($this->UVI_NutzungBis)) $o['UVI_NutzungBis'] = JsonConverters::to('DateTime', $this->UVI_NutzungBis);
        if (isset($this->UVI_Monat)) $o['UVI_Monat'] = $this->UVI_Monat;
        if (isset($this->UVI_Jahr)) $o['UVI_Jahr'] = $this->UVI_Jahr;
        if (isset($this->UVI_ZweiteSeite)) $o['UVI_ZweiteSeite'] = $this->UVI_ZweiteSeite;
        if (isset($this->UVI_Erstellt)) $o['UVI_Erstellt'] = JsonConverters::to('DateTime', $this->UVI_Erstellt);
        if (isset($this->UVI_Post)) $o['UVI_Post'] = $this->UVI_Post;
        if (isset($this->UVI_Email)) $o['UVI_Email'] = $this->UVI_Email;
        if (isset($this->UVI_Online)) $o['UVI_Online'] = $this->UVI_Online;
        if (isset($this->UVI_Masse)) $o['UVI_Masse'] = $this->UVI_Masse;
        return empty($o) ? new class(){} : $o;
    }
}

PHP UVIStatistikRequest DTOs

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

HTTP + XML

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

POST /xml/reply/UVIStatistikRequest HTTP/1.1 
Host: 52.142.207.43 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<ecUpdaterLicenseCommModel.UVIStatistikRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EndianUpdaterLicenser">
  <Databasename>String</Databasename>
  <Firmierung>String</Firmierung>
  <LizenzNr>String</LizenzNr>
  <Serveraddress>String</Serveraddress>
  <UVI_Email>false</UVI_Email>
  <UVI_Erstellt>0001-01-01T00:00:00</UVI_Erstellt>
  <UVI_Jahr>0</UVI_Jahr>
  <UVI_Masse>false</UVI_Masse>
  <UVI_Monat>0</UVI_Monat>
  <UVI_Nutzeinheit>String</UVI_Nutzeinheit>
  <UVI_Nutzername>String</UVI_Nutzername>
  <UVI_NutzungBis>0001-01-01T00:00:00</UVI_NutzungBis>
  <UVI_NutzungVon>0001-01-01T00:00:00</UVI_NutzungVon>
  <UVI_Objekt>String</UVI_Objekt>
  <UVI_Online>false</UVI_Online>
  <UVI_Post>false</UVI_Post>
  <UVI_ZweiteSeite>false</UVI_ZweiteSeite>
  <istTestmandant>false</istTestmandant>
</ecUpdaterLicenseCommModel.UVIStatistikRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ecUpdaterLicenseCommModel.UVIStatistikResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EndianUpdaterLicenser">
  <Antwort>false</Antwort>
</ecUpdaterLicenseCommModel.UVIStatistikResponse>