Greyhounds.WebApi

<back to all web services

GetRecentJackpotWinners

The following routes are available for this service:
GET/qry/recentJackpotWinners
import 'package:servicestack/servicestack.dart';

class RecentJackpotWinner implements IConvertible
{
    String? betId;
    String? slipId;
    String? jpId;
    double amount = 0;
    String? locationId;
    String? locationName;
    String? addressLine;
    String? roundId;
    DateTime wonAtUtc = DateTime(0);

    RecentJackpotWinner({this.betId,this.slipId,this.jpId,this.amount,this.locationId,this.locationName,this.addressLine,this.roundId,this.wonAtUtc});
    RecentJackpotWinner.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        betId = json['betId'];
        slipId = json['slipId'];
        jpId = json['jpId'];
        amount = JsonConverters.toDouble(json['amount']);
        locationId = json['locationId'];
        locationName = json['locationName'];
        addressLine = json['addressLine'];
        roundId = json['roundId'];
        wonAtUtc = JsonConverters.fromJson(json['wonAtUtc'],'DateTime',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'betId': betId,
        'slipId': slipId,
        'jpId': jpId,
        'amount': amount,
        'locationId': locationId,
        'locationName': locationName,
        'addressLine': addressLine,
        'roundId': roundId,
        'wonAtUtc': JsonConverters.toJson(wonAtUtc,'DateTime',context!)
    };

    getTypeName() => "RecentJackpotWinner";
    TypeContext? context = _ctx;
}

class RecentJackpotWinners implements IConvertible
{
    String? id;
    List<RecentJackpotWinner>? recentWinners;

    RecentJackpotWinners({this.id,this.recentWinners});
    RecentJackpotWinners.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        recentWinners = JsonConverters.fromJson(json['recentWinners'],'List<RecentJackpotWinner>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'recentWinners': JsonConverters.toJson(recentWinners,'List<RecentJackpotWinner>',context!)
    };

    getTypeName() => "RecentJackpotWinners";
    TypeContext? context = _ctx;
}

class GetRecentJackpotWinners implements IConvertible
{
    GetRecentJackpotWinners();
    GetRecentJackpotWinners.fromJson(Map<String, dynamic> json) : super();
    fromMap(Map<String, dynamic> json) {
        return this;
    }

    Map<String, dynamic> toJson() => {};
    getTypeName() => "GetRecentJackpotWinners";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'grh1.api.bettor.webhop.biz', types: <String, TypeInfo> {
    'RecentJackpotWinner': TypeInfo(TypeOf.Class, create:() => RecentJackpotWinner()),
    'RecentJackpotWinners': TypeInfo(TypeOf.Class, create:() => RecentJackpotWinners()),
    'List<RecentJackpotWinner>': TypeInfo(TypeOf.Class, create:() => <RecentJackpotWinner>[]),
    'GetRecentJackpotWinners': TypeInfo(TypeOf.Class, create:() => GetRecentJackpotWinners()),
});

Dart GetRecentJackpotWinners DTOs

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

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /qry/recentJackpotWinners HTTP/1.1 
Host: grh1.api.bettor.webhop.biz 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"id":"String","recentWinners":[{"betId":"String","slipId":"String","jpId":"String","amount":0,"locationId":"String","locationName":"String","addressLine":"String","roundId":"String","wonAtUtc":"0001-01-01T00:00:00.0000000Z"}]}