import 'package:servicestack/servicestack.dart';
class UVIStatistikResponse implements IConvertible
{
bool? Antwort;
UVIStatistikResponse({this.Antwort});
UVIStatistikResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Antwort = json['Antwort'];
return this;
}
Map<String, dynamic> toJson() => {
'Antwort': Antwort
};
getTypeName() => "UVIStatistikResponse";
TypeContext? context = _ctx;
}
class UVIStatistikRequest implements IConvertible
{
bool? istTestmandant;
String? LizenzNr;
String? Firmierung;
String? Databasename;
String? Serveraddress;
String? UVI_Objekt;
String? UVI_Nutzeinheit;
String? UVI_Nutzername;
DateTime? UVI_NutzungVon;
DateTime? UVI_NutzungBis;
int? UVI_Monat;
int? UVI_Jahr;
bool? UVI_ZweiteSeite;
DateTime? UVI_Erstellt;
bool? UVI_Post;
bool? UVI_Email;
bool? UVI_Online;
bool? UVI_Masse;
UVIStatistikRequest({this.istTestmandant,this.LizenzNr,this.Firmierung,this.Databasename,this.Serveraddress,this.UVI_Objekt,this.UVI_Nutzeinheit,this.UVI_Nutzername,this.UVI_NutzungVon,this.UVI_NutzungBis,this.UVI_Monat,this.UVI_Jahr,this.UVI_ZweiteSeite,this.UVI_Erstellt,this.UVI_Post,this.UVI_Email,this.UVI_Online,this.UVI_Masse});
UVIStatistikRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
istTestmandant = json['istTestmandant'];
LizenzNr = json['LizenzNr'];
Firmierung = json['Firmierung'];
Databasename = json['Databasename'];
Serveraddress = json['Serveraddress'];
UVI_Objekt = json['UVI_Objekt'];
UVI_Nutzeinheit = json['UVI_Nutzeinheit'];
UVI_Nutzername = json['UVI_Nutzername'];
UVI_NutzungVon = JsonConverters.fromJson(json['UVI_NutzungVon'],'DateTime',context!);
UVI_NutzungBis = JsonConverters.fromJson(json['UVI_NutzungBis'],'DateTime',context!);
UVI_Monat = json['UVI_Monat'];
UVI_Jahr = json['UVI_Jahr'];
UVI_ZweiteSeite = json['UVI_ZweiteSeite'];
UVI_Erstellt = JsonConverters.fromJson(json['UVI_Erstellt'],'DateTime',context!);
UVI_Post = json['UVI_Post'];
UVI_Email = json['UVI_Email'];
UVI_Online = json['UVI_Online'];
UVI_Masse = json['UVI_Masse'];
return this;
}
Map<String, dynamic> toJson() => {
'istTestmandant': istTestmandant,
'LizenzNr': LizenzNr,
'Firmierung': Firmierung,
'Databasename': Databasename,
'Serveraddress': Serveraddress,
'UVI_Objekt': UVI_Objekt,
'UVI_Nutzeinheit': UVI_Nutzeinheit,
'UVI_Nutzername': UVI_Nutzername,
'UVI_NutzungVon': JsonConverters.toJson(UVI_NutzungVon,'DateTime',context!),
'UVI_NutzungBis': JsonConverters.toJson(UVI_NutzungBis,'DateTime',context!),
'UVI_Monat': UVI_Monat,
'UVI_Jahr': UVI_Jahr,
'UVI_ZweiteSeite': UVI_ZweiteSeite,
'UVI_Erstellt': JsonConverters.toJson(UVI_Erstellt,'DateTime',context!),
'UVI_Post': UVI_Post,
'UVI_Email': UVI_Email,
'UVI_Online': UVI_Online,
'UVI_Masse': UVI_Masse
};
getTypeName() => "UVIStatistikRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: '52.142.207.43', types: <String, TypeInfo> {
'UVIStatistikResponse': TypeInfo(TypeOf.Class, create:() => UVIStatistikResponse()),
'UVIStatistikRequest': TypeInfo(TypeOf.Class, create:() => UVIStatistikRequest()),
});
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/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>