| GET | /v1/CustomersInLine/{LocationId} | ||
|---|---|---|---|
| GET | /v1/CustomersInLine |
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class CustomersInLine
{
public UUID ApiKey = null;
public UUID LocationId = null;
public Boolean clientIsLoading = null;
public UUID getApiKey() { return ApiKey; }
public CustomersInLine setApiKey(UUID value) { this.ApiKey = value; return this; }
public UUID getLocationId() { return LocationId; }
public CustomersInLine setLocationId(UUID value) { this.LocationId = value; return this; }
public Boolean isClientIsLoading() { return clientIsLoading; }
public CustomersInLine setClientIsLoading(Boolean value) { this.clientIsLoading = value; return this; }
}
public static class CustomersInLineResponse
{
public ResponseStatus ResponseStatus = null;
public ArrayList<CustomerInLineObject> Customers = new ArrayList<CustomerInLineObject>();
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public CustomersInLineResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public ArrayList<CustomerInLineObject> getCustomers() { return Customers; }
public CustomersInLineResponse setCustomers(ArrayList<CustomerInLineObject> value) { this.Customers = value; return this; }
}
public static class CustomerInLineObject
{
public UUID Id = null;
public String Name = null;
public String FullName = null;
public Date SignInTime = null;
public Date AdjustedSignInTime = null;
public Integer Status = null;
public Integer TaskTime = null;
public Boolean Completed = null;
public Boolean SendReminders = null;
public Date CompletedTime = null;
public UUID EmployeeId = null;
public String Employee = null;
public String Line = null;
public String Description = null;
public UUID ServiceId = null;
public UUID StationId = null;
public String StationName = null;
public UUID getId() { return Id; }
public CustomerInLineObject setId(UUID value) { this.Id = value; return this; }
public String getName() { return Name; }
public CustomerInLineObject setName(String value) { this.Name = value; return this; }
public String getFullName() { return FullName; }
public CustomerInLineObject setFullName(String value) { this.FullName = value; return this; }
public Date getSignInTime() { return SignInTime; }
public CustomerInLineObject setSignInTime(Date value) { this.SignInTime = value; return this; }
public Date getAdjustedSignInTime() { return AdjustedSignInTime; }
public CustomerInLineObject setAdjustedSignInTime(Date value) { this.AdjustedSignInTime = value; return this; }
public Integer getStatus() { return Status; }
public CustomerInLineObject setStatus(Integer value) { this.Status = value; return this; }
public Integer getTaskTime() { return TaskTime; }
public CustomerInLineObject setTaskTime(Integer value) { this.TaskTime = value; return this; }
public Boolean isCompleted() { return Completed; }
public CustomerInLineObject setCompleted(Boolean value) { this.Completed = value; return this; }
public Boolean isSendReminders() { return SendReminders; }
public CustomerInLineObject setSendReminders(Boolean value) { this.SendReminders = value; return this; }
public Date getCompletedTime() { return CompletedTime; }
public CustomerInLineObject setCompletedTime(Date value) { this.CompletedTime = value; return this; }
public UUID getEmployeeId() { return EmployeeId; }
public CustomerInLineObject setEmployeeId(UUID value) { this.EmployeeId = value; return this; }
public String getEmployee() { return Employee; }
public CustomerInLineObject setEmployee(String value) { this.Employee = value; return this; }
public String getLine() { return Line; }
public CustomerInLineObject setLine(String value) { this.Line = value; return this; }
public String getDescription() { return Description; }
public CustomerInLineObject setDescription(String value) { this.Description = value; return this; }
public UUID getServiceId() { return ServiceId; }
public CustomerInLineObject setServiceId(UUID value) { this.ServiceId = value; return this; }
public UUID getStationId() { return StationId; }
public CustomerInLineObject setStationId(UUID value) { this.StationId = value; return this; }
public String getStationName() { return StationName; }
public CustomerInLineObject setStationName(String value) { this.StationName = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/CustomersInLine/{LocationId} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<CustomersInLineResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<Customers>
<CustomerInLineObject>
<AdjustedSignInTime>0001-01-01T00:00:00</AdjustedSignInTime>
<Completed>false</Completed>
<CompletedTime>0001-01-01T00:00:00</CompletedTime>
<Description>String</Description>
<Employee>String</Employee>
<EmployeeId>00000000-0000-0000-0000-000000000000</EmployeeId>
<FullName>String</FullName>
<Id>00000000-0000-0000-0000-000000000000</Id>
<Line>String</Line>
<Name>String</Name>
<SendReminders>false</SendReminders>
<ServiceId>00000000-0000-0000-0000-000000000000</ServiceId>
<SignInTime>0001-01-01T00:00:00</SignInTime>
<StationId>00000000-0000-0000-0000-000000000000</StationId>
<StationName>String</StationName>
<Status>0</Status>
<TaskTime>0</TaskTime>
</CustomerInLineObject>
</Customers>
<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>
</CustomersInLineResponse>