| POST,OPTIONS | /v1/lobby/{LocationId}/played/{LobbyContentId} |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal
Namespace Global
Namespace CRM.AgencyPlatform.API.Internal
Public Partial Class LobbyContentItem
Public Overridable Property LobbyContentId As Integer
Public Overridable Property Title As String
Public Overridable Property Kind As String
Public Overridable Property HasMedia As Boolean
Public Overridable Property MediaUrl As String
Public Overridable Property Headline As String
Public Overridable Property Body As String
Public Overridable Property Accent As String
Public Overridable Property Url As String
Public Overridable Property DwellSec As Integer
Public Overridable Property StartsAt As Date?
Public Overridable Property EndsAt As Date?
Public Overridable Property DaysMask As Integer
Public Overridable Property HourFrom As Integer?
Public Overridable Property HourTo As Integer?
Public Overridable Property IsThirdParty As Boolean
Public Overridable Property Status As String
Public Overridable Property AllBranches As Boolean
Public Overridable Property BranchIds As List(Of Guid) = New List(Of Guid)
Public Overridable Property Plays7d As Integer
Public Overridable Property OnNow As Boolean
Public Overridable Property SortOrder As Integer
Public Overridable Property CreatedBy As String
Public Overridable Property UpdatedAt As Date?
End Class
Public Partial Class LobbyPlayedRequest
Public Overridable Property LocationId As Guid
Public Overridable Property LobbyContentId As Integer
End Class
Public Partial Class LobbyPlayResponse
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property Items As List(Of LobbyContentItem) = New List(Of LobbyContentItem)
Public Overridable Property ZoneMode As String
Public Overridable Property TakeoverEveryMin As Integer?
Public Overridable Property TakeoverSec As Integer?
Public Overridable Property IdleScreen As Boolean
Public Overridable Property BranchLocalNow As Date
End Class
End Namespace
End Namespace
VB.NET LobbyPlayedRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
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/jsonl
Content-Type: text/jsonl
Content-Length: length
{"LocationId":"00000000000000000000000000000000","LobbyContentId":0}
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"}],"ZoneMode":"String","TakeoverEveryMin":0,"TakeoverSec":0,"IdleScreen":false,"BranchLocalNow":"0001-01-01T00:00:00.0000000"}