| GET,OPTIONS | /v1/worker/camera/targets |
|---|
"use strict";
export class CameraRoleTargets {
/** @param {{Role?:string,Cur?:string,Alts?:string[],Recent?:string[],Upcoming?:string[],Gen?:string,Lock?:string,Hidden?:boolean,Driving?:boolean}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Role;
/** @type {string} */
Cur;
/** @type {string[]} */
Alts = [];
/** @type {string[]} */
Recent = [];
/** @type {string[]} */
Upcoming = [];
/** @type {string} */
Gen;
/** @type {string} */
Lock;
/** @type {boolean} */
Hidden;
/** @type {boolean} */
Driving;
}
export class CameraTarget {
/** @param {{Id?:string,Type?:string,RecordId?:string,Role?:string,Code?:string,Title?:string,Detail?:string,State?:string,Kinds?:string[],Def?:string,Closed?:boolean,ProofNeed?:string,InApp?:boolean,Gallery?:boolean,Tomorrow?:boolean,SiteLat?:number,SiteLng?:number,Counts?:{ [index:string]: number; },LogDate?:string,Seq?:number,SeqOf?:number,Window?:string,Service?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Id;
/** @type {string} */
Type;
/** @type {string} */
RecordId;
/** @type {string} */
Role;
/** @type {string} */
Code;
/** @type {string} */
Title;
/** @type {string} */
Detail;
/** @type {string} */
State;
/** @type {string[]} */
Kinds = [];
/** @type {string} */
Def;
/** @type {boolean} */
Closed;
/** @type {string} */
ProofNeed;
/** @type {boolean} */
InApp;
/** @type {boolean} */
Gallery;
/** @type {boolean} */
Tomorrow;
/** @type {?number} */
SiteLat;
/** @type {?number} */
SiteLng;
/** @type {{ [index:string]: number; }} */
Counts = {};
/** @type {string} */
LogDate;
/** @type {number} */
Seq;
/** @type {number} */
SeqOf;
/** @type {string} */
Window;
/** @type {string} */
Service;
}
export class CameraTargetsResponse {
/** @param {{Roles?:CameraRoleTargets[],Items?:CameraTarget[],ArrivalPhoto?:string,ServerUtc?:string,ResponseStatus?:ResponseStatus}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {CameraRoleTargets[]} */
Roles = [];
/** @type {CameraTarget[]} */
Items = [];
/** @type {string} */
ArrivalPhoto;
/** @type {string} */
ServerUtc;
/** @type {ResponseStatus} */
ResponseStatus;
}
export class CameraTargetsRequest {
constructor(init) { Object.assign(this, init) }
}
JavaScript CameraTargetsRequest DTOs
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/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
}
}
}