| GET | /v1/CustomersInLine | ||
|---|---|---|---|
| GET | /v1/CustomersInLine/{LocationId} |
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 String LocationName = null;
public Boolean MonitorShowServices = null;
public LobbySettings Lobby = null;
public String WorkspaceName = null;
public String StationTerm = null;
public ArrayList<StationSessionView> Sessions = new ArrayList<StationSessionView>();
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 String getLocationName() { return LocationName; }
public CustomersInLineResponse setLocationName(String value) { this.LocationName = value; return this; }
public Boolean isMonitorShowServices() { return MonitorShowServices; }
public CustomersInLineResponse setMonitorShowServices(Boolean value) { this.MonitorShowServices = value; return this; }
public LobbySettings getLobby() { return Lobby; }
public CustomersInLineResponse setLobby(LobbySettings value) { this.Lobby = value; return this; }
public String getWorkspaceName() { return WorkspaceName; }
public CustomersInLineResponse setWorkspaceName(String value) { this.WorkspaceName = value; return this; }
public String getStationTerm() { return StationTerm; }
public CustomersInLineResponse setStationTerm(String value) { this.StationTerm = value; return this; }
public ArrayList<StationSessionView> getSessions() { return Sessions; }
public CustomersInLineResponse setSessions(ArrayList<StationSessionView> value) { this.Sessions = value; return this; }
}
public static class CustomerInLineObject
{
public UUID CheckinId = null;
public UUID VisitKey = null;
public String Name = null;
public String SayNameAs = null;
public String Line = null;
public String Description = null;
public UUID ServiceId = null;
public Integer Status = null;
public Date SignInTime = null;
public Date AdjustedSignInTime = null;
public Date ArrivedTime = null;
public Boolean SendReminders = null;
public Date CalledTime = null;
public String TicketLabel = null;
public UUID StationId = null;
public String StationName = null;
public UUID Id = null;
public String FullName = null;
public Integer TaskTime = null;
public Boolean Completed = null;
public Date CompletedTime = null;
public UUID EmployeeId = null;
public String Employee = null;
public Boolean QuestionnaireSubmitted = null;
public String HoldReason = null;
public Date HoldExpectedUtc = null;
public Date ReturnedTime = null;
public Integer ContactId = null;
public String MobilePhone = null;
public String Source = null;
public String LastMovedFrom = null;
public Date LastMovedUtc = null;
public Date PriorityTime = null;
public String HoldByName = null;
public String HoldByStationName = null;
public Date HoldSinceUtc = null;
public Integer TicketNo = null;
public Integer NoteCount = null;
public Boolean HasCarryNote = null;
public String CarryNoteBy = null;
public Date CarryNoteAtUtc = null;
public PaperworkAsks PaperworkAsks = null;
public Integer DocumentCount = null;
public UUID getCheckinId() { return CheckinId; }
public CustomerInLineObject setCheckinId(UUID value) { this.CheckinId = value; return this; }
public UUID getVisitKey() { return VisitKey; }
public CustomerInLineObject setVisitKey(UUID value) { this.VisitKey = value; return this; }
public String getName() { return Name; }
public CustomerInLineObject setName(String value) { this.Name = value; return this; }
public String getSayNameAs() { return SayNameAs; }
public CustomerInLineObject setSayNameAs(String value) { this.SayNameAs = 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 Integer getStatus() { return Status; }
public CustomerInLineObject setStatus(Integer value) { this.Status = 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 Date getArrivedTime() { return ArrivedTime; }
public CustomerInLineObject setArrivedTime(Date value) { this.ArrivedTime = value; return this; }
public Boolean isSendReminders() { return SendReminders; }
public CustomerInLineObject setSendReminders(Boolean value) { this.SendReminders = value; return this; }
public Date getCalledTime() { return CalledTime; }
public CustomerInLineObject setCalledTime(Date value) { this.CalledTime = value; return this; }
public String getTicketLabel() { return TicketLabel; }
public CustomerInLineObject setTicketLabel(String value) { this.TicketLabel = 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; }
public UUID getId() { return Id; }
public CustomerInLineObject setId(UUID value) { this.Id = value; return this; }
public String getFullName() { return FullName; }
public CustomerInLineObject setFullName(String value) { this.FullName = 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 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 Boolean isQuestionnaireSubmitted() { return QuestionnaireSubmitted; }
public CustomerInLineObject setQuestionnaireSubmitted(Boolean value) { this.QuestionnaireSubmitted = value; return this; }
public String getHoldReason() { return HoldReason; }
public CustomerInLineObject setHoldReason(String value) { this.HoldReason = value; return this; }
public Date getHoldExpectedUtc() { return HoldExpectedUtc; }
public CustomerInLineObject setHoldExpectedUtc(Date value) { this.HoldExpectedUtc = value; return this; }
public Date getReturnedTime() { return ReturnedTime; }
public CustomerInLineObject setReturnedTime(Date value) { this.ReturnedTime = value; return this; }
public Integer getContactId() { return ContactId; }
public CustomerInLineObject setContactId(Integer value) { this.ContactId = value; return this; }
public String getMobilePhone() { return MobilePhone; }
public CustomerInLineObject setMobilePhone(String value) { this.MobilePhone = value; return this; }
public String getSource() { return Source; }
public CustomerInLineObject setSource(String value) { this.Source = value; return this; }
public String getLastMovedFrom() { return LastMovedFrom; }
public CustomerInLineObject setLastMovedFrom(String value) { this.LastMovedFrom = value; return this; }
public Date getLastMovedUtc() { return LastMovedUtc; }
public CustomerInLineObject setLastMovedUtc(Date value) { this.LastMovedUtc = value; return this; }
public Date getPriorityTime() { return PriorityTime; }
public CustomerInLineObject setPriorityTime(Date value) { this.PriorityTime = value; return this; }
public String getHoldByName() { return HoldByName; }
public CustomerInLineObject setHoldByName(String value) { this.HoldByName = value; return this; }
public String getHoldByStationName() { return HoldByStationName; }
public CustomerInLineObject setHoldByStationName(String value) { this.HoldByStationName = value; return this; }
public Date getHoldSinceUtc() { return HoldSinceUtc; }
public CustomerInLineObject setHoldSinceUtc(Date value) { this.HoldSinceUtc = value; return this; }
public Integer getTicketNo() { return TicketNo; }
public CustomerInLineObject setTicketNo(Integer value) { this.TicketNo = value; return this; }
public Integer getNoteCount() { return NoteCount; }
public CustomerInLineObject setNoteCount(Integer value) { this.NoteCount = value; return this; }
public Boolean isHasCarryNote() { return HasCarryNote; }
public CustomerInLineObject setHasCarryNote(Boolean value) { this.HasCarryNote = value; return this; }
public String getCarryNoteBy() { return CarryNoteBy; }
public CustomerInLineObject setCarryNoteBy(String value) { this.CarryNoteBy = value; return this; }
public Date getCarryNoteAtUtc() { return CarryNoteAtUtc; }
public CustomerInLineObject setCarryNoteAtUtc(Date value) { this.CarryNoteAtUtc = value; return this; }
public PaperworkAsks getPaperworkAsks() { return PaperworkAsks; }
public CustomerInLineObject setPaperworkAsks(PaperworkAsks value) { this.PaperworkAsks = value; return this; }
public Integer getDocumentCount() { return DocumentCount; }
public CustomerInLineObject setDocumentCount(Integer value) { this.DocumentCount = value; return this; }
}
public static class PaperworkAsks
{
public Boolean Questionnaire = null;
public Boolean Upload = null;
public Boolean isQuestionnaire() { return Questionnaire; }
public PaperworkAsks setQuestionnaire(Boolean value) { this.Questionnaire = value; return this; }
public Boolean isUpload() { return Upload; }
public PaperworkAsks setUpload(Boolean value) { this.Upload = value; return this; }
}
public static class LobbySettings
{
public UUID LocationId = null;
public String WaitSource = null;
public String MonitorChime = null;
public Boolean HasUploadedChime = null;
public String ChimeUrl = null;
public Integer MonitorVolume = null;
public Boolean MonitorAnnounce = null;
public String MonitorAnnounceTemplate = null;
public String MonitorVoice = null;
public String MonitorVoiceLang = null;
public BigDecimal MonitorVoiceRate = null;
public Integer MonitorRepeatAfterSec = null;
public Boolean MonitorTicketOnly = null;
public String LobbyZoneMode = null;
public Integer LobbyTakeoverEveryMin = null;
public Integer LobbyTakeoverSec = null;
public Boolean LobbyIdleScreen = null;
public String TimeZone = null;
public Boolean MonitorShowServices = null;
public Integer LobbyTvCount = null;
public String TicketPrefix = null;
public String LobbyDensity = null;
public String LobbyIdleMode = null;
public Integer LobbyIdleContentId = null;
public UUID getLocationId() { return LocationId; }
public LobbySettings setLocationId(UUID value) { this.LocationId = value; return this; }
public String getWaitSource() { return WaitSource; }
public LobbySettings setWaitSource(String value) { this.WaitSource = value; return this; }
public String getMonitorChime() { return MonitorChime; }
public LobbySettings setMonitorChime(String value) { this.MonitorChime = value; return this; }
public Boolean isHasUploadedChime() { return HasUploadedChime; }
public LobbySettings setHasUploadedChime(Boolean value) { this.HasUploadedChime = value; return this; }
public String getChimeUrl() { return ChimeUrl; }
public LobbySettings setChimeUrl(String value) { this.ChimeUrl = value; return this; }
public Integer getMonitorVolume() { return MonitorVolume; }
public LobbySettings setMonitorVolume(Integer value) { this.MonitorVolume = value; return this; }
public Boolean isMonitorAnnounce() { return MonitorAnnounce; }
public LobbySettings setMonitorAnnounce(Boolean value) { this.MonitorAnnounce = value; return this; }
public String getMonitorAnnounceTemplate() { return MonitorAnnounceTemplate; }
public LobbySettings setMonitorAnnounceTemplate(String value) { this.MonitorAnnounceTemplate = value; return this; }
public String getMonitorVoice() { return MonitorVoice; }
public LobbySettings setMonitorVoice(String value) { this.MonitorVoice = value; return this; }
public String getMonitorVoiceLang() { return MonitorVoiceLang; }
public LobbySettings setMonitorVoiceLang(String value) { this.MonitorVoiceLang = value; return this; }
public BigDecimal getMonitorVoiceRate() { return MonitorVoiceRate; }
public LobbySettings setMonitorVoiceRate(BigDecimal value) { this.MonitorVoiceRate = value; return this; }
public Integer getMonitorRepeatAfterSec() { return MonitorRepeatAfterSec; }
public LobbySettings setMonitorRepeatAfterSec(Integer value) { this.MonitorRepeatAfterSec = value; return this; }
public Boolean isMonitorTicketOnly() { return MonitorTicketOnly; }
public LobbySettings setMonitorTicketOnly(Boolean value) { this.MonitorTicketOnly = value; return this; }
public String getLobbyZoneMode() { return LobbyZoneMode; }
public LobbySettings setLobbyZoneMode(String value) { this.LobbyZoneMode = value; return this; }
public Integer getLobbyTakeoverEveryMin() { return LobbyTakeoverEveryMin; }
public LobbySettings setLobbyTakeoverEveryMin(Integer value) { this.LobbyTakeoverEveryMin = value; return this; }
public Integer getLobbyTakeoverSec() { return LobbyTakeoverSec; }
public LobbySettings setLobbyTakeoverSec(Integer value) { this.LobbyTakeoverSec = value; return this; }
public Boolean isLobbyIdleScreen() { return LobbyIdleScreen; }
public LobbySettings setLobbyIdleScreen(Boolean value) { this.LobbyIdleScreen = value; return this; }
public String getTimeZone() { return TimeZone; }
public LobbySettings setTimeZone(String value) { this.TimeZone = value; return this; }
public Boolean isMonitorShowServices() { return MonitorShowServices; }
public LobbySettings setMonitorShowServices(Boolean value) { this.MonitorShowServices = value; return this; }
public Integer getLobbyTvCount() { return LobbyTvCount; }
public LobbySettings setLobbyTvCount(Integer value) { this.LobbyTvCount = value; return this; }
public String getTicketPrefix() { return TicketPrefix; }
public LobbySettings setTicketPrefix(String value) { this.TicketPrefix = value; return this; }
public String getLobbyDensity() { return LobbyDensity; }
public LobbySettings setLobbyDensity(String value) { this.LobbyDensity = value; return this; }
public String getLobbyIdleMode() { return LobbyIdleMode; }
public LobbySettings setLobbyIdleMode(String value) { this.LobbyIdleMode = value; return this; }
public Integer getLobbyIdleContentId() { return LobbyIdleContentId; }
public LobbySettings setLobbyIdleContentId(Integer value) { this.LobbyIdleContentId = value; return this; }
}
public static class StationSessionView
{
public UUID SessionId = null;
public UUID LocationId = null;
public UUID StationId = null;
public String StationName = null;
public UUID EmployeeId = null;
public String EmployeeName = null;
public Date SignedInUtc = null;
public Date LastSeenUtc = null;
public Date PausedSinceUtc = null;
public String PauseReason = null;
public UUID HomeBranchId = null;
public String HomeBranchName = null;
public Boolean IsMine = null;
public UUID getSessionId() { return SessionId; }
public StationSessionView setSessionId(UUID value) { this.SessionId = value; return this; }
public UUID getLocationId() { return LocationId; }
public StationSessionView setLocationId(UUID value) { this.LocationId = value; return this; }
public UUID getStationId() { return StationId; }
public StationSessionView setStationId(UUID value) { this.StationId = value; return this; }
public String getStationName() { return StationName; }
public StationSessionView setStationName(String value) { this.StationName = value; return this; }
public UUID getEmployeeId() { return EmployeeId; }
public StationSessionView setEmployeeId(UUID value) { this.EmployeeId = value; return this; }
public String getEmployeeName() { return EmployeeName; }
public StationSessionView setEmployeeName(String value) { this.EmployeeName = value; return this; }
public Date getSignedInUtc() { return SignedInUtc; }
public StationSessionView setSignedInUtc(Date value) { this.SignedInUtc = value; return this; }
public Date getLastSeenUtc() { return LastSeenUtc; }
public StationSessionView setLastSeenUtc(Date value) { this.LastSeenUtc = value; return this; }
public Date getPausedSinceUtc() { return PausedSinceUtc; }
public StationSessionView setPausedSinceUtc(Date value) { this.PausedSinceUtc = value; return this; }
public String getPauseReason() { return PauseReason; }
public StationSessionView setPauseReason(String value) { this.PauseReason = value; return this; }
public UUID getHomeBranchId() { return HomeBranchId; }
public StationSessionView setHomeBranchId(UUID value) { this.HomeBranchId = value; return this; }
public String getHomeBranchName() { return HomeBranchName; }
public StationSessionView setHomeBranchName(String value) { this.HomeBranchName = value; return this; }
public Boolean getIsMine() { return IsMine; }
public StationSessionView setIsMine(Boolean value) { this.IsMine = 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 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>
<ArrivedTime>0001-01-01T00:00:00</ArrivedTime>
<CalledTime>0001-01-01T00:00:00</CalledTime>
<CarryNoteAtUtc>0001-01-01T00:00:00</CarryNoteAtUtc>
<CarryNoteBy>String</CarryNoteBy>
<CheckinId>00000000-0000-0000-0000-000000000000</CheckinId>
<Completed>false</Completed>
<CompletedTime>0001-01-01T00:00:00</CompletedTime>
<ContactId>0</ContactId>
<Description>String</Description>
<DocumentCount>0</DocumentCount>
<Employee>String</Employee>
<EmployeeId>00000000-0000-0000-0000-000000000000</EmployeeId>
<FullName>String</FullName>
<HasCarryNote>false</HasCarryNote>
<HoldByName>String</HoldByName>
<HoldByStationName>String</HoldByStationName>
<HoldExpectedUtc>0001-01-01T00:00:00</HoldExpectedUtc>
<HoldReason>String</HoldReason>
<HoldSinceUtc>0001-01-01T00:00:00</HoldSinceUtc>
<Id>00000000-0000-0000-0000-000000000000</Id>
<LastMovedFrom>String</LastMovedFrom>
<LastMovedUtc>0001-01-01T00:00:00</LastMovedUtc>
<Line>String</Line>
<MobilePhone>String</MobilePhone>
<Name>String</Name>
<NoteCount>0</NoteCount>
<PaperworkAsks>
<Questionnaire>false</Questionnaire>
<Upload>false</Upload>
</PaperworkAsks>
<PriorityTime>0001-01-01T00:00:00</PriorityTime>
<QuestionnaireSubmitted>false</QuestionnaireSubmitted>
<ReturnedTime>0001-01-01T00:00:00</ReturnedTime>
<SayNameAs>String</SayNameAs>
<SendReminders>false</SendReminders>
<ServiceId>00000000-0000-0000-0000-000000000000</ServiceId>
<SignInTime>0001-01-01T00:00:00</SignInTime>
<Source>String</Source>
<StationId>00000000-0000-0000-0000-000000000000</StationId>
<StationName>String</StationName>
<Status>0</Status>
<TaskTime>0</TaskTime>
<TicketLabel>String</TicketLabel>
<TicketNo>0</TicketNo>
<VisitKey>00000000-0000-0000-0000-000000000000</VisitKey>
</CustomerInLineObject>
</Customers>
<Lobby>
<ChimeUrl>String</ChimeUrl>
<HasUploadedChime>false</HasUploadedChime>
<LobbyDensity>String</LobbyDensity>
<LobbyIdleContentId>0</LobbyIdleContentId>
<LobbyIdleMode>String</LobbyIdleMode>
<LobbyIdleScreen>false</LobbyIdleScreen>
<LobbyTakeoverEveryMin>0</LobbyTakeoverEveryMin>
<LobbyTakeoverSec>0</LobbyTakeoverSec>
<LobbyTvCount>0</LobbyTvCount>
<LobbyZoneMode>String</LobbyZoneMode>
<LocationId>00000000-0000-0000-0000-000000000000</LocationId>
<MonitorAnnounce>false</MonitorAnnounce>
<MonitorAnnounceTemplate>String</MonitorAnnounceTemplate>
<MonitorChime>String</MonitorChime>
<MonitorRepeatAfterSec>0</MonitorRepeatAfterSec>
<MonitorShowServices>false</MonitorShowServices>
<MonitorTicketOnly>false</MonitorTicketOnly>
<MonitorVoice>String</MonitorVoice>
<MonitorVoiceLang>String</MonitorVoiceLang>
<MonitorVoiceRate>0</MonitorVoiceRate>
<MonitorVolume>0</MonitorVolume>
<TicketPrefix>String</TicketPrefix>
<TimeZone>String</TimeZone>
<WaitSource>String</WaitSource>
</Lobby>
<LocationName>String</LocationName>
<MonitorShowServices>false</MonitorShowServices>
<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>
<Sessions>
<StationSessionView>
<EmployeeId>00000000-0000-0000-0000-000000000000</EmployeeId>
<EmployeeName>String</EmployeeName>
<HomeBranchId>00000000-0000-0000-0000-000000000000</HomeBranchId>
<HomeBranchName>String</HomeBranchName>
<IsMine>false</IsMine>
<LastSeenUtc>0001-01-01T00:00:00</LastSeenUtc>
<LocationId>00000000-0000-0000-0000-000000000000</LocationId>
<PauseReason>String</PauseReason>
<PausedSinceUtc>0001-01-01T00:00:00</PausedSinceUtc>
<SessionId>00000000-0000-0000-0000-000000000000</SessionId>
<SignedInUtc>0001-01-01T00:00:00</SignedInUtc>
<StationId>00000000-0000-0000-0000-000000000000</StationId>
<StationName>String</StationName>
</StationSessionView>
</Sessions>
<StationTerm>String</StationTerm>
<WorkspaceName>String</WorkspaceName>
</CustomersInLineResponse>