| POST,OPTIONS | /v1/lobby/{LocationId}/played/{LobbyContentId} |
|---|
import Foundation
import ServiceStack
public class LobbyPlayedRequest : Codable
{
public var locationId:String
public var lobbyContentId:Int
required public init(){}
}
public class LobbyPlayResponse : Codable
{
public var responseStatus:ResponseStatus
public var items:[LobbyContentItem] = []
public var zoneMode:String
public var takeoverEveryMin:Int?
public var takeoverSec:Int?
public var idleScreen:Bool
public var branchLocalNow:Date
required public init(){}
}
public class LobbyContentItem : Codable
{
public var lobbyContentId:Int
public var title:String
public var kind:String
public var hasMedia:Bool
public var mediaUrl:String
public var headline:String
public var body:String
public var accent:String
public var url:String
public var dwellSec:Int
public var startsAt:Date?
public var endsAt:Date?
public var daysMask:Int
public var hourFrom:Int?
public var hourTo:Int?
public var isThirdParty:Bool
public var status:String
public var allBranches:Bool
public var branchIds:[String] = []
public var plays7d:Int
public var onNow:Bool
public var sortOrder:Int
public var createdBy:String
public var updatedAt:Date?
required public init(){}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/lobby/{LocationId}/played/{LobbyContentId} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"LocationId":"00000000000000000000000000000000","LobbyContentId":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Items":[{"LobbyContentId":0,"Title":"String","Kind":"String","HasMedia":false,"MediaUrl":"String","Headline":"String","Body":"String","Accent":"String","Url":"String","DwellSec":0,"StartsAt":"0001-01-01T00:00:00.0000000","EndsAt":"0001-01-01T00:00:00.0000000","DaysMask":0,"HourFrom":0,"HourTo":0,"IsThirdParty":false,"Status":"String","AllBranches":false,"BranchIds":["00000000000000000000000000000000"],"Plays7d":0,"OnNow":false,"SortOrder":0,"CreatedBy":"String","UpdatedAt":"0001-01-01T00:00:00.0000000"}],"ZoneMode":"String","TakeoverEveryMin":0,"TakeoverSec":0,"IdleScreen":false,"BranchLocalNow":"0001-01-01T00:00:00.0000000"}