Trendsic Platform Service

<back to all web services

WorkerMyDayRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/worker/myday
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class WorkerMyDayRequest
    {
        public String Date = null;
        
        public String getDate() { return Date; }
        public WorkerMyDayRequest setDate(String value) { this.Date = value; return this; }
    }

    public static class WorkerMyDayResponse
    {
        public ResponseStatus ResponseStatus = null;
        public String Route = null;
        public String DateLabel = null;
        public Boolean IsCrewLead = null;
        public Boolean IsCrewMember = null;
        public ArrayList<WorkerVisit> Visits = new ArrayList<WorkerVisit>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public WorkerMyDayResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public String getRoute() { return Route; }
        public WorkerMyDayResponse setRoute(String value) { this.Route = value; return this; }
        public String getDateLabel() { return DateLabel; }
        public WorkerMyDayResponse setDateLabel(String value) { this.DateLabel = value; return this; }
        public Boolean getIsCrewLead() { return IsCrewLead; }
        public WorkerMyDayResponse setIsCrewLead(Boolean value) { this.IsCrewLead = value; return this; }
        public Boolean getIsCrewMember() { return IsCrewMember; }
        public WorkerMyDayResponse setIsCrewMember(Boolean value) { this.IsCrewMember = value; return this; }
        public ArrayList<WorkerVisit> getVisits() { return Visits; }
        public WorkerMyDayResponse setVisits(ArrayList<WorkerVisit> value) { this.Visits = value; return this; }
    }

    public static class WorkerVisit
    {
        public Integer WorkerScheduleItemID = null;
        public Integer JobID = null;
        public Integer SortOrder = null;
        public String Status = null;
        public String PropertyName = null;
        public String Address = null;
        public String TimeWindow = null;
        public String DistanceLabel = null;
        public String ServiceSummary = null;
        public Integer AreaCount = null;
        public String AccessNotes = null;
        public Boolean HasRestrictedDetails = null;
        public Boolean CanViewRestricted = null;
        public String PriorVisitNotes = null;
        public Boolean RainRisk = null;
        public String CompletedAtLabel = null;
        
        public Integer getWorkerScheduleItemID() { return WorkerScheduleItemID; }
        public WorkerVisit setWorkerScheduleItemID(Integer value) { this.WorkerScheduleItemID = value; return this; }
        public Integer getJobID() { return JobID; }
        public WorkerVisit setJobID(Integer value) { this.JobID = value; return this; }
        public Integer getSortOrder() { return SortOrder; }
        public WorkerVisit setSortOrder(Integer value) { this.SortOrder = value; return this; }
        public String getStatus() { return Status; }
        public WorkerVisit setStatus(String value) { this.Status = value; return this; }
        public String getPropertyName() { return PropertyName; }
        public WorkerVisit setPropertyName(String value) { this.PropertyName = value; return this; }
        public String getAddress() { return Address; }
        public WorkerVisit setAddress(String value) { this.Address = value; return this; }
        public String getTimeWindow() { return TimeWindow; }
        public WorkerVisit setTimeWindow(String value) { this.TimeWindow = value; return this; }
        public String getDistanceLabel() { return DistanceLabel; }
        public WorkerVisit setDistanceLabel(String value) { this.DistanceLabel = value; return this; }
        public String getServiceSummary() { return ServiceSummary; }
        public WorkerVisit setServiceSummary(String value) { this.ServiceSummary = value; return this; }
        public Integer getAreaCount() { return AreaCount; }
        public WorkerVisit setAreaCount(Integer value) { this.AreaCount = value; return this; }
        public String getAccessNotes() { return AccessNotes; }
        public WorkerVisit setAccessNotes(String value) { this.AccessNotes = value; return this; }
        public Boolean isHasRestrictedDetails() { return HasRestrictedDetails; }
        public WorkerVisit setHasRestrictedDetails(Boolean value) { this.HasRestrictedDetails = value; return this; }
        public Boolean isCanViewRestricted() { return CanViewRestricted; }
        public WorkerVisit setCanViewRestricted(Boolean value) { this.CanViewRestricted = value; return this; }
        public String getPriorVisitNotes() { return PriorVisitNotes; }
        public WorkerVisit setPriorVisitNotes(String value) { this.PriorVisitNotes = value; return this; }
        public Boolean isRainRisk() { return RainRisk; }
        public WorkerVisit setRainRisk(Boolean value) { this.RainRisk = value; return this; }
        public String getCompletedAtLabel() { return CompletedAtLabel; }
        public WorkerVisit setCompletedAtLabel(String value) { this.CompletedAtLabel = value; return this; }
    }

}

Java WorkerMyDayRequest 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

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/worker/myday 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"}},"Route":"String","DateLabel":"String","IsCrewLead":false,"IsCrewMember":false,"Visits":[{"WorkerScheduleItemID":0,"JobID":0,"SortOrder":0,"Status":"String","PropertyName":"String","Address":"String","TimeWindow":"String","DistanceLabel":"String","ServiceSummary":"String","AreaCount":0,"AccessNotes":"String","HasRestrictedDetails":false,"CanViewRestricted":false,"PriorVisitNotes":"String","RainRisk":false,"CompletedAtLabel":"String"}]}