| GET,OPTIONS | /v1/fleet/live |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class FleetLiveRequest
{
open var Date:String? = null
open var Status:String? = null
open var CrewID:Int? = null
open var Zip:String? = null
open var BranchId:UUID? = null
open var Search:String? = null
open var Page:Int? = null
open var PageSize:Int? = null
}
open class FleetLiveResponse
{
open var ResponseStatus:ResponseStatus? = null
open var Rows:ArrayList<FleetRowDto> = ArrayList<FleetRowDto>()
open var ActiveWorkers:Int? = null
open var EnRoute:Int? = null
open var OnSite:Int? = null
open var Waiting:Int? = null
open var Done:Int? = null
open var RunningLate:Int? = null
open var PageTotal:Int? = null
open var Page:Int? = null
open var PageSize:Int? = null
}
open class FleetRowDto
{
open var ContactID:Int? = null
open var WorkerName:String? = null
open var CrewID:Int? = null
open var CrewName:String? = null
open var BranchId:UUID? = null
open var LiveStatus:String? = null
open var WorkerScheduleItemID:Int? = null
open var JobID:Int? = null
open var CurProperty:String? = null
open var CurAddress:String? = null
open var CurZip:String? = null
open var EnRouteAt:String? = null
open var StartedAt:String? = null
open var LastLat:BigDecimal? = null
open var LastLng:BigDecimal? = null
open var LastLocAt:String? = null
open var NextProperty:String? = null
open var DoneVisits:Int? = null
open var TotalVisits:Int? = null
}
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>