| GET | /qry/e2e/progress |
|---|
import 'package:servicestack/servicestack.dart';
class E2EProgress implements IConvertible
{
String? id;
bool? isActive;
int? slipsTotal;
int? slipsSubmitted;
DateTime? lastUTCChange;
E2EProgress({this.id,this.isActive,this.slipsTotal,this.slipsSubmitted,this.lastUTCChange});
E2EProgress.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
isActive = json['isActive'];
slipsTotal = json['slipsTotal'];
slipsSubmitted = json['slipsSubmitted'];
lastUTCChange = JsonConverters.fromJson(json['lastUTCChange'],'DateTime',context!);
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'isActive': isActive,
'slipsTotal': slipsTotal,
'slipsSubmitted': slipsSubmitted,
'lastUTCChange': JsonConverters.toJson(lastUTCChange,'DateTime',context!)
};
getTypeName() => "E2EProgress";
TypeContext? context = _ctx;
}
class GetE2EProgress implements IConvertible
{
GetE2EProgress();
GetE2EProgress.fromJson(Map<String, dynamic> json) : super();
fromMap(Map<String, dynamic> json) {
return this;
}
Map<String, dynamic> toJson() => {};
getTypeName() => "GetE2EProgress";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.sbbet.ath.cx', types: <String, TypeInfo> {
'E2EProgress': TypeInfo(TypeOf.Class, create:() => E2EProgress()),
'GetE2EProgress': TypeInfo(TypeOf.Class, create:() => GetE2EProgress()),
});
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.
GET /qry/e2e/progress HTTP/1.1 Host: api.sbbet.ath.cx Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <E2EProgress xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Betting.ReadModel"> <Id>String</Id> <IsActive>false</IsActive> <LastUTCChange>0001-01-01T00:00:00</LastUTCChange> <SlipsSubmitted>0</SlipsSubmitted> <SlipsTotal>0</SlipsTotal> </E2EProgress>