| 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; }
}
}
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/fleet/live HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<FleetLiveResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<ActiveWorkers>0</ActiveWorkers>
<Done>0</Done>
<EnRoute>0</EnRoute>
<OnSite>0</OnSite>
<Page>0</Page>
<PageSize>0</PageSize>
<PageTotal>0</PageTotal>
<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>
<Rows>
<FleetRowDto>
<BranchId>00000000-0000-0000-0000-000000000000</BranchId>
<ContactID>0</ContactID>
<CrewID>0</CrewID>
<CrewName>String</CrewName>
<CurAddress>String</CurAddress>
<CurProperty>String</CurProperty>
<CurZip>String</CurZip>
<DoneVisits>0</DoneVisits>
<EnRouteAt>String</EnRouteAt>
<JobID>0</JobID>
<LastLat>0</LastLat>
<LastLng>0</LastLng>
<LastLocAt>String</LastLocAt>
<LiveStatus>String</LiveStatus>
<NextProperty>String</NextProperty>
<StartedAt>String</StartedAt>
<TotalVisits>0</TotalVisits>
<WorkerName>String</WorkerName>
<WorkerScheduleItemID>0</WorkerScheduleItemID>
</FleetRowDto>
</Rows>
<RunningLate>0</RunningLate>
<Waiting>0</Waiting>
</FleetLiveResponse>