| GET,PUT,DELETE,OPTIONS | /v1/lobby/content/{LobbyContentId} | ||
|---|---|---|---|
| GET,POST,OPTIONS | /v1/lobby/content |
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 LobbyContentRequest
{
public virtual int LobbyContentId { get; set; }
public virtual LobbyContentItem Item { get; set; }
}
public partial class LobbyContentResponse
{
public virtual ResponseStatus ResponseStatus { get; set; }
public virtual List<LobbyContentItem> Items { 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.
POST /v1/lobby/content HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
LobbyContentId: 0,
Item:
{
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
}
}
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
}
]
}