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 .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/UVIStatistikRequest HTTP/1.1
Host: 52.142.207.43
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"istTestmandant":false,"LizenzNr":"String","Firmierung":"String","Databasename":"String","Serveraddress":"String","UVI_Objekt":"String","UVI_Nutzeinheit":"String","UVI_Nutzername":"String","UVI_NutzungVon":"\/Date(-62135596800000-0000)\/","UVI_NutzungBis":"\/Date(-62135596800000-0000)\/","UVI_Monat":0,"UVI_Jahr":0,"UVI_ZweiteSeite":false,"UVI_Erstellt":"\/Date(-62135596800000-0000)\/","UVI_Post":false,"UVI_Email":false,"UVI_Online":false,"UVI_Masse":false}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"Antwort":false}