| POST | /{Workspace}/OptimizeSchedule |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class OptimizeScheduleRequest
{
public String Workspace = null;
public String UserId = null;
public String Date = null;
public ArrayList<String> TaskIds = null;
public Integer RoundStartTimes = null;
public Integer TransitionTime = null;
public Integer StartTime = null;
public Location StartLocation = null;
public Location EndLocation = null;
public Boolean AllowReorder = null;
public Integer LunchStart = null;
public Integer LunchDuration = null;
public String DebugRequestTime = null;
public Boolean Debug = null;
public String getWorkspace() { return Workspace; }
public OptimizeScheduleRequest setWorkspace(String value) { this.Workspace = value; return this; }
public String getUserId() { return UserId; }
public OptimizeScheduleRequest setUserId(String value) { this.UserId = value; return this; }
public String getDate() { return Date; }
public OptimizeScheduleRequest setDate(String value) { this.Date = value; return this; }
public ArrayList<String> getTaskIds() { return TaskIds; }
public OptimizeScheduleRequest setTaskIds(ArrayList<String> value) { this.TaskIds = value; return this; }
public Integer getRoundStartTimes() { return RoundStartTimes; }
public OptimizeScheduleRequest setRoundStartTimes(Integer value) { this.RoundStartTimes = value; return this; }
public Integer getTransitionTime() { return TransitionTime; }
public OptimizeScheduleRequest setTransitionTime(Integer value) { this.TransitionTime = value; return this; }
public Integer getStartTime() { return StartTime; }
public OptimizeScheduleRequest setStartTime(Integer value) { this.StartTime = value; return this; }
public Location getStartLocation() { return StartLocation; }
public OptimizeScheduleRequest setStartLocation(Location value) { this.StartLocation = value; return this; }
public Location getEndLocation() { return EndLocation; }
public OptimizeScheduleRequest setEndLocation(Location value) { this.EndLocation = value; return this; }
public Boolean isAllowReorder() { return AllowReorder; }
public OptimizeScheduleRequest setAllowReorder(Boolean value) { this.AllowReorder = value; return this; }
public Integer getLunchStart() { return LunchStart; }
public OptimizeScheduleRequest setLunchStart(Integer value) { this.LunchStart = value; return this; }
public Integer getLunchDuration() { return LunchDuration; }
public OptimizeScheduleRequest setLunchDuration(Integer value) { this.LunchDuration = value; return this; }
public String getDebugRequestTime() { return DebugRequestTime; }
public OptimizeScheduleRequest setDebugRequestTime(String value) { this.DebugRequestTime = value; return this; }
public Boolean isDebug() { return Debug; }
public OptimizeScheduleRequest setDebug(Boolean value) { this.Debug = value; return this; }
}
public static class Location
{
public Double y = null;
public Double x = null;
public Double getY() { return y; }
public Location setY(Double value) { this.y = value; return this; }
public Double getX() { return x; }
public Location setX(Double value) { this.x = value; return this; }
}
}
Java OptimizeScheduleRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /{Workspace}/OptimizeSchedule HTTP/1.1
Host: dev.fieldsquared.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Workspace: String,
UserId: String,
Date: String,
TaskIds:
[
String
],
RoundStartTimes: 0,
TransitionTime: 0,
StartTime: 0,
StartLocation:
{
y: 0,
x: 0
},
EndLocation:
{
y: 0,
x: 0
},
AllowReorder: False,
LunchStart: 0,
LunchDuration: 0,
DebugRequestTime: String,
Debug: False
}