Betting.WebApi

<back to all web services

GetE2EProgress

The following routes are available for this service:
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()),
});

Dart GetE2EProgress DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"id":"String","isActive":false,"slipsTotal":0,"slipsSubmitted":0,"lastUTCChange":"0001-01-01T00:00:00.0000000Z"}