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

HTTP + JSV

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: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
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
	}
}