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 .xml suffix or ?format=xml

HTTP + XML

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

<RecentJackpotWinners xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Greyhounds.ReadModel">
  <Id>String</Id>
  <RecentWinners>
    <RecentJackpotWinner>
      <AddressLine>String</AddressLine>
      <Amount>0</Amount>
      <BetId>String</BetId>
      <JPId>String</JPId>
      <LocationId>String</LocationId>
      <LocationName>String</LocationName>
      <RoundId>String</RoundId>
      <SlipId>String</SlipId>
      <WonAtUtc>0001-01-01T00:00:00</WonAtUtc>
    </RecentJackpotWinner>
  </RecentWinners>
</RecentJackpotWinners>