| 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 .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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/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"}},"IsCrewLead":false,"DateLabel":"String","Rows":[{"ContactID":0,"WorkerName":"String","Phone":"String","JobID":0,"Status":"String","PropertyName":"String","Address":"String"}]}