Trendsic Platform Service

<back to all web services

FleetLiveRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/fleet/live
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class FleetLiveRequest
    {
        public String Date = null;
        public String Status = null;
        public Integer CrewID = null;
        public String Zip = null;
        public UUID BranchId = null;
        public String Search = null;
        public Integer Page = null;
        public Integer PageSize = null;
        
        public String getDate() { return Date; }
        public FleetLiveRequest setDate(String value) { this.Date = value; return this; }
        public String getStatus() { return Status; }
        public FleetLiveRequest setStatus(String value) { this.Status = value; return this; }
        public Integer getCrewID() { return CrewID; }
        public FleetLiveRequest setCrewID(Integer value) { this.CrewID = value; return this; }
        public String getZip() { return Zip; }
        public FleetLiveRequest setZip(String value) { this.Zip = value; return this; }
        public UUID getBranchId() { return BranchId; }
        public FleetLiveRequest setBranchId(UUID value) { this.BranchId = value; return this; }
        public String getSearch() { return Search; }
        public FleetLiveRequest setSearch(String value) { this.Search = value; return this; }
        public Integer getPage() { return Page; }
        public FleetLiveRequest setPage(Integer value) { this.Page = value; return this; }
        public Integer getPageSize() { return PageSize; }
        public FleetLiveRequest setPageSize(Integer value) { this.PageSize = value; return this; }
    }

    public static class FleetLiveResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<FleetRowDto> Rows = new ArrayList<FleetRowDto>();
        public Integer ActiveWorkers = null;
        public Integer EnRoute = null;
        public Integer OnSite = null;
        public Integer Waiting = null;
        public Integer Done = null;
        public Integer RunningLate = null;
        public Integer PageTotal = null;
        public Integer Page = null;
        public Integer PageSize = null;
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public FleetLiveResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<FleetRowDto> getRows() { return Rows; }
        public FleetLiveResponse setRows(ArrayList<FleetRowDto> value) { this.Rows = value; return this; }
        public Integer getActiveWorkers() { return ActiveWorkers; }
        public FleetLiveResponse setActiveWorkers(Integer value) { this.ActiveWorkers = value; return this; }
        public Integer getEnRoute() { return EnRoute; }
        public FleetLiveResponse setEnRoute(Integer value) { this.EnRoute = value; return this; }
        public Integer getOnSite() { return OnSite; }
        public FleetLiveResponse setOnSite(Integer value) { this.OnSite = value; return this; }
        public Integer getWaiting() { return Waiting; }
        public FleetLiveResponse setWaiting(Integer value) { this.Waiting = value; return this; }
        public Integer getDone() { return Done; }
        public FleetLiveResponse setDone(Integer value) { this.Done = value; return this; }
        public Integer getRunningLate() { return RunningLate; }
        public FleetLiveResponse setRunningLate(Integer value) { this.RunningLate = value; return this; }
        public Integer getPageTotal() { return PageTotal; }
        public FleetLiveResponse setPageTotal(Integer value) { this.PageTotal = value; return this; }
        public Integer getPage() { return Page; }
        public FleetLiveResponse setPage(Integer value) { this.Page = value; return this; }
        public Integer getPageSize() { return PageSize; }
        public FleetLiveResponse setPageSize(Integer value) { this.PageSize = value; return this; }
    }

    public static class FleetRowDto
    {
        public Integer ContactID = null;
        public String WorkerName = null;
        public Integer CrewID = null;
        public String CrewName = null;
        public UUID BranchId = null;
        public String LiveStatus = null;
        public Integer WorkerScheduleItemID = null;
        public Integer JobID = null;
        public String CurProperty = null;
        public String CurAddress = null;
        public String CurZip = null;
        public String EnRouteAt = null;
        public String StartedAt = null;
        public BigDecimal LastLat = null;
        public BigDecimal LastLng = null;
        public String LastLocAt = null;
        public String NextProperty = null;
        public Integer DoneVisits = null;
        public Integer TotalVisits = null;
        
        public Integer getContactID() { return ContactID; }
        public FleetRowDto setContactID(Integer value) { this.ContactID = value; return this; }
        public String getWorkerName() { return WorkerName; }
        public FleetRowDto setWorkerName(String value) { this.WorkerName = value; return this; }
        public Integer getCrewID() { return CrewID; }
        public FleetRowDto setCrewID(Integer value) { this.CrewID = value; return this; }
        public String getCrewName() { return CrewName; }
        public FleetRowDto setCrewName(String value) { this.CrewName = value; return this; }
        public UUID getBranchId() { return BranchId; }
        public FleetRowDto setBranchId(UUID value) { this.BranchId = value; return this; }
        public String getLiveStatus() { return LiveStatus; }
        public FleetRowDto setLiveStatus(String value) { this.LiveStatus = value; return this; }
        public Integer getWorkerScheduleItemID() { return WorkerScheduleItemID; }
        public FleetRowDto setWorkerScheduleItemID(Integer value) { this.WorkerScheduleItemID = value; return this; }
        public Integer getJobID() { return JobID; }
        public FleetRowDto setJobID(Integer value) { this.JobID = value; return this; }
        public String getCurProperty() { return CurProperty; }
        public FleetRowDto setCurProperty(String value) { this.CurProperty = value; return this; }
        public String getCurAddress() { return CurAddress; }
        public FleetRowDto setCurAddress(String value) { this.CurAddress = value; return this; }
        public String getCurZip() { return CurZip; }
        public FleetRowDto setCurZip(String value) { this.CurZip = value; return this; }
        public String getEnRouteAt() { return EnRouteAt; }
        public FleetRowDto setEnRouteAt(String value) { this.EnRouteAt = value; return this; }
        public String getStartedAt() { return StartedAt; }
        public FleetRowDto setStartedAt(String value) { this.StartedAt = value; return this; }
        public BigDecimal getLastLat() { return LastLat; }
        public FleetRowDto setLastLat(BigDecimal value) { this.LastLat = value; return this; }
        public BigDecimal getLastLng() { return LastLng; }
        public FleetRowDto setLastLng(BigDecimal value) { this.LastLng = value; return this; }
        public String getLastLocAt() { return LastLocAt; }
        public FleetRowDto setLastLocAt(String value) { this.LastLocAt = value; return this; }
        public String getNextProperty() { return NextProperty; }
        public FleetRowDto setNextProperty(String value) { this.NextProperty = value; return this; }
        public Integer getDoneVisits() { return DoneVisits; }
        public FleetRowDto setDoneVisits(Integer value) { this.DoneVisits = value; return this; }
        public Integer getTotalVisits() { return TotalVisits; }
        public FleetRowDto setTotalVisits(Integer value) { this.TotalVisits = value; return this; }
    }

}

Java FleetLiveRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/fleet/live HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Rows":[{"ContactID":0,"WorkerName":"String","CrewID":0,"CrewName":"String","BranchId":"00000000000000000000000000000000","LiveStatus":"String","WorkerScheduleItemID":0,"JobID":0,"CurProperty":"String","CurAddress":"String","CurZip":"String","EnRouteAt":"String","StartedAt":"String","LastLat":0,"LastLng":0,"LastLocAt":"String","NextProperty":"String","DoneVisits":0,"TotalVisits":0}],"ActiveWorkers":0,"EnRoute":0,"OnSite":0,"Waiting":0,"Done":0,"RunningLate":0,"PageTotal":0,"Page":0,"PageSize":0}