| GET,OPTIONS | /v1/lobby/branches |
|---|
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 LobbyBranch
{
public virtual Guid BranchId { get; set; }
public virtual string Name { get; set; }
public virtual bool Allowed { get; set; }
public virtual int TvCount { get; set; }
public virtual string ZoneMode { get; set; }
public virtual int? TakeoverEveryMin { get; set; }
public virtual int? TakeoverSec { get; set; }
public virtual string Density { get; set; }
public virtual string IdleMode { get; set; }
public virtual int? IdleContentId { get; set; }
public virtual bool ShowServices { get; set; }
public virtual string TimeZone { get; set; }
public virtual string BookingSlug { get; set; }
}
public partial class LobbyBranchesRequest
{
}
public partial class LobbyBranchesResponse
{
public virtual ResponseStatus ResponseStatus { get; set; }
public virtual List<LobbyBranch> Branches { get; set; } = [];
public virtual LobbyPolicy Policy { get; set; }
}
public partial class LobbyPolicy
{
public virtual List<string> ImageExtensions { get; set; } = [];
public virtual long MaxImageBytes { get; set; }
public virtual long MaxVideoBytes { get; set; }
public virtual int MaxVideoSec { get; set; }
public virtual int TitleMax { get; set; }
public virtual int HeadlineMax { get; set; }
public virtual int BodyMax { get; set; }
public virtual int CaptionMax { get; set; }
public virtual int DwellMin { get; set; }
public virtual int DwellMax { get; set; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/lobby/branches HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsv
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
}
},
Branches:
[
{
BranchId: 00000000000000000000000000000000,
Name: String,
Allowed: False,
TvCount: 0,
ZoneMode: String,
TakeoverEveryMin: 0,
TakeoverSec: 0,
Density: String,
IdleMode: String,
IdleContentId: 0,
ShowServices: False,
TimeZone: String,
BookingSlug: String
}
],
Policy:
{
ImageExtensions:
[
String
],
MaxImageBytes: 0,
MaxVideoBytes: 0,
MaxVideoSec: 0,
TitleMax: 0,
HeadlineMax: 0,
BodyMax: 0,
CaptionMax: 0,
DwellMin: 0,
DwellMax: 0
}
}