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
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal

Namespace Global

    Namespace CRM.AgencyPlatform.API.Internal

        Public Partial Class CameraRoleTargets
            Public Overridable Property Role As String
            Public Overridable Property Cur As String
            Public Overridable Property Alts As List(Of String) = New List(Of String)
            Public Overridable Property Recent As List(Of String) = New List(Of String)
            Public Overridable Property Upcoming As List(Of String) = New List(Of String)
            Public Overridable Property Gen As String
            Public Overridable Property Lock As String
            Public Overridable Property Hidden As Boolean
            Public Overridable Property Driving As Boolean
        End Class

        Public Partial Class CameraTarget
            Public Overridable Property Id As String
            Public Overridable Property Type As String
            Public Overridable Property RecordId As String
            Public Overridable Property Role As String
            Public Overridable Property Code As String
            Public Overridable Property Title As String
            Public Overridable Property Detail As String
            Public Overridable Property State As String
            Public Overridable Property Kinds As List(Of String) = New List(Of String)
            Public Overridable Property Def As String
            Public Overridable Property Closed As Boolean
            Public Overridable Property ProofNeed As String
            Public Overridable Property InApp As Boolean
            Public Overridable Property Gallery As Boolean
            Public Overridable Property Tomorrow As Boolean
            Public Overridable Property SiteLat As Decimal?
            Public Overridable Property SiteLng As Decimal?
            Public Overridable Property Counts As Dictionary(Of String, Integer) = New Dictionary(Of String, Integer)
            Public Overridable Property LogDate As String
            Public Overridable Property Seq As Integer
            Public Overridable Property SeqOf As Integer
            Public Overridable Property Window As String
            Public Overridable Property Service As String
        End Class

        Public Partial Class CameraTargetsRequest
        End Class

        Public Partial Class CameraTargetsResponse
            Public Overridable Property Roles As List(Of CameraRoleTargets) = New List(Of CameraRoleTargets)
            Public Overridable Property Items As List(Of CameraTarget) = New List(Of CameraTarget)
            Public Overridable Property ArrivalPhoto As String
            Public Overridable Property ServerUtc As Date
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class
    End Namespace
End Namespace

VB.NET 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>