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

HTTP + CSV

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/csv
HTTP/1.1 200 OK
Content-Type: text/csv
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-01T00:00:00.0000000","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}