| GET,OPTIONS | /v1/worker/camera/targets |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class CameraTargetsRequest
{
}
public static class CameraTargetsResponse
{
public ArrayList<CameraRoleTargets> Roles = new ArrayList<CameraRoleTargets>();
public ArrayList<CameraTarget> Items = new ArrayList<CameraTarget>();
public String ArrivalPhoto = null;
public Date ServerUtc = null;
public ResponseStatus ResponseStatus = null;
public ArrayList<CameraRoleTargets> getRoles() { return Roles; }
public CameraTargetsResponse setRoles(ArrayList<CameraRoleTargets> value) { this.Roles = value; return this; }
public ArrayList<CameraTarget> getItems() { return Items; }
public CameraTargetsResponse setItems(ArrayList<CameraTarget> value) { this.Items = value; return this; }
public String getArrivalPhoto() { return ArrivalPhoto; }
public CameraTargetsResponse setArrivalPhoto(String value) { this.ArrivalPhoto = value; return this; }
public Date getServerUtc() { return ServerUtc; }
public CameraTargetsResponse setServerUtc(Date value) { this.ServerUtc = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public CameraTargetsResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
public static class CameraRoleTargets
{
public String Role = null;
public String Cur = null;
public ArrayList<String> Alts = new ArrayList<String>();
public ArrayList<String> Recent = new ArrayList<String>();
public ArrayList<String> Upcoming = new ArrayList<String>();
public String Gen = null;
public String Lock = null;
public Boolean Hidden = null;
public Boolean Driving = null;
public String getRole() { return Role; }
public CameraRoleTargets setRole(String value) { this.Role = value; return this; }
public String getCur() { return Cur; }
public CameraRoleTargets setCur(String value) { this.Cur = value; return this; }
public ArrayList<String> getAlts() { return Alts; }
public CameraRoleTargets setAlts(ArrayList<String> value) { this.Alts = value; return this; }
public ArrayList<String> getRecent() { return Recent; }
public CameraRoleTargets setRecent(ArrayList<String> value) { this.Recent = value; return this; }
public ArrayList<String> getUpcoming() { return Upcoming; }
public CameraRoleTargets setUpcoming(ArrayList<String> value) { this.Upcoming = value; return this; }
public String getGen() { return Gen; }
public CameraRoleTargets setGen(String value) { this.Gen = value; return this; }
public String getLock() { return Lock; }
public CameraRoleTargets setLock(String value) { this.Lock = value; return this; }
public Boolean isHidden() { return Hidden; }
public CameraRoleTargets setHidden(Boolean value) { this.Hidden = value; return this; }
public Boolean isDriving() { return Driving; }
public CameraRoleTargets setDriving(Boolean value) { this.Driving = value; return this; }
}
public static class CameraTarget
{
public String Id = null;
public String Type = null;
public String RecordId = null;
public String Role = null;
public String Code = null;
public String Title = null;
public String Detail = null;
public String State = null;
public ArrayList<String> Kinds = new ArrayList<String>();
public String Def = null;
public Boolean Closed = null;
public String ProofNeed = null;
public Boolean InApp = null;
public Boolean Gallery = null;
public Boolean Tomorrow = null;
public BigDecimal SiteLat = null;
public BigDecimal SiteLng = null;
public HashMap<String,Integer> Counts = new HashMap<String,Integer>();
public String LogDate = null;
public Integer Seq = null;
public Integer SeqOf = null;
public String Window = null;
public String Service = null;
public String getId() { return Id; }
public CameraTarget setId(String value) { this.Id = value; return this; }
public String getType() { return Type; }
public CameraTarget setType(String value) { this.Type = value; return this; }
public String getRecordId() { return RecordId; }
public CameraTarget setRecordId(String value) { this.RecordId = value; return this; }
public String getRole() { return Role; }
public CameraTarget setRole(String value) { this.Role = value; return this; }
public String getCode() { return Code; }
public CameraTarget setCode(String value) { this.Code = value; return this; }
public String getTitle() { return Title; }
public CameraTarget setTitle(String value) { this.Title = value; return this; }
public String getDetail() { return Detail; }
public CameraTarget setDetail(String value) { this.Detail = value; return this; }
public String getState() { return State; }
public CameraTarget setState(String value) { this.State = value; return this; }
public ArrayList<String> getKinds() { return Kinds; }
public CameraTarget setKinds(ArrayList<String> value) { this.Kinds = value; return this; }
public String getDef() { return Def; }
public CameraTarget setDef(String value) { this.Def = value; return this; }
public Boolean isClosed() { return Closed; }
public CameraTarget setClosed(Boolean value) { this.Closed = value; return this; }
public String getProofNeed() { return ProofNeed; }
public CameraTarget setProofNeed(String value) { this.ProofNeed = value; return this; }
public Boolean isInApp() { return InApp; }
public CameraTarget setInApp(Boolean value) { this.InApp = value; return this; }
public Boolean isGallery() { return Gallery; }
public CameraTarget setGallery(Boolean value) { this.Gallery = value; return this; }
public Boolean isTomorrow() { return Tomorrow; }
public CameraTarget setTomorrow(Boolean value) { this.Tomorrow = value; return this; }
public BigDecimal getSiteLat() { return SiteLat; }
public CameraTarget setSiteLat(BigDecimal value) { this.SiteLat = value; return this; }
public BigDecimal getSiteLng() { return SiteLng; }
public CameraTarget setSiteLng(BigDecimal value) { this.SiteLng = value; return this; }
public HashMap<String,Integer> getCounts() { return Counts; }
public CameraTarget setCounts(HashMap<String,Integer> value) { this.Counts = value; return this; }
public String getLogDate() { return LogDate; }
public CameraTarget setLogDate(String value) { this.LogDate = value; return this; }
public Integer getSeq() { return Seq; }
public CameraTarget setSeq(Integer value) { this.Seq = value; return this; }
public Integer getSeqOf() { return SeqOf; }
public CameraTarget setSeqOf(Integer value) { this.SeqOf = value; return this; }
public String getWindow() { return Window; }
public CameraTarget setWindow(String value) { this.Window = value; return this; }
public String getService() { return Service; }
public CameraTarget setService(String value) { this.Service = value; return this; }
}
}
Java CameraTargetsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=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>