Trendsic Platform Service

<back to all web services

LobbyBranchesRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/lobby/branches
namespace CRM.AgencyPlatform.API.Internal

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type LobbyBranch() = 
        member val BranchId:Guid = new Guid() with get,set
        member val Name:String = null with get,set
        member val Allowed:Boolean = new Boolean() with get,set
        member val TvCount:Int32 = new Int32() with get,set
        member val ZoneMode:String = null with get,set
        member val TakeoverEveryMin:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val TakeoverSec:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val Density:String = null with get,set
        member val IdleMode:String = null with get,set
        member val IdleContentId:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val ShowServices:Boolean = new Boolean() with get,set
        member val TimeZone:String = null with get,set
        member val BookingSlug:String = null with get,set

    [<AllowNullLiteral>]
    type LobbyPolicy() = 
        member val ImageExtensions:ResizeArray<String> = new ResizeArray<String>() with get,set
        member val MaxImageBytes:Int64 = new Int64() with get,set
        member val MaxVideoBytes:Int64 = new Int64() with get,set
        member val MaxVideoSec:Int32 = new Int32() with get,set
        member val TitleMax:Int32 = new Int32() with get,set
        member val HeadlineMax:Int32 = new Int32() with get,set
        member val BodyMax:Int32 = new Int32() with get,set
        member val CaptionMax:Int32 = new Int32() with get,set
        member val DwellMin:Int32 = new Int32() with get,set
        member val DwellMax:Int32 = new Int32() with get,set

    [<AllowNullLiteral>]
    type LobbyBranchesResponse() = 
        member val ResponseStatus:ResponseStatus = null with get,set
        member val Branches:ResizeArray<LobbyBranch> = new ResizeArray<LobbyBranch>() with get,set
        member val Policy:LobbyPolicy = null with get,set

    [<AllowNullLiteral>]
    type LobbyBranchesRequest() = 
        class end

F# 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
	}
}