Greyhounds.WebApi

<back to all web services

GetAccumulatorConfig

The following routes are available for this service:
All Verbs/config/accumulator
// @ts-nocheck

export class Pool
{
    public id: number;
    public name?: string;
    public coefficient: number;
    public rtp: number;
    public threshold: number;
    public balance: number;

    public constructor(init?: Partial<Pool>) { (Object as any).assign(this, init); }
}

export enum LocationOptimizationLevel
{
    None = 0,
    Low = 1,
    Medium = 2,
    High = 3,
}

export class ThresholdInterval
{
    public start: number;
    public end: number;

    public constructor(init?: Partial<ThresholdInterval>) { (Object as any).assign(this, init); }
}

export class AccumulatorConfiguration
{
    public id?: string;
    public pools?: Pool[];
    public prevalentStake: number;
    public locationOptimizationLevel: LocationOptimizationLevel;
    public jackPotThresholdInterval?: ThresholdInterval;

    public constructor(init?: Partial<AccumulatorConfiguration>) { (Object as any).assign(this, init); }
}

export class GetAccumulatorConfig
{

    public constructor(init?: Partial<GetAccumulatorConfig>) { (Object as any).assign(this, init); }
}

TypeScript GetAccumulatorConfig DTOs

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

HTTP + OTHER

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

POST /config/accumulator HTTP/1.1 
Host: grh1.api.bettor.webhop.biz 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"id":"String","pools":[{"id":0,"name":"String","rtp":0}],"prevalentStake":0,"locationOptimizationLevel":0,"jackPotThresholdInterval":{"start":0,"end":0}}