| GET | /{Workspace}/API/Task/Schema | ||
|---|---|---|---|
| GET, PUT, POST, DELETE | /{Workspace}/API/Task/{Id} | ||
| GET, PUT, POST, DELETE | /{Workspace}/API/Task | ||
| GET | /{Workspace}/API/Task/Schema/{TaskTemplate} |
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
@DataContract
public static class PublicTask
{
@DataMember
public String Id = null;
@DataMember
public String Workspace = null;
@DataMember
public String TaskTemplate = null;
@DataMember
public Task Task = null;
@DataMember
public ArrayList<Task> Tasks = null;
public String getId() { return Id; }
public PublicTask setId(String value) { this.Id = value; return this; }
public String getWorkspace() { return Workspace; }
public PublicTask setWorkspace(String value) { this.Workspace = value; return this; }
public String getTaskTemplate() { return TaskTemplate; }
public PublicTask setTaskTemplate(String value) { this.TaskTemplate = value; return this; }
public Task getTask() { return Task; }
public PublicTask setTask(Task value) { this.Task = value; return this; }
public ArrayList<Task> getTasks() { return Tasks; }
public PublicTask setTasks(ArrayList<Task> value) { this.Tasks = value; return this; }
}
/**
* Contains the data for a task within the system, with versioned object referneces to users and forms.
*/
public static class Task
{
public String Workspace = null;
public String AssignedWorkspace = null;
public String ObjectId = null;
public String VersionId = null;
public String BasedOn = null;
public String ExternalId = null;
public String Created = null;
public String LastUpdated = null;
public String LastUpdatedLocal = null;
public BigDecimal Rank = null;
public String Name = null;
public String Description = null;
public Address Address = null;
public ArrayList<Schedule> Schedules = null;
public String Status = null;
public String BlockedReason = null;
public String TaskType = null;
public String DueDate = null;
public String DesiredCompletionDate = null;
public TimeWindow DesiredTimeWindow = null;
public Integer Priority = null;
public Double PercentComplete = null;
public ArrayList<String> Users = null;
public ArrayList<DomainItem> UsersExtended = null;
public ArrayList<DomainItem> Teams = null;
public ArrayList<String> Documents = null;
public ArrayList<DomainItem> Docs = null;
public ArrayList<Document> DocSummaries = null;
public HashMap<String,Object> Data = null;
public ArrayList<String> Contacts = null;
public Location StatusLocation = null;
public ArrayList<String> Assets = null;
public ArrayList<String> Tasks = null;
public String Owner = null;
public ArrayList<EventItem> Events = null;
public HashMap<String,ArrayList<EventItem>> UserStatuses = null;
public String CreatedBy = null;
public String TimeZone = null;
public String SeriesId = null;
public Integer JobTimerRunTime = null;
public Integer JobTimerPauseTime = null;
public Integer JobTimerTransitTime = null;
public String CurrentJobTimerStatus = null;
public String CurrentJobTimerTime = null;
public ArrayList<String> InventoryItems = null;
public ArrayList<String> LaborItems = null;
public ArrayList<RequiredAsset> RequiredAssets = null;
public ArrayList<RequiredInventoryType> RequiredInventoryTypes = null;
public ArrayList<RequiredUser> RequiredUsers = null;
public Boolean Locked = null;
public Boolean Ready = null;
public TaskTemplate TaskTemplate = null;
public ArrayList<CustomDataField> CustomDataFields = null;
public String getWorkspace() { return Workspace; }
public Task setWorkspace(String value) { this.Workspace = value; return this; }
public String getAssignedWorkspace() { return AssignedWorkspace; }
public Task setAssignedWorkspace(String value) { this.AssignedWorkspace = value; return this; }
public String getObjectId() { return ObjectId; }
public Task setObjectId(String value) { this.ObjectId = value; return this; }
public String getVersionId() { return VersionId; }
public Task setVersionId(String value) { this.VersionId = value; return this; }
public String getBasedOn() { return BasedOn; }
public Task setBasedOn(String value) { this.BasedOn = value; return this; }
public String getExternalId() { return ExternalId; }
public Task setExternalId(String value) { this.ExternalId = value; return this; }
public String getCreated() { return Created; }
public Task setCreated(String value) { this.Created = value; return this; }
public String getLastUpdated() { return LastUpdated; }
public Task setLastUpdated(String value) { this.LastUpdated = value; return this; }
public String getLastUpdatedLocal() { return LastUpdatedLocal; }
public Task setLastUpdatedLocal(String value) { this.LastUpdatedLocal = value; return this; }
public BigDecimal getRank() { return Rank; }
public Task setRank(BigDecimal value) { this.Rank = value; return this; }
public String getName() { return Name; }
public Task setName(String value) { this.Name = value; return this; }
public String getDescription() { return Description; }
public Task setDescription(String value) { this.Description = value; return this; }
public Address getAddress() { return Address; }
public Task setAddress(Address value) { this.Address = value; return this; }
public ArrayList<Schedule> getSchedules() { return Schedules; }
public Task setSchedules(ArrayList<Schedule> value) { this.Schedules = value; return this; }
public String getStatus() { return Status; }
public Task setStatus(String value) { this.Status = value; return this; }
public String getBlockedReason() { return BlockedReason; }
public Task setBlockedReason(String value) { this.BlockedReason = value; return this; }
public String getTaskType() { return TaskType; }
public Task setTaskType(String value) { this.TaskType = value; return this; }
public String getDueDate() { return DueDate; }
public Task setDueDate(String value) { this.DueDate = value; return this; }
public String getDesiredCompletionDate() { return DesiredCompletionDate; }
public Task setDesiredCompletionDate(String value) { this.DesiredCompletionDate = value; return this; }
public TimeWindow getDesiredTimeWindow() { return DesiredTimeWindow; }
public Task setDesiredTimeWindow(TimeWindow value) { this.DesiredTimeWindow = value; return this; }
public Integer getPriority() { return Priority; }
public Task setPriority(Integer value) { this.Priority = value; return this; }
public Double getPercentComplete() { return PercentComplete; }
public Task setPercentComplete(Double value) { this.PercentComplete = value; return this; }
public ArrayList<String> getUsers() { return Users; }
public Task setUsers(ArrayList<String> value) { this.Users = value; return this; }
public ArrayList<DomainItem> getUsersExtended() { return UsersExtended; }
public Task setUsersExtended(ArrayList<DomainItem> value) { this.UsersExtended = value; return this; }
public ArrayList<DomainItem> getTeams() { return Teams; }
public Task setTeams(ArrayList<DomainItem> value) { this.Teams = value; return this; }
public ArrayList<String> getDocuments() { return Documents; }
public Task setDocuments(ArrayList<String> value) { this.Documents = value; return this; }
public ArrayList<DomainItem> getDocs() { return Docs; }
public Task setDocs(ArrayList<DomainItem> value) { this.Docs = value; return this; }
public ArrayList<Document> getDocSummaries() { return DocSummaries; }
public Task setDocSummaries(ArrayList<Document> value) { this.DocSummaries = value; return this; }
public HashMap<String,Object> getData() { return Data; }
public Task setData(HashMap<String,Object> value) { this.Data = value; return this; }
public ArrayList<String> getContacts() { return Contacts; }
public Task setContacts(ArrayList<String> value) { this.Contacts = value; return this; }
public Location getStatusLocation() { return StatusLocation; }
public Task setStatusLocation(Location value) { this.StatusLocation = value; return this; }
public ArrayList<String> getAssets() { return Assets; }
public Task setAssets(ArrayList<String> value) { this.Assets = value; return this; }
public ArrayList<String> getTasks() { return Tasks; }
public Task setTasks(ArrayList<String> value) { this.Tasks = value; return this; }
public String getOwner() { return Owner; }
public Task setOwner(String value) { this.Owner = value; return this; }
public ArrayList<EventItem> getEvents() { return Events; }
public Task setEvents(ArrayList<EventItem> value) { this.Events = value; return this; }
public HashMap<String,ArrayList<EventItem>> getUserStatuses() { return UserStatuses; }
public Task setUserStatuses(HashMap<String,ArrayList<EventItem>> value) { this.UserStatuses = value; return this; }
public String getCreatedBy() { return CreatedBy; }
public Task setCreatedBy(String value) { this.CreatedBy = value; return this; }
public String getTimeZone() { return TimeZone; }
public Task setTimeZone(String value) { this.TimeZone = value; return this; }
public String getSeriesId() { return SeriesId; }
public Task setSeriesId(String value) { this.SeriesId = value; return this; }
public Integer getJobTimerRunTime() { return JobTimerRunTime; }
public Task setJobTimerRunTime(Integer value) { this.JobTimerRunTime = value; return this; }
public Integer getJobTimerPauseTime() { return JobTimerPauseTime; }
public Task setJobTimerPauseTime(Integer value) { this.JobTimerPauseTime = value; return this; }
public Integer getJobTimerTransitTime() { return JobTimerTransitTime; }
public Task setJobTimerTransitTime(Integer value) { this.JobTimerTransitTime = value; return this; }
public String getCurrentJobTimerStatus() { return CurrentJobTimerStatus; }
public Task setCurrentJobTimerStatus(String value) { this.CurrentJobTimerStatus = value; return this; }
public String getCurrentJobTimerTime() { return CurrentJobTimerTime; }
public Task setCurrentJobTimerTime(String value) { this.CurrentJobTimerTime = value; return this; }
public ArrayList<String> getInventoryItems() { return InventoryItems; }
public Task setInventoryItems(ArrayList<String> value) { this.InventoryItems = value; return this; }
public ArrayList<String> getLaborItems() { return LaborItems; }
public Task setLaborItems(ArrayList<String> value) { this.LaborItems = value; return this; }
public ArrayList<RequiredAsset> getRequiredAssets() { return RequiredAssets; }
public Task setRequiredAssets(ArrayList<RequiredAsset> value) { this.RequiredAssets = value; return this; }
public ArrayList<RequiredInventoryType> getRequiredInventoryTypes() { return RequiredInventoryTypes; }
public Task setRequiredInventoryTypes(ArrayList<RequiredInventoryType> value) { this.RequiredInventoryTypes = value; return this; }
public ArrayList<RequiredUser> getRequiredUsers() { return RequiredUsers; }
public Task setRequiredUsers(ArrayList<RequiredUser> value) { this.RequiredUsers = value; return this; }
public Boolean isLocked() { return Locked; }
public Task setLocked(Boolean value) { this.Locked = value; return this; }
public Boolean isReady() { return Ready; }
public Task setReady(Boolean value) { this.Ready = value; return this; }
public TaskTemplate getTaskTemplate() { return TaskTemplate; }
public Task setTaskTemplate(TaskTemplate value) { this.TaskTemplate = value; return this; }
public ArrayList<CustomDataField> getCustomDataFields() { return CustomDataFields; }
public Task setCustomDataFields(ArrayList<CustomDataField> value) { this.CustomDataFields = value; return this; }
}
public static class Address
{
public String Street = null;
public String Unit = null;
public String City = null;
public String State = null;
public String Zip = null;
public String ContactTitle = null;
public String ContactName = null;
public String ContactPhone = null;
public String ContactEmail = null;
public Location Location = null;
public String SiteName = null;
public Boolean GeocodeFailed = null;
public String Country = null;
public String getStreet() { return Street; }
public Address setStreet(String value) { this.Street = value; return this; }
public String getUnit() { return Unit; }
public Address setUnit(String value) { this.Unit = value; return this; }
public String getCity() { return City; }
public Address setCity(String value) { this.City = value; return this; }
public String getState() { return State; }
public Address setState(String value) { this.State = value; return this; }
public String getZip() { return Zip; }
public Address setZip(String value) { this.Zip = value; return this; }
public String getContactTitle() { return ContactTitle; }
public Address setContactTitle(String value) { this.ContactTitle = value; return this; }
public String getContactName() { return ContactName; }
public Address setContactName(String value) { this.ContactName = value; return this; }
public String getContactPhone() { return ContactPhone; }
public Address setContactPhone(String value) { this.ContactPhone = value; return this; }
public String getContactEmail() { return ContactEmail; }
public Address setContactEmail(String value) { this.ContactEmail = value; return this; }
public Location getLocation() { return Location; }
public Address setLocation(Location value) { this.Location = value; return this; }
public String getSiteName() { return SiteName; }
public Address setSiteName(String value) { this.SiteName = value; return this; }
public Boolean isGeocodeFailed() { return GeocodeFailed; }
public Address setGeocodeFailed(Boolean value) { this.GeocodeFailed = value; return this; }
public String getCountry() { return Country; }
public Address setCountry(String value) { this.Country = 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; }
}
public static class Schedule
{
public String Workspace = null;
public String ObjectId = null;
public String VersionId = null;
public String BasedOn = null;
public String Start = null;
public String End = null;
public String TimeZone = null;
public ArrayList<String> Users = null;
public ArrayList<String> Teams = null;
public HashMap<String,Object> Data = null;
public String getWorkspace() { return Workspace; }
public Schedule setWorkspace(String value) { this.Workspace = value; return this; }
public String getObjectId() { return ObjectId; }
public Schedule setObjectId(String value) { this.ObjectId = value; return this; }
public String getVersionId() { return VersionId; }
public Schedule setVersionId(String value) { this.VersionId = value; return this; }
public String getBasedOn() { return BasedOn; }
public Schedule setBasedOn(String value) { this.BasedOn = value; return this; }
public String getStart() { return Start; }
public Schedule setStart(String value) { this.Start = value; return this; }
public String getEnd() { return End; }
public Schedule setEnd(String value) { this.End = value; return this; }
public String getTimeZone() { return TimeZone; }
public Schedule setTimeZone(String value) { this.TimeZone = value; return this; }
public ArrayList<String> getUsers() { return Users; }
public Schedule setUsers(ArrayList<String> value) { this.Users = value; return this; }
public ArrayList<String> getTeams() { return Teams; }
public Schedule setTeams(ArrayList<String> value) { this.Teams = value; return this; }
public HashMap<String,Object> getData() { return Data; }
public Schedule setData(HashMap<String,Object> value) { this.Data = value; return this; }
}
public static class TimeWindow
{
public Integer Start = null;
public Integer End = null;
public Integer getStart() { return Start; }
public TimeWindow setStart(Integer value) { this.Start = value; return this; }
public Integer getEnd() { return End; }
public TimeWindow setEnd(Integer value) { this.End = value; return this; }
}
public static class DomainItem
{
public String Workspace = null;
public String ObjectId = null;
public String VersionId = null;
public String LastUpdated = null;
public String getWorkspace() { return Workspace; }
public DomainItem setWorkspace(String value) { this.Workspace = value; return this; }
public String getObjectId() { return ObjectId; }
public DomainItem setObjectId(String value) { this.ObjectId = value; return this; }
public String getVersionId() { return VersionId; }
public DomainItem setVersionId(String value) { this.VersionId = value; return this; }
public String getLastUpdated() { return LastUpdated; }
public DomainItem setLastUpdated(String value) { this.LastUpdated = value; return this; }
}
/**
* Represents a document associated with a task or user. To return multiple documents, call /{Workspace}/Document and pass in query parameter ids = comma separated list of document ids.
*/
public static class Document
{
public String Workspace = null;
public String AssignedWorkspace = null;
public String ObjectId = null;
public String VersionId = null;
public String BasedOn = null;
public String Created = null;
public String ExternalId = null;
public String LastUpdated = null;
public String Type = null;
public String Name = null;
public String Title = null;
public HashMap<String,Object> Data = null;
public ClassedItem Owner = null;
public ArrayList<ClassedItem> SecondaryOwners = null;
public Location Location = null;
public String Date = null;
public String CreatedBy = null;
public Double PercentComplete = null;
public Integer PercentTotal = null;
public Integer PercentDone = null;
public ArrayList<RangeExceptionItem> RangeExceptions = null;
public Boolean Submitted = null;
public String Schema = null;
public DocumentOwnerData OwnerData = null;
public String getWorkspace() { return Workspace; }
public Document setWorkspace(String value) { this.Workspace = value; return this; }
public String getAssignedWorkspace() { return AssignedWorkspace; }
public Document setAssignedWorkspace(String value) { this.AssignedWorkspace = value; return this; }
public String getObjectId() { return ObjectId; }
public Document setObjectId(String value) { this.ObjectId = value; return this; }
public String getVersionId() { return VersionId; }
public Document setVersionId(String value) { this.VersionId = value; return this; }
public String getBasedOn() { return BasedOn; }
public Document setBasedOn(String value) { this.BasedOn = value; return this; }
public String getCreated() { return Created; }
public Document setCreated(String value) { this.Created = value; return this; }
public String getExternalId() { return ExternalId; }
public Document setExternalId(String value) { this.ExternalId = value; return this; }
public String getLastUpdated() { return LastUpdated; }
public Document setLastUpdated(String value) { this.LastUpdated = value; return this; }
public String getType() { return Type; }
public Document setType(String value) { this.Type = value; return this; }
public String getName() { return Name; }
public Document setName(String value) { this.Name = value; return this; }
public String getTitle() { return Title; }
public Document setTitle(String value) { this.Title = value; return this; }
public HashMap<String,Object> getData() { return Data; }
public Document setData(HashMap<String,Object> value) { this.Data = value; return this; }
public ClassedItem getOwner() { return Owner; }
public Document setOwner(ClassedItem value) { this.Owner = value; return this; }
public ArrayList<ClassedItem> getSecondaryOwners() { return SecondaryOwners; }
public Document setSecondaryOwners(ArrayList<ClassedItem> value) { this.SecondaryOwners = value; return this; }
public Location getLocation() { return Location; }
public Document setLocation(Location value) { this.Location = value; return this; }
public String getDate() { return Date; }
public Document setDate(String value) { this.Date = value; return this; }
public String getCreatedBy() { return CreatedBy; }
public Document setCreatedBy(String value) { this.CreatedBy = value; return this; }
public Double getPercentComplete() { return PercentComplete; }
public Document setPercentComplete(Double value) { this.PercentComplete = value; return this; }
public Integer getPercentTotal() { return PercentTotal; }
public Document setPercentTotal(Integer value) { this.PercentTotal = value; return this; }
public Integer getPercentDone() { return PercentDone; }
public Document setPercentDone(Integer value) { this.PercentDone = value; return this; }
public ArrayList<RangeExceptionItem> getRangeExceptions() { return RangeExceptions; }
public Document setRangeExceptions(ArrayList<RangeExceptionItem> value) { this.RangeExceptions = value; return this; }
public Boolean isSubmitted() { return Submitted; }
public Document setSubmitted(Boolean value) { this.Submitted = value; return this; }
public String getSchema() { return Schema; }
public Document setSchema(String value) { this.Schema = value; return this; }
public DocumentOwnerData getOwnerData() { return OwnerData; }
public Document setOwnerData(DocumentOwnerData value) { this.OwnerData = value; return this; }
}
public static class ClassedItem
{
public String ObjectId = null;
public String Class = null;
public String VersionId = null;
public ArrayList<String> Ancestors = null;
public String Type = null;
public String getObjectId() { return ObjectId; }
public ClassedItem setObjectId(String value) { this.ObjectId = value; return this; }
public String getClass() { return Class; }
public ClassedItem setClass(String value) { this.Class = value; return this; }
public String getVersionId() { return VersionId; }
public ClassedItem setVersionId(String value) { this.VersionId = value; return this; }
public ArrayList<String> getAncestors() { return Ancestors; }
public ClassedItem setAncestors(ArrayList<String> value) { this.Ancestors = value; return this; }
public String getType() { return Type; }
public ClassedItem setType(String value) { this.Type = value; return this; }
}
public static class RangeExceptionItem
{
public String Binding = null;
public String Message = null;
public String Type = null;
public String ClassName = null;
public String getBinding() { return Binding; }
public RangeExceptionItem setBinding(String value) { this.Binding = value; return this; }
public String getMessage() { return Message; }
public RangeExceptionItem setMessage(String value) { this.Message = value; return this; }
public String getType() { return Type; }
public RangeExceptionItem setType(String value) { this.Type = value; return this; }
public String getClassName() { return ClassName; }
public RangeExceptionItem setClassName(String value) { this.ClassName = value; return this; }
}
public static class DocumentOwnerData
{
public String OwnerType = null;
public DocumentOwnerDataTask TaskData = null;
public DocumentOwnerDataAsset AssetData = null;
public String getOwnerType() { return OwnerType; }
public DocumentOwnerData setOwnerType(String value) { this.OwnerType = value; return this; }
public DocumentOwnerDataTask getTaskData() { return TaskData; }
public DocumentOwnerData setTaskData(DocumentOwnerDataTask value) { this.TaskData = value; return this; }
public DocumentOwnerDataAsset getAssetData() { return AssetData; }
public DocumentOwnerData setAssetData(DocumentOwnerDataAsset value) { this.AssetData = value; return this; }
}
public static class DocumentOwnerDataTask
{
public String ObjectId = null;
public String Name = null;
public String Status = null;
public String TaskType = null;
public Date LastUpdated = null;
public Date Created = null;
public Integer Priority = null;
public BigDecimal Rank = null;
public Team FirstTeam = null;
public Address Address = null;
public ArrayList<CustomDataField> CustomDataFields = null;
public String getObjectId() { return ObjectId; }
public DocumentOwnerDataTask setObjectId(String value) { this.ObjectId = value; return this; }
public String getName() { return Name; }
public DocumentOwnerDataTask setName(String value) { this.Name = value; return this; }
public String getStatus() { return Status; }
public DocumentOwnerDataTask setStatus(String value) { this.Status = value; return this; }
public String getTaskType() { return TaskType; }
public DocumentOwnerDataTask setTaskType(String value) { this.TaskType = value; return this; }
public Date getLastUpdated() { return LastUpdated; }
public DocumentOwnerDataTask setLastUpdated(Date value) { this.LastUpdated = value; return this; }
public Date getCreated() { return Created; }
public DocumentOwnerDataTask setCreated(Date value) { this.Created = value; return this; }
public Integer getPriority() { return Priority; }
public DocumentOwnerDataTask setPriority(Integer value) { this.Priority = value; return this; }
public BigDecimal getRank() { return Rank; }
public DocumentOwnerDataTask setRank(BigDecimal value) { this.Rank = value; return this; }
public Team getFirstTeam() { return FirstTeam; }
public DocumentOwnerDataTask setFirstTeam(Team value) { this.FirstTeam = value; return this; }
public Address getAddress() { return Address; }
public DocumentOwnerDataTask setAddress(Address value) { this.Address = value; return this; }
public ArrayList<CustomDataField> getCustomDataFields() { return CustomDataFields; }
public DocumentOwnerDataTask setCustomDataFields(ArrayList<CustomDataField> value) { this.CustomDataFields = value; return this; }
}
/**
* Represents a DTO for a team in a workspace. Calls without an ObjectId will retrieve an array of all team objects for the workspace.
*/
public static class Team
{
public String Workspace = null;
public String TimeZone = null;
public String ObjectId = null;
public String ExternalId = null;
public String VersionId = null;
public String BasedOn = null;
public String Name = null;
public Boolean Enabled = null;
public ArrayList<DomainItem> Members = null;
public DomainItem Lead = null;
public DomainItem Parent = null;
public Address Address = null;
public HashMap<String,String> Data = null;
public ArrayList<String> Teams = null;
public ArrayList<EventItem> Events = null;
public String CreatedBy = null;
public HashMap<String,Object> ActiveLaborTypes = null;
public String getWorkspace() { return Workspace; }
public Team setWorkspace(String value) { this.Workspace = value; return this; }
public String getTimeZone() { return TimeZone; }
public Team setTimeZone(String value) { this.TimeZone = value; return this; }
public String getObjectId() { return ObjectId; }
public Team setObjectId(String value) { this.ObjectId = value; return this; }
public String getExternalId() { return ExternalId; }
public Team setExternalId(String value) { this.ExternalId = value; return this; }
public String getVersionId() { return VersionId; }
public Team setVersionId(String value) { this.VersionId = value; return this; }
public String getBasedOn() { return BasedOn; }
public Team setBasedOn(String value) { this.BasedOn = value; return this; }
public String getName() { return Name; }
public Team setName(String value) { this.Name = value; return this; }
public Boolean isEnabled() { return Enabled; }
public Team setEnabled(Boolean value) { this.Enabled = value; return this; }
public ArrayList<DomainItem> getMembers() { return Members; }
public Team setMembers(ArrayList<DomainItem> value) { this.Members = value; return this; }
public DomainItem getLead() { return Lead; }
public Team setLead(DomainItem value) { this.Lead = value; return this; }
public DomainItem getParent() { return Parent; }
public Team setParent(DomainItem value) { this.Parent = value; return this; }
public Address getAddress() { return Address; }
public Team setAddress(Address value) { this.Address = value; return this; }
public HashMap<String,String> getData() { return Data; }
public Team setData(HashMap<String,String> value) { this.Data = value; return this; }
public ArrayList<String> getTeams() { return Teams; }
public Team setTeams(ArrayList<String> value) { this.Teams = value; return this; }
public ArrayList<EventItem> getEvents() { return Events; }
public Team setEvents(ArrayList<EventItem> value) { this.Events = value; return this; }
public String getCreatedBy() { return CreatedBy; }
public Team setCreatedBy(String value) { this.CreatedBy = value; return this; }
public HashMap<String,Object> getActiveLaborTypes() { return ActiveLaborTypes; }
public Team setActiveLaborTypes(HashMap<String,Object> value) { this.ActiveLaborTypes = value; return this; }
}
public static class EventItem
{
public String ObjectId = null;
public String Date = null;
public Location Location = null;
public String Barcode = null;
public String Details = null;
public String Type = null;
public Boolean IsScan = null;
public String User = null;
public String SelectedBy = null;
public String Status = null;
public String StatusType = null;
public String DateCreated = null;
public Boolean Automatic = null;
public String getObjectId() { return ObjectId; }
public EventItem setObjectId(String value) { this.ObjectId = value; return this; }
public String getDate() { return Date; }
public EventItem setDate(String value) { this.Date = value; return this; }
public Location getLocation() { return Location; }
public EventItem setLocation(Location value) { this.Location = value; return this; }
public String getBarcode() { return Barcode; }
public EventItem setBarcode(String value) { this.Barcode = value; return this; }
public String getDetails() { return Details; }
public EventItem setDetails(String value) { this.Details = value; return this; }
public String getType() { return Type; }
public EventItem setType(String value) { this.Type = value; return this; }
public Boolean getIsScan() { return IsScan; }
public EventItem setIsScan(Boolean value) { this.IsScan = value; return this; }
public String getUser() { return User; }
public EventItem setUser(String value) { this.User = value; return this; }
public String getSelectedBy() { return SelectedBy; }
public EventItem setSelectedBy(String value) { this.SelectedBy = value; return this; }
public String getStatus() { return Status; }
public EventItem setStatus(String value) { this.Status = value; return this; }
public String getStatusType() { return StatusType; }
public EventItem setStatusType(String value) { this.StatusType = value; return this; }
public String getDateCreated() { return DateCreated; }
public EventItem setDateCreated(String value) { this.DateCreated = value; return this; }
public Boolean isAutomatic() { return Automatic; }
public EventItem setAutomatic(Boolean value) { this.Automatic = value; return this; }
}
public static class Address extends AddressBase
{
public String SiteName = null;
public String ContactTitle = null;
public String ContactName = null;
public String ContactPhone = null;
public String ContactEmail = null;
public String getSiteName() { return SiteName; }
public Address setSiteName(String value) { this.SiteName = value; return this; }
public String getContactTitle() { return ContactTitle; }
public Address setContactTitle(String value) { this.ContactTitle = value; return this; }
public String getContactName() { return ContactName; }
public Address setContactName(String value) { this.ContactName = value; return this; }
public String getContactPhone() { return ContactPhone; }
public Address setContactPhone(String value) { this.ContactPhone = value; return this; }
public String getContactEmail() { return ContactEmail; }
public Address setContactEmail(String value) { this.ContactEmail = value; return this; }
}
public static class AddressBase
{
public String Id = null;
public String AddressLine1 = null;
public String AddressLine2 = null;
public String City = null;
public String State = null;
public String Zip = null;
public Location Location = null;
public String Name = null;
public String NameSingleLine = null;
public String NameSingleLine5DigitZip = null;
public Boolean HasValidLocation = null;
public Boolean GeocodeFailed = null;
public String GeocodeResultCode = null;
public String Country = null;
public String getId() { return Id; }
public AddressBase setId(String value) { this.Id = value; return this; }
public String getAddressLine1() { return AddressLine1; }
public AddressBase setAddressLine1(String value) { this.AddressLine1 = value; return this; }
public String getAddressLine2() { return AddressLine2; }
public AddressBase setAddressLine2(String value) { this.AddressLine2 = value; return this; }
public String getCity() { return City; }
public AddressBase setCity(String value) { this.City = value; return this; }
public String getState() { return State; }
public AddressBase setState(String value) { this.State = value; return this; }
public String getZip() { return Zip; }
public AddressBase setZip(String value) { this.Zip = value; return this; }
public Location getLocation() { return Location; }
public AddressBase setLocation(Location value) { this.Location = value; return this; }
public String getName() { return Name; }
public AddressBase setName(String value) { this.Name = value; return this; }
public String getNameSingleLine() { return NameSingleLine; }
public AddressBase setNameSingleLine(String value) { this.NameSingleLine = value; return this; }
public String getNameSingleLine5DigitZip() { return NameSingleLine5DigitZip; }
public AddressBase setNameSingleLine5DigitZip(String value) { this.NameSingleLine5DigitZip = value; return this; }
public Boolean isHasValidLocation() { return HasValidLocation; }
public AddressBase setHasValidLocation(Boolean value) { this.HasValidLocation = value; return this; }
public Boolean isGeocodeFailed() { return GeocodeFailed; }
public AddressBase setGeocodeFailed(Boolean value) { this.GeocodeFailed = value; return this; }
public String getGeocodeResultCode() { return GeocodeResultCode; }
public AddressBase setGeocodeResultCode(String value) { this.GeocodeResultCode = value; return this; }
public String getCountry() { return Country; }
public AddressBase setCountry(String value) { this.Country = value; return this; }
}
public static class Location
{
public Double Latitude = null;
public Double Longitude = null;
public Boolean HasValidLocation = null;
public Double getLatitude() { return Latitude; }
public Location setLatitude(Double value) { this.Latitude = value; return this; }
public Double getLongitude() { return Longitude; }
public Location setLongitude(Double value) { this.Longitude = value; return this; }
public Boolean isHasValidLocation() { return HasValidLocation; }
public Location setHasValidLocation(Boolean value) { this.HasValidLocation = value; return this; }
}
public static class CustomDataField
{
public String Binding = null;
public String Label = null;
public Object Value = null;
public String DataType = null;
public Boolean IsReadOnly = null;
public Boolean IsHidden = null;
public String Values = null;
public String getBinding() { return Binding; }
public CustomDataField setBinding(String value) { this.Binding = value; return this; }
public String getLabel() { return Label; }
public CustomDataField setLabel(String value) { this.Label = value; return this; }
public Object getValue() { return Value; }
public CustomDataField setValue(Object value) { this.Value = value; return this; }
public String getDataType() { return DataType; }
public CustomDataField setDataType(String value) { this.DataType = value; return this; }
public Boolean getIsReadOnly() { return IsReadOnly; }
public CustomDataField setIsReadOnly(Boolean value) { this.IsReadOnly = value; return this; }
public Boolean getIsHidden() { return IsHidden; }
public CustomDataField setIsHidden(Boolean value) { this.IsHidden = value; return this; }
public String getValues() { return Values; }
public CustomDataField setValues(String value) { this.Values = value; return this; }
}
public static class DocumentOwnerDataAsset
{
public String ObjectId = null;
public String Name = null;
public String AssetType = null;
public Date LastUpdated = null;
public Date Created = null;
public AddressBasic Address = null;
public ArrayList<CustomDataField> CustomDataFields = null;
public String getObjectId() { return ObjectId; }
public DocumentOwnerDataAsset setObjectId(String value) { this.ObjectId = value; return this; }
public String getName() { return Name; }
public DocumentOwnerDataAsset setName(String value) { this.Name = value; return this; }
public String getAssetType() { return AssetType; }
public DocumentOwnerDataAsset setAssetType(String value) { this.AssetType = value; return this; }
public Date getLastUpdated() { return LastUpdated; }
public DocumentOwnerDataAsset setLastUpdated(Date value) { this.LastUpdated = value; return this; }
public Date getCreated() { return Created; }
public DocumentOwnerDataAsset setCreated(Date value) { this.Created = value; return this; }
public AddressBasic getAddress() { return Address; }
public DocumentOwnerDataAsset setAddress(AddressBasic value) { this.Address = value; return this; }
public ArrayList<CustomDataField> getCustomDataFields() { return CustomDataFields; }
public DocumentOwnerDataAsset setCustomDataFields(ArrayList<CustomDataField> value) { this.CustomDataFields = value; return this; }
}
public static class AddressBasic extends AddressBase
{
}
public static class RequiredAsset
{
public Integer Number = null;
public String Type = null;
public Integer getNumber() { return Number; }
public RequiredAsset setNumber(Integer value) { this.Number = value; return this; }
public String getType() { return Type; }
public RequiredAsset setType(String value) { this.Type = value; return this; }
}
public static class RequiredInventoryType
{
public Integer Number = null;
public String Type = null;
public String Name = null;
public Boolean IsSerialized = null;
public String Description = null;
public Integer getNumber() { return Number; }
public RequiredInventoryType setNumber(Integer value) { this.Number = value; return this; }
public String getType() { return Type; }
public RequiredInventoryType setType(String value) { this.Type = value; return this; }
public String getName() { return Name; }
public RequiredInventoryType setName(String value) { this.Name = value; return this; }
public Boolean getIsSerialized() { return IsSerialized; }
public RequiredInventoryType setIsSerialized(Boolean value) { this.IsSerialized = value; return this; }
public String getDescription() { return Description; }
public RequiredInventoryType setDescription(String value) { this.Description = value; return this; }
}
public static class RequiredUser
{
public Integer Number = null;
public ArrayList<String> SkillTags = null;
public Integer getNumber() { return Number; }
public RequiredUser setNumber(Integer value) { this.Number = value; return this; }
public ArrayList<String> getSkillTags() { return SkillTags; }
public RequiredUser setSkillTags(ArrayList<String> value) { this.SkillTags = value; return this; }
}
public static class TaskTemplate
{
public ArrayList<CustomField> CustomFields = null;
public ArrayList<TaskStatusDef> Statuses = null;
public String TaskListDetails = null;
public String AutoAssignStatus = null;
public String AutoUnassignStatus = null;
public String AutoScheduleStatus = null;
public String AutoUnscheduleStatus = null;
public String AutoUpdateStartStatus = null;
public String AutoUpdateEndStatus = null;
public String ArrivalStatus = null;
public String DepartureStatus = null;
public Boolean ConfirmArrival = null;
public Boolean ConfirmDeparture = null;
public Boolean ManualArrivalAllowed = null;
public Boolean ManualDepartureAllowed = null;
public Boolean HideDisabledStatuses = null;
public Integer GeofenceRadius = null;
public ArrayList<CustomField> getCustomFields() { return CustomFields; }
public TaskTemplate setCustomFields(ArrayList<CustomField> value) { this.CustomFields = value; return this; }
public ArrayList<TaskStatusDef> getStatuses() { return Statuses; }
public TaskTemplate setStatuses(ArrayList<TaskStatusDef> value) { this.Statuses = value; return this; }
public String getTaskListDetails() { return TaskListDetails; }
public TaskTemplate setTaskListDetails(String value) { this.TaskListDetails = value; return this; }
public String getAutoAssignStatus() { return AutoAssignStatus; }
public TaskTemplate setAutoAssignStatus(String value) { this.AutoAssignStatus = value; return this; }
public String getAutoUnassignStatus() { return AutoUnassignStatus; }
public TaskTemplate setAutoUnassignStatus(String value) { this.AutoUnassignStatus = value; return this; }
public String getAutoScheduleStatus() { return AutoScheduleStatus; }
public TaskTemplate setAutoScheduleStatus(String value) { this.AutoScheduleStatus = value; return this; }
public String getAutoUnscheduleStatus() { return AutoUnscheduleStatus; }
public TaskTemplate setAutoUnscheduleStatus(String value) { this.AutoUnscheduleStatus = value; return this; }
public String getAutoUpdateStartStatus() { return AutoUpdateStartStatus; }
public TaskTemplate setAutoUpdateStartStatus(String value) { this.AutoUpdateStartStatus = value; return this; }
public String getAutoUpdateEndStatus() { return AutoUpdateEndStatus; }
public TaskTemplate setAutoUpdateEndStatus(String value) { this.AutoUpdateEndStatus = value; return this; }
public String getArrivalStatus() { return ArrivalStatus; }
public TaskTemplate setArrivalStatus(String value) { this.ArrivalStatus = value; return this; }
public String getDepartureStatus() { return DepartureStatus; }
public TaskTemplate setDepartureStatus(String value) { this.DepartureStatus = value; return this; }
public Boolean isConfirmArrival() { return ConfirmArrival; }
public TaskTemplate setConfirmArrival(Boolean value) { this.ConfirmArrival = value; return this; }
public Boolean isConfirmDeparture() { return ConfirmDeparture; }
public TaskTemplate setConfirmDeparture(Boolean value) { this.ConfirmDeparture = value; return this; }
public Boolean isManualArrivalAllowed() { return ManualArrivalAllowed; }
public TaskTemplate setManualArrivalAllowed(Boolean value) { this.ManualArrivalAllowed = value; return this; }
public Boolean isManualDepartureAllowed() { return ManualDepartureAllowed; }
public TaskTemplate setManualDepartureAllowed(Boolean value) { this.ManualDepartureAllowed = value; return this; }
public Boolean isHideDisabledStatuses() { return HideDisabledStatuses; }
public TaskTemplate setHideDisabledStatuses(Boolean value) { this.HideDisabledStatuses = value; return this; }
public Integer getGeofenceRadius() { return GeofenceRadius; }
public TaskTemplate setGeofenceRadius(Integer value) { this.GeofenceRadius = value; return this; }
}
public static class CustomField
{
public String Key = null;
public String Label = null;
public Boolean IsActive = null;
public Boolean IsReadOnly = null;
public Boolean IsHidden = null;
public Boolean IsMandatory = null;
public Boolean DisplayOnMap = null;
public CustomFieldDataType CustomFieldDataType = null;
public String Values = null;
public String Prompt = null;
public String Default = null;
public Boolean DefaultAutoUpdate = null;
public String RequiredIf = null;
public ArrayList<String> Hidden = null;
public ArrayList<String> ReadOnly = null;
public HashMap<String,Object> ControlArgs = null;
public String IndexSlot = null;
public String Index = null;
public String getKey() { return Key; }
public CustomField setKey(String value) { this.Key = value; return this; }
public String getLabel() { return Label; }
public CustomField setLabel(String value) { this.Label = value; return this; }
public Boolean getIsActive() { return IsActive; }
public CustomField setIsActive(Boolean value) { this.IsActive = value; return this; }
public Boolean getIsReadOnly() { return IsReadOnly; }
public CustomField setIsReadOnly(Boolean value) { this.IsReadOnly = value; return this; }
public Boolean getIsHidden() { return IsHidden; }
public CustomField setIsHidden(Boolean value) { this.IsHidden = value; return this; }
public Boolean getIsMandatory() { return IsMandatory; }
public CustomField setIsMandatory(Boolean value) { this.IsMandatory = value; return this; }
public Boolean isDisplayOnMap() { return DisplayOnMap; }
public CustomField setDisplayOnMap(Boolean value) { this.DisplayOnMap = value; return this; }
public CustomFieldDataType getCustomFieldDataType() { return CustomFieldDataType; }
public CustomField setCustomFieldDataType(CustomFieldDataType value) { this.CustomFieldDataType = value; return this; }
public String getValues() { return Values; }
public CustomField setValues(String value) { this.Values = value; return this; }
public String getPrompt() { return Prompt; }
public CustomField setPrompt(String value) { this.Prompt = value; return this; }
public String getDefault() { return Default; }
public CustomField setDefault(String value) { this.Default = value; return this; }
public Boolean isDefaultAutoUpdate() { return DefaultAutoUpdate; }
public CustomField setDefaultAutoUpdate(Boolean value) { this.DefaultAutoUpdate = value; return this; }
public String getRequiredIf() { return RequiredIf; }
public CustomField setRequiredIf(String value) { this.RequiredIf = value; return this; }
public ArrayList<String> getHidden() { return Hidden; }
public CustomField setHidden(ArrayList<String> value) { this.Hidden = value; return this; }
public ArrayList<String> getReadOnly() { return ReadOnly; }
public CustomField setReadOnly(ArrayList<String> value) { this.ReadOnly = value; return this; }
public HashMap<String,Object> getControlArgs() { return ControlArgs; }
public CustomField setControlArgs(HashMap<String,Object> value) { this.ControlArgs = value; return this; }
public String getIndexSlot() { return IndexSlot; }
public CustomField setIndexSlot(String value) { this.IndexSlot = value; return this; }
public String getIndex() { return Index; }
public CustomField setIndex(String value) { this.Index = value; return this; }
}
public static enum CustomFieldDataType
{
Text,
Number,
Decimal,
Money,
PhoneNumber,
Ssn,
List,
Date,
File,
Barcode,
Gps,
Photo,
Spacer,
Separator,
AutoNumber,
TextArea,
Contact,
User,
Asset,
Checkbox,
CoreAssetList,
CoreTaskList,
CoreParentTask,
CoreContactList,
ComboBox,
DateTime,
Time,
Location,
CoreLocation,
Label,
EventLog,
Address,
Catalog,
CoreTeamList,
Segment,
CoreTimeSeries,
TimeSeries,
Command,
AutoNumberNumeric,
CatalogList,
CatalogComboBox,
DateRange,
DocumentGrid,
ReportLink,
Hyperlink,
PercentComplete,
Chart,
Range,
ExternalId,
AssetCatalog,
Inventory,
CoreTaskLaborItemTypes,
CoreTaskLaborItems,
ObjectList,
CoreTimeZone;
}
public static class TaskStatusDef
{
public String Name = null;
public String Color = null;
public String Code = null;
public String TransitionFrom = null;
public String TransitionMessage = null;
public ArrayList<String> TransitionCustomFields = null;
public String HiddenIf = null;
public Boolean IsStart = null;
public Boolean IsEnd = null;
public Boolean IsBlocked = null;
public String StatusType = null;
public String ProgressType = null;
public ArrayList<String> AutoCreateDocuments = null;
public Boolean LockTask = null;
public ArrayList<BindingDescriptor> SubmittedForms = null;
public String getName() { return Name; }
public TaskStatusDef setName(String value) { this.Name = value; return this; }
public String getColor() { return Color; }
public TaskStatusDef setColor(String value) { this.Color = value; return this; }
public String getCode() { return Code; }
public TaskStatusDef setCode(String value) { this.Code = value; return this; }
public String getTransitionFrom() { return TransitionFrom; }
public TaskStatusDef setTransitionFrom(String value) { this.TransitionFrom = value; return this; }
public String getTransitionMessage() { return TransitionMessage; }
public TaskStatusDef setTransitionMessage(String value) { this.TransitionMessage = value; return this; }
public ArrayList<String> getTransitionCustomFields() { return TransitionCustomFields; }
public TaskStatusDef setTransitionCustomFields(ArrayList<String> value) { this.TransitionCustomFields = value; return this; }
public String getHiddenIf() { return HiddenIf; }
public TaskStatusDef setHiddenIf(String value) { this.HiddenIf = value; return this; }
public Boolean getIsStart() { return IsStart; }
public TaskStatusDef setIsStart(Boolean value) { this.IsStart = value; return this; }
public Boolean getIsEnd() { return IsEnd; }
public TaskStatusDef setIsEnd(Boolean value) { this.IsEnd = value; return this; }
public Boolean getIsBlocked() { return IsBlocked; }
public TaskStatusDef setIsBlocked(Boolean value) { this.IsBlocked = value; return this; }
public String getStatusType() { return StatusType; }
public TaskStatusDef setStatusType(String value) { this.StatusType = value; return this; }
public String getProgressType() { return ProgressType; }
public TaskStatusDef setProgressType(String value) { this.ProgressType = value; return this; }
public ArrayList<String> getAutoCreateDocuments() { return AutoCreateDocuments; }
public TaskStatusDef setAutoCreateDocuments(ArrayList<String> value) { this.AutoCreateDocuments = value; return this; }
public Boolean isLockTask() { return LockTask; }
public TaskStatusDef setLockTask(Boolean value) { this.LockTask = value; return this; }
public ArrayList<BindingDescriptor> getSubmittedForms() { return SubmittedForms; }
public TaskStatusDef setSubmittedForms(ArrayList<BindingDescriptor> value) { this.SubmittedForms = value; return this; }
}
public static class BindingDescriptor
{
public String Binding = null;
public Boolean Required = null;
public String getBinding() { return Binding; }
public BindingDescriptor setBinding(String value) { this.Binding = value; return this; }
public Boolean isRequired() { return Required; }
public BindingDescriptor setRequired(Boolean value) { this.Required = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /{Workspace}/API/Task/{Id} HTTP/1.1
Host: dev.fieldsquared.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"Id":"String","Workspace":"String","TaskTemplate":"String","Task":{"Name":"String","Description":"String","ExternalId":"String","TaskType":"String","Priority":0,"DueDate":"String","DesiredCompletionDate":"String","Lat":0,"Lon":0,"StreetAddress":"String","Unit":"String","City":"String","State":"String","Zip":"String","Country":"String","ScheduleStart":"String","ScheduleEnd":"String","Status":"String","User":"String","Team":"String","Asset":"String","Contact":"String","TimeZone":"String","LastUpdated":"String","Created":"String","Data":{"String":{}}},"Tasks":[{"Name":"String","Description":"String","ExternalId":"String","TaskType":"String","Priority":0,"DueDate":"String","DesiredCompletionDate":"String","Lat":0,"Lon":0,"StreetAddress":"String","Unit":"String","City":"String","State":"String","Zip":"String","Country":"String","ScheduleStart":"String","ScheduleEnd":"String","Status":"String","User":"String","Team":"String","Asset":"String","Contact":"String","TimeZone":"String","LastUpdated":"String","Created":"String","Data":{"String":{}}}]}