Trendsic Platform Service

<back to all web services

LobbyBranchesRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/lobby/branches

export class LobbyBranch
{
    public BranchId: string;
    public Name: string;
    public Allowed: boolean;
    public TvCount: number;
    public ZoneMode: string;
    public TakeoverEveryMin?: number;
    public TakeoverSec?: number;
    public Density: string;
    public IdleMode: string;
    public IdleContentId?: number;
    public ShowServices: boolean;
    public TimeZone: string;
    public BookingSlug: string;

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

export class LobbyPolicy
{
    public ImageExtensions: string[] = [];
    public MaxImageBytes: number;
    public MaxVideoBytes: number;
    public MaxVideoSec: number;
    public TitleMax: number;
    public HeadlineMax: number;
    public BodyMax: number;
    public CaptionMax: number;
    public DwellMin: number;
    public DwellMax: number;

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

export class LobbyBranchesResponse
{
    public ResponseStatus: ResponseStatus;
    public Branches: LobbyBranch[] = [];
    public Policy: LobbyPolicy;

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

export class LobbyBranchesRequest
{

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

TypeScript LobbyBranchesRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

GET /v1/lobby/branches HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Branches":[{"BranchId":"00000000000000000000000000000000","Name":"String","Allowed":false,"TvCount":0,"ZoneMode":"String","TakeoverEveryMin":0,"TakeoverSec":0,"Density":"String","IdleMode":"String","IdleContentId":0,"ShowServices":false,"TimeZone":"String","BookingSlug":"String"}],"Policy":{"ImageExtensions":["String"],"MaxImageBytes":0,"MaxVideoBytes":0,"MaxVideoSec":0,"TitleMax":0,"HeadlineMax":0,"BodyMax":0,"CaptionMax":0,"DwellMin":0,"DwellMax":0}}