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}
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using CRM.AgencyPlatform.API.Internal;

namespace CRM.AgencyPlatform.API.Internal
{
    public partial class LobbyContentItem
    {
        public virtual int LobbyContentId { get; set; }
        public virtual string Title { get; set; }
        public virtual string Kind { get; set; }
        public virtual bool HasMedia { get; set; }
        public virtual string MediaUrl { get; set; }
        public virtual string Headline { get; set; }
        public virtual string Body { get; set; }
        public virtual string Accent { get; set; }
        public virtual string Url { get; set; }
        public virtual int DwellSec { get; set; }
        public virtual DateTime? StartsAt { get; set; }
        public virtual DateTime? EndsAt { get; set; }
        public virtual int DaysMask { get; set; }
        public virtual int? HourFrom { get; set; }
        public virtual int? HourTo { get; set; }
        public virtual bool IsThirdParty { get; set; }
        public virtual string Status { get; set; }
        public virtual bool AllBranches { get; set; }
        public virtual List<Guid> BranchIds { get; set; } = [];
        public virtual int Plays7d { get; set; }
        public virtual bool OnNow { get; set; }
        public virtual int SortOrder { get; set; }
        public virtual string CreatedBy { get; set; }
        public virtual DateTime? UpdatedAt { get; set; }
    }

    public partial class LobbyContentResponse
    {
        public virtual ResponseStatus ResponseStatus { get; set; }
        public virtual List<LobbyContentItem> Items { get; set; } = [];
    }

    public partial class LobbyPlaylistEntry
    {
        public virtual int Id { get; set; }
        public virtual int SortOrder { get; set; }
        public virtual bool Hidden { get; set; }
    }

    public partial class LobbyPlaylistRequest
    {
        public virtual Guid BranchId { get; set; }
        public virtual List<LobbyPlaylistEntry> Items { get; set; } = [];
    }

}

C# 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"}]}