| GET,OPTIONS | /v1/worker/crew |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class WorkerAppCrewRequest
{
public String Date = null;
public String getDate() { return Date; }
public WorkerAppCrewRequest setDate(String value) { this.Date = value; return this; }
}
public static class WorkerAppCrewResponse
{
public ResponseStatus ResponseStatus = null;
public Boolean IsCrewLead = null;
public String DateLabel = null;
public ArrayList<WorkerCrewRow> Rows = new ArrayList<WorkerCrewRow>();
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public WorkerAppCrewResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public Boolean getIsCrewLead() { return IsCrewLead; }
public WorkerAppCrewResponse setIsCrewLead(Boolean value) { this.IsCrewLead = value; return this; }
public String getDateLabel() { return DateLabel; }
public WorkerAppCrewResponse setDateLabel(String value) { this.DateLabel = value; return this; }
public ArrayList<WorkerCrewRow> getRows() { return Rows; }
public WorkerAppCrewResponse setRows(ArrayList<WorkerCrewRow> value) { this.Rows = value; return this; }
}
public static class WorkerCrewRow
{
public Integer ContactID = null;
public String WorkerName = null;
public String Phone = null;
public Integer JobID = null;
public String Status = null;
public String PropertyName = null;
public String Address = null;
public Integer getContactID() { return ContactID; }
public WorkerCrewRow setContactID(Integer value) { this.ContactID = value; return this; }
public String getWorkerName() { return WorkerName; }
public WorkerCrewRow setWorkerName(String value) { this.WorkerName = value; return this; }
public String getPhone() { return Phone; }
public WorkerCrewRow setPhone(String value) { this.Phone = value; return this; }
public Integer getJobID() { return JobID; }
public WorkerCrewRow setJobID(Integer value) { this.JobID = value; return this; }
public String getStatus() { return Status; }
public WorkerCrewRow setStatus(String value) { this.Status = value; return this; }
public String getPropertyName() { return PropertyName; }
public WorkerCrewRow setPropertyName(String value) { this.PropertyName = value; return this; }
public String getAddress() { return Address; }
public WorkerCrewRow setAddress(String value) { this.Address = value; return this; }
}
}
Java WorkerAppCrewRequest 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/crew HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<WorkerAppCrewResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<DateLabel>String</DateLabel>
<IsCrewLead>false</IsCrewLead>
<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>
<WorkerCrewRow>
<Address>String</Address>
<ContactID>0</ContactID>
<JobID>0</JobID>
<Phone>String</Phone>
<PropertyName>String</PropertyName>
<Status>String</Status>
<WorkerName>String</WorkerName>
</WorkerCrewRow>
</Rows>
</WorkerAppCrewResponse>