Trendsic Platform Service

<back to all web services

LobbyContentMediaRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/lobby/content/{LobbyContentId}/media
import Foundation
import ServiceStack

public class LobbyContentMediaRequest : Codable
{
    public var lobbyContentId:Int

    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 LobbyContentMediaRequest DTOs

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

HTTP + CSV

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

POST /v1/lobby/content/{LobbyContentId}/media HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"LobbyContentId":0}
HTTP/1.1 200 OK
Content-Type: text/csv
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"}]}