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 .jsv suffix or ?format=jsv

HTTP + JSV

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: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	BranchId: 00000000000000000000000000000000,
	Items: 
	[
		{
			Id: 0,
			SortOrder: 0,
			Hidden: False
		}
	]
}
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
		}
	]
}