Trendsic Platform Service

<back to all web services

CameraTargetsRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/worker/camera/targets

export class CameraRoleTargets
{
    public Role: string;
    public Cur: string;
    public Alts: string[] = [];
    public Recent: string[] = [];
    public Upcoming: string[] = [];
    public Gen: string;
    public Lock: string;
    public Hidden: boolean;
    public Driving: boolean;

    public constructor(init?: Partial<CameraRoleTargets>) { (Object as any).assign(this, init); }
}

export class CameraTarget
{
    public Id: string;
    public Type: string;
    public RecordId: string;
    public Role: string;
    public Code: string;
    public Title: string;
    public Detail: string;
    public State: string;
    public Kinds: string[] = [];
    public Def: string;
    public Closed: boolean;
    public ProofNeed: string;
    public InApp: boolean;
    public Gallery: boolean;
    public Tomorrow: boolean;
    public SiteLat?: number;
    public SiteLng?: number;
    public Counts: { [index:string]: number; } = {};
    public LogDate: string;
    public Seq: number;
    public SeqOf: number;
    public Window: string;
    public Service: string;

    public constructor(init?: Partial<CameraTarget>) { (Object as any).assign(this, init); }
}

export class CameraTargetsResponse
{
    public Roles: CameraRoleTargets[] = [];
    public Items: CameraTarget[] = [];
    public ArrivalPhoto: string;
    public ServerUtc: string;
    public ResponseStatus: ResponseStatus;

    public constructor(init?: Partial<CameraTargetsResponse>) { (Object as any).assign(this, init); }
}

export class CameraTargetsRequest
{

    public constructor(init?: Partial<CameraTargetsRequest>) { (Object as any).assign(this, init); }
}

TypeScript CameraTargetsRequest 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.

GET /v1/worker/camera/targets HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Roles: 
	[
		{
			Role: String,
			Cur: String,
			Alts: 
			[
				String
			],
			Recent: 
			[
				String
			],
			Upcoming: 
			[
				String
			],
			Gen: String,
			Lock: String,
			Hidden: False,
			Driving: False
		}
	],
	Items: 
	[
		{
			Id: String,
			Type: String,
			RecordId: String,
			Role: String,
			Code: String,
			Title: String,
			Detail: String,
			State: String,
			Kinds: 
			[
				String
			],
			Def: String,
			Closed: False,
			ProofNeed: String,
			InApp: False,
			Gallery: False,
			Tomorrow: False,
			SiteLat: 0,
			SiteLng: 0,
			Counts: 
			{
				String: 0
			},
			LogDate: String,
			Seq: 0,
			SeqOf: 0,
			Window: String,
			Service: String
		}
	],
	ArrivalPhoto: String,
	ServerUtc: 0001-01-01,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}