Trendsic Platform Service

<back to all web services

LobbyPlaylistRequest

Requires Authentication
The following routes are available for this service:
GET,PUT,OPTIONS/v1/lobby/playlist/{BranchId}
import Foundation
import ServiceStack

public class LobbyPlaylistRequest : Codable
{
    public var branchId:String
    public var items:[LobbyPlaylistEntry] = []

    required public init(){}
}

public class LobbyPlaylistEntry : Codable
{
    public var id:Int
    public var sortOrder:Int
    public var hidden:Bool

    required public init(){}
}

public class LobbyContentResponse : Codable
{
    public var responseStatus:ResponseStatus
    public var items:[LobbyContentItem] = []

    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(){}
}


Swift LobbyPlaylistRequest DTOs

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

HTTP + OTHER

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

PUT /v1/lobby/playlist/{BranchId} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"BranchId":"00000000000000000000000000000000","Items":[{"Id":0,"SortOrder":0,"Hidden":false}]}
HTTP/1.1 200 OK
Content-Type: text/jsonl
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"}]}