| GET | /qry/recentJackpotWinners |
|---|
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Greyhounds.WebApi.ServiceModel;
using Greyhounds.ReadModel;
namespace Greyhounds.ReadModel
{
public partial class RecentJackpotWinner
{
public virtual string? BetId { get; set; }
public virtual string? SlipId { get; set; }
public virtual string? JPId { get; set; }
public virtual decimal Amount { get; set; }
public virtual string? LocationId { get; set; }
public virtual string? LocationName { get; set; }
public virtual string? AddressLine { get; set; }
public virtual string? RoundId { get; set; }
public virtual DateTime WonAtUtc { get; set; }
}
public partial class RecentJackpotWinners
{
public virtual string? Id { get; set; }
public virtual List<RecentJackpotWinner>? RecentWinners { get; set; }
}
}
namespace Greyhounds.WebApi.ServiceModel
{
public partial class GetRecentJackpotWinners
{
}
}
C# GetRecentJackpotWinners DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
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/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
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-01
}
]
}