| POST,OPTIONS | /v1/lobby/{LocationId}/played/{LobbyContentId} |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class LobbyPlayedRequest
{
open var LocationId:UUID? = null
open var LobbyContentId:Int? = null
}
open class LobbyPlayResponse
{
open var ResponseStatus:ResponseStatus? = null
open var Items:ArrayList<LobbyContentItem> = ArrayList<LobbyContentItem>()
open var ZoneMode:String? = null
open var TakeoverEveryMin:Int? = null
open var TakeoverSec:Int? = null
open var IdleScreen:Boolean? = null
open var BranchLocalNow:Date? = null
}
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 LobbyPlayedRequest 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.
POST /v1/lobby/{LocationId}/played/{LobbyContentId} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
LocationId: 00000000000000000000000000000000,
LobbyContentId: 0
}
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
}
},
Items:
[
{
LobbyContentId: 0,
Title: String,
Kind: String,
HasMedia: False,
MediaUrl: String,
Headline: String,
Body: String,
Accent: String,
Url: String,
DwellSec: 0,
StartsAt: 0001-01-01,
EndsAt: 0001-01-01,
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-01
}
],
ZoneMode: String,
TakeoverEveryMin: 0,
TakeoverSec: 0,
IdleScreen: False,
BranchLocalNow: 0001-01-01
}