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 java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class LobbyPlaylistRequest
{
    open var BranchId:UUID? = null
    open var Items:ArrayList<LobbyPlaylistEntry> = ArrayList<LobbyPlaylistEntry>()
}

open class LobbyPlaylistEntry
{
    open var Id:Int? = null
    open var SortOrder:Int? = null
    open var Hidden:Boolean? = null
}

open class LobbyContentResponse
{
    open var ResponseStatus:ResponseStatus? = null
    open var Items:ArrayList<LobbyContentItem> = ArrayList<LobbyContentItem>()
}

open class LobbyContentItem
{
    open var LobbyContentId:Int? = null
    open var Title:String? = null
    open var Kind:String? = null
    open var HasMedia:Boolean? = null
    open var MediaUrl:String? = null
    open var Headline:String? = null
    open var Body:String? = null
    open var Accent:String? = null
    open var Url:String? = null
    open var DwellSec:Int? = null
    open var StartsAt:Date? = null
    open var EndsAt:Date? = null
    open var DaysMask:Int? = null
    open var HourFrom:Int? = null
    open var HourTo:Int? = null
    open var IsThirdParty:Boolean? = null
    open var Status:String? = null
    open var AllBranches:Boolean? = null
    open var BranchIds:ArrayList<UUID> = ArrayList<UUID>()
    open var Plays7d:Int? = null
    open var OnNow:Boolean? = null
    open var SortOrder:Int? = null
    open var CreatedBy:String? = null
    open var UpdatedAt:Date? = null
}

Kotlin LobbyPlaylistRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: application/json
Content-Type: application/json
Content-Length: length

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