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 .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /jsv/reply/UVIStatistikRequest HTTP/1.1
Host: 52.142.207.43
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
istTestmandant: False,
LizenzNr: String,
Firmierung: String,
Databasename: String,
Serveraddress: String,
UVI_Objekt: String,
UVI_Nutzeinheit: String,
UVI_Nutzername: String,
UVI_NutzungVon: 0001-01-01,
UVI_NutzungBis: 0001-01-01,
UVI_Monat: 0,
UVI_Jahr: 0,
UVI_ZweiteSeite: False,
UVI_Erstellt: 0001-01-01,
UVI_Post: False,
UVI_Email: False,
UVI_Online: False,
UVI_Masse: False
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Antwort: False
}