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
"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 .xml suffix or ?format=xml

HTTP + XML

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: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CameraTargetsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <ArrivalPhoto>String</ArrivalPhoto>
  <Items>
    <CameraTarget>
      <Closed>false</Closed>
      <Code>String</Code>
      <Counts xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringint>
          <d4p1:Key>String</d4p1:Key>
          <d4p1:Value>0</d4p1:Value>
        </d4p1:KeyValueOfstringint>
      </Counts>
      <Def>String</Def>
      <Detail>String</Detail>
      <Gallery>false</Gallery>
      <Id>String</Id>
      <InApp>false</InApp>
      <Kinds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </Kinds>
      <LogDate>String</LogDate>
      <ProofNeed>String</ProofNeed>
      <RecordId>String</RecordId>
      <Role>String</Role>
      <Seq>0</Seq>
      <SeqOf>0</SeqOf>
      <Service>String</Service>
      <SiteLat>0</SiteLat>
      <SiteLng>0</SiteLng>
      <State>String</State>
      <Title>String</Title>
      <Tomorrow>false</Tomorrow>
      <Type>String</Type>
      <Window>String</Window>
    </CameraTarget>
  </Items>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
  <Roles>
    <CameraRoleTargets>
      <Alts xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </Alts>
      <Cur>String</Cur>
      <Driving>false</Driving>
      <Gen>String</Gen>
      <Hidden>false</Hidden>
      <Lock>String</Lock>
      <Recent xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </Recent>
      <Role>String</Role>
      <Upcoming xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </Upcoming>
    </CameraRoleTargets>
  </Roles>
  <ServerUtc>0001-01-01T00:00:00</ServerUtc>
</CameraTargetsResponse>