| GET,PUT,OPTIONS | /v1/lobby/playlist/{BranchId} |
|---|
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 LobbyContentResponse
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property Items As List(Of LobbyContentItem) = New List(Of LobbyContentItem)
End Class
Public Partial Class LobbyPlaylistEntry
Public Overridable Property Id As Integer
Public Overridable Property SortOrder As Integer
Public Overridable Property Hidden As Boolean
End Class
Public Partial Class LobbyPlaylistRequest
Public Overridable Property BranchId As Guid
Public Overridable Property Items As List(Of LobbyPlaylistEntry) = New List(Of LobbyPlaylistEntry)
End Class
End Namespace
End Namespace
VB.NET 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
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"}]}