| GET,OPTIONS | /v1/visits/exceptions |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class VisitExceptionsRequest
{
}
public static class VisitExceptionsResponse
{
public ArrayList<ExceptionItem> Items = new ArrayList<ExceptionItem>();
public Integer MissedCount = null;
public Integer SlaCount = null;
public Integer SkippedCount = null;
public Integer AtRiskCount = null;
public ResponseStatus ResponseStatus = null;
public ArrayList<ExceptionItem> getItems() { return Items; }
public VisitExceptionsResponse setItems(ArrayList<ExceptionItem> value) { this.Items = value; return this; }
public Integer getMissedCount() { return MissedCount; }
public VisitExceptionsResponse setMissedCount(Integer value) { this.MissedCount = value; return this; }
public Integer getSlaCount() { return SlaCount; }
public VisitExceptionsResponse setSlaCount(Integer value) { this.SlaCount = value; return this; }
public Integer getSkippedCount() { return SkippedCount; }
public VisitExceptionsResponse setSkippedCount(Integer value) { this.SkippedCount = value; return this; }
public Integer getAtRiskCount() { return AtRiskCount; }
public VisitExceptionsResponse setAtRiskCount(Integer value) { this.AtRiskCount = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public VisitExceptionsResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
public static class ExceptionItem
{
public String Kind = null;
public String VisitKey = null;
public Integer JobID = null;
public Integer ProjectID = null;
public Integer AgreementID = null;
public Integer AgreementJobID = null;
public String OccurrenceDate = null;
public String CustomerName = null;
public String LocationName = null;
public String City = null;
public Double Lat = null;
public Double Lng = null;
public Integer AgeDays = null;
public String Reason = null;
public Integer DurationMinutes = null;
public Boolean IsCommercial = null;
public Integer PreferredCrewID = null;
public String getKind() { return Kind; }
public ExceptionItem setKind(String value) { this.Kind = value; return this; }
public String getVisitKey() { return VisitKey; }
public ExceptionItem setVisitKey(String value) { this.VisitKey = value; return this; }
public Integer getJobID() { return JobID; }
public ExceptionItem setJobID(Integer value) { this.JobID = value; return this; }
public Integer getProjectID() { return ProjectID; }
public ExceptionItem setProjectID(Integer value) { this.ProjectID = value; return this; }
public Integer getAgreementID() { return AgreementID; }
public ExceptionItem setAgreementID(Integer value) { this.AgreementID = value; return this; }
public Integer getAgreementJobID() { return AgreementJobID; }
public ExceptionItem setAgreementJobID(Integer value) { this.AgreementJobID = value; return this; }
public String getOccurrenceDate() { return OccurrenceDate; }
public ExceptionItem setOccurrenceDate(String value) { this.OccurrenceDate = value; return this; }
public String getCustomerName() { return CustomerName; }
public ExceptionItem setCustomerName(String value) { this.CustomerName = value; return this; }
public String getLocationName() { return LocationName; }
public ExceptionItem setLocationName(String value) { this.LocationName = value; return this; }
public String getCity() { return City; }
public ExceptionItem setCity(String value) { this.City = value; return this; }
public Double getLat() { return Lat; }
public ExceptionItem setLat(Double value) { this.Lat = value; return this; }
public Double getLng() { return Lng; }
public ExceptionItem setLng(Double value) { this.Lng = value; return this; }
public Integer getAgeDays() { return AgeDays; }
public ExceptionItem setAgeDays(Integer value) { this.AgeDays = value; return this; }
public String getReason() { return Reason; }
public ExceptionItem setReason(String value) { this.Reason = value; return this; }
public Integer getDurationMinutes() { return DurationMinutes; }
public ExceptionItem setDurationMinutes(Integer value) { this.DurationMinutes = value; return this; }
public Boolean getIsCommercial() { return IsCommercial; }
public ExceptionItem setIsCommercial(Boolean value) { this.IsCommercial = value; return this; }
public Integer getPreferredCrewID() { return PreferredCrewID; }
public ExceptionItem setPreferredCrewID(Integer value) { this.PreferredCrewID = value; return this; }
}
}
Java VisitExceptionsRequest 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/visits/exceptions HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Items":[{"Kind":"String","VisitKey":"String","JobID":0,"ProjectID":0,"AgreementID":0,"AgreementJobID":0,"OccurrenceDate":"String","CustomerName":"String","LocationName":"String","City":"String","Lat":0,"Lng":0,"AgeDays":0,"Reason":"String","DurationMinutes":0,"IsCommercial":false,"PreferredCrewID":0}],"MissedCount":0,"SlaCount":0,"SkippedCount":0,"AtRiskCount":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}