| GET, POST | /fibuscan/WaehrungsAbfragen |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class waehrungskurse implements IPrimaryKey, IDel, ITableBase, IConvertible
{
int? id;
String? iso4217;
DateTime? datum;
double? betrag;
int? del;
DateTime? _erstellt;
DateTime? _aenderung;
// @Ignore()
int? PrimaryKey;
waehrungskurse({this.id,this.iso4217,this.datum,this.betrag,this.del,this._erstellt,this._aenderung,this.PrimaryKey});
waehrungskurse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
iso4217 = json['iso4217'];
datum = JsonConverters.fromJson(json['datum'],'DateTime',context!);
betrag = JsonConverters.toDouble(json['betrag']);
del = json['del'];
_erstellt = JsonConverters.fromJson(json['_erstellt'],'DateTime',context!);
_aenderung = JsonConverters.fromJson(json['_aenderung'],'DateTime',context!);
PrimaryKey = json['PrimaryKey'];
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'iso4217': iso4217,
'datum': JsonConverters.toJson(datum,'DateTime',context!),
'betrag': betrag,
'del': del,
'_erstellt': JsonConverters.toJson(_erstellt,'DateTime',context!),
'_aenderung': JsonConverters.toJson(_aenderung,'DateTime',context!),
'PrimaryKey': PrimaryKey
};
getTypeName() => "waehrungskurse";
TypeContext? context = _ctx;
}
class WaehrungskurseAbfragenResponse implements IConvertible
{
Map<DateTime,waehrungskurse?>? ResultDictionary;
WaehrungskurseAbfragenResponse({this.ResultDictionary});
WaehrungskurseAbfragenResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ResultDictionary = JsonConverters.fromJson(json['ResultDictionary'],'Map<DateTime,waehrungskurse?>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ResultDictionary': JsonConverters.toJson(ResultDictionary,'Map<DateTime,waehrungskurse?>',context!)
};
getTypeName() => "WaehrungskurseAbfragenResponse";
TypeContext? context = _ctx;
}
class WaehrungskurseAbfragenRequest implements IConvertible
{
DateTime? Von;
DateTime? Bis;
String? Waehrung;
WaehrungskurseAbfragenRequest({this.Von,this.Bis,this.Waehrung});
WaehrungskurseAbfragenRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Von = JsonConverters.fromJson(json['Von'],'DateTime',context!);
Bis = JsonConverters.fromJson(json['Bis'],'DateTime',context!);
Waehrung = json['Waehrung'];
return this;
}
Map<String, dynamic> toJson() => {
'Von': JsonConverters.toJson(Von,'DateTime',context!),
'Bis': JsonConverters.toJson(Bis,'DateTime',context!),
'Waehrung': Waehrung
};
getTypeName() => "WaehrungskurseAbfragenRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'ws4.fibudata.net', types: <String, TypeInfo> {
'waehrungskurse': TypeInfo(TypeOf.Class, create:() => waehrungskurse()),
'WaehrungskurseAbfragenResponse': TypeInfo(TypeOf.Class, create:() => WaehrungskurseAbfragenResponse()),
'Map<DateTime,waehrungskurse?>': TypeInfo(TypeOf.Class, create:() => Map<DateTime,waehrungskurse?>()),
'WaehrungskurseAbfragenRequest': TypeInfo(TypeOf.Class, create:() => WaehrungskurseAbfragenRequest()),
});
Dart WaehrungskurseAbfragenRequest 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 /fibuscan/WaehrungsAbfragen HTTP/1.1
Host: ws4.fibudata.net
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<WaehrungskurseAbfragenRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FIBUdataServiceStack.ServiceModel.Messages">
<Bis>0001-01-01T00:00:00</Bis>
<Von>0001-01-01T00:00:00</Von>
<Waehrung>String</Waehrung>
</WaehrungskurseAbfragenRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<WaehrungskurseAbfragenResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FIBUdataServiceStack.ServiceModel.Messages">
<ResultDictionary xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfdateTimewaehrungskursepVWdAnjX>
<d2p1:Key>0001-01-01T00:00:00</d2p1:Key>
<d2p1:Value xmlns:d4p1="http://schemas.datacontract.org/2004/07/FIBUdataServiceStack.ServiceModel.Models">
<d4p1:PrimaryKey>0</d4p1:PrimaryKey>
<d4p1:_aenderung>0001-01-01T00:00:00</d4p1:_aenderung>
<d4p1:_erstellt>0001-01-01T00:00:00</d4p1:_erstellt>
<d4p1:betrag>0</d4p1:betrag>
<d4p1:datum>0001-01-01T00:00:00</d4p1:datum>
<d4p1:del>0</d4p1:del>
<d4p1:id>0</d4p1:id>
<d4p1:iso4217>String</d4p1:iso4217>
</d2p1:Value>
</d2p1:KeyValueOfdateTimewaehrungskursepVWdAnjX>
</ResultDictionary>
</WaehrungskurseAbfragenResponse>