| GET,OPTIONS | /v1/lobby/branches |
|---|
import Foundation
import ServiceStack
public class LobbyBranchesRequest : Codable
{
required public init(){}
}
public class LobbyBranchesResponse : Codable
{
public var responseStatus:ResponseStatus
public var branches:[LobbyBranch] = []
public var policy:LobbyPolicy
required public init(){}
}
public class LobbyBranch : Codable
{
public var branchId:String
public var name:String
public var allowed:Bool
public var tvCount:Int
public var zoneMode:String
public var takeoverEveryMin:Int?
public var takeoverSec:Int?
public var density:String
public var idleMode:String
public var idleContentId:Int?
public var showServices:Bool
public var timeZone:String
public var bookingSlug:String
required public init(){}
}
public class LobbyPolicy : Codable
{
public var imageExtensions:[String] = []
public var maxImageBytes:Int
public var maxVideoBytes:Int
public var maxVideoSec:Int
public var titleMax:Int
public var headlineMax:Int
public var bodyMax:Int
public var captionMax:Int
public var dwellMin:Int
public var dwellMax:Int
required public init(){}
}
Swift LobbyBranchesRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=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
}
}