Trendsic Platform Service

<back to all web services

LobbyContentRequest

Requires Authentication
The following routes are available for this service:
GET,PUT,DELETE,OPTIONS/v1/lobby/content/{LobbyContentId}
GET,POST,OPTIONS/v1/lobby/content
namespace CRM.AgencyPlatform.API.Internal

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type LobbyContentItem() = 
        member val LobbyContentId:Int32 = new Int32() with get,set
        member val Title:String = null with get,set
        member val Kind:String = null with get,set
        member val HasMedia:Boolean = new Boolean() with get,set
        member val MediaUrl:String = null with get,set
        member val Headline:String = null with get,set
        member val Body:String = null with get,set
        member val Accent:String = null with get,set
        member val Url:String = null with get,set
        member val DwellSec:Int32 = new Int32() with get,set
        member val StartsAt:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val EndsAt:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val DaysMask:Int32 = new Int32() with get,set
        member val HourFrom:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val HourTo:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val IsThirdParty:Boolean = new Boolean() with get,set
        member val Status:String = null with get,set
        member val AllBranches:Boolean = new Boolean() with get,set
        member val BranchIds:ResizeArray<Guid> = new ResizeArray<Guid>() with get,set
        member val Plays7d:Int32 = new Int32() with get,set
        member val OnNow:Boolean = new Boolean() with get,set
        member val SortOrder:Int32 = new Int32() with get,set
        member val CreatedBy:String = null with get,set
        member val UpdatedAt:Nullable<DateTime> = new Nullable<DateTime>() with get,set

    [<AllowNullLiteral>]
    type LobbyContentResponse() = 
        member val ResponseStatus:ResponseStatus = null with get,set
        member val Items:ResizeArray<LobbyContentItem> = new ResizeArray<LobbyContentItem>() with get,set

    [<AllowNullLiteral>]
    type LobbyContentRequest() = 
        member val LobbyContentId:Int32 = new Int32() with get,set
        member val Item:LobbyContentItem = null with get,set

F# LobbyContentRequest 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.

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
		}
	]
}