| All Verbs | /qry/rounds/results |
|---|
<?php namespace dtos;
use DateTime;
use Exception;
use DateInterval;
use JsonSerializable;
use ServiceStack\{IReturn,IReturnVoid,IGet,IPost,IPut,IDelete,IPatch,IMeta,IHasSessionId,IHasBearerToken,IHasVersion};
use ServiceStack\{ICrud,ICreateDb,IUpdateDb,IPatchDb,IDeleteDb,ISaveDb,AuditBase,QueryDb,QueryDb2,QueryData,QueryData2,QueryResponse};
use ServiceStack\{ResponseStatus,ResponseError,EmptyResponse,IdResponse,ArrayList,KeyValuePair2,StringResponse,StringsResponse,Tuple2,Tuple3,ByteArray};
use ServiceStack\{JsonConverters,Returns,TypeContext};
class FindRoundResults implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $roundId=null,
/** @var string|null */
public ?string $filter=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['roundId'])) $this->roundId = $o['roundId'];
if (isset($o['filter'])) $this->filter = $o['filter'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->roundId)) $o['roundId'] = $this->roundId;
if (isset($this->filter)) $o['filter'] = $this->filter;
return empty($o) ? new class(){} : $o;
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /qry/rounds/results HTTP/1.1
Host: s4w2.api.bettor.cc
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"roundId":"String","filter":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
[{"id":"String","sequence":"String","createdAt":"0001-01-01T00:00:00.0000000Z","superWinInfo":{"isActive":false,"winner":{"isDrawn":false,"drawnAtUtc":"0001-01-01T00:00:00.0000000Z","roundId":"String","betId":"String","slipId":"String","origin":{"application":{"name":"String","version":"String"},"ip":"String","organization":{"data":{"String":"String"},"id":"String","val":"String"},"region":{"id":"String","val":"String"},"locationGroup":{"id":"String","val":"String"},"location":{"data":{"String":"String"},"id":"String","val":"String"},"device":{"data":{"String":"String"},"id":"String","val":"String"},"clerk":{"id":"String","val":"String"}},"bettor":{"id":"String","val":"String"},"code":"String","amount":0,"locationAddressOrBettorInfo":"String"},"availableAmount":0,"allPrizesAwarded":false},"globalCodePotInfo":{"isActive":false,"isDrawn":true,"winner":{"roundId":"String","drawnAtUtc":"0001-01-01T00:00:00.0000000Z","slipId":"String","betId":"String","code":"String","amount":0,"origin":{"application":{"name":"String","version":"String"},"ip":"String","organization":{"data":{"String":"String"},"id":"String","val":"String"},"region":{"id":"String","val":"String"},"locationGroup":{"id":"String","val":"String"},"location":{"data":{"String":"String"},"id":"String","val":"String"},"device":{"data":{"String":"String"},"id":"String","val":"String"},"clerk":{"id":"String","val":"String"}},"bettor":{"id":"String","val":"String"},"locationAddressOrBettorInfo":"String"},"inertCode":"String","accumulation":0}}]