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 .xml suffix or ?format=xml

HTTP + XML

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/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<WorkerMyDayResponse 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>
  <IsCrewMember>false</IsCrewMember>
  <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>
  <Route>String</Route>
  <Visits>
    <WorkerVisit>
      <AccessNotes>String</AccessNotes>
      <Address>String</Address>
      <AreaCount>0</AreaCount>
      <CanViewRestricted>false</CanViewRestricted>
      <CompletedAtLabel>String</CompletedAtLabel>
      <DistanceLabel>String</DistanceLabel>
      <HasRestrictedDetails>false</HasRestrictedDetails>
      <JobID>0</JobID>
      <PriorVisitNotes>String</PriorVisitNotes>
      <PropertyName>String</PropertyName>
      <RainRisk>false</RainRisk>
      <ServiceSummary>String</ServiceSummary>
      <SortOrder>0</SortOrder>
      <Status>String</Status>
      <TimeWindow>String</TimeWindow>
      <WorkerScheduleItemID>0</WorkerScheduleItemID>
    </WorkerVisit>
  </Visits>
</WorkerMyDayResponse>