| GET,OPTIONS | /v1/lobby/branches |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class LobbyBranchesRequest
{
}
public static class LobbyBranchesResponse
{
public ResponseStatus ResponseStatus = null;
public ArrayList<LobbyBranch> Branches = new ArrayList<LobbyBranch>();
public LobbyPolicy Policy = null;
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public LobbyBranchesResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public ArrayList<LobbyBranch> getBranches() { return Branches; }
public LobbyBranchesResponse setBranches(ArrayList<LobbyBranch> value) { this.Branches = value; return this; }
public LobbyPolicy getPolicy() { return Policy; }
public LobbyBranchesResponse setPolicy(LobbyPolicy value) { this.Policy = value; return this; }
}
public static class LobbyBranch
{
public UUID BranchId = null;
public String Name = null;
public Boolean Allowed = null;
public Integer TvCount = null;
public String ZoneMode = null;
public Integer TakeoverEveryMin = null;
public Integer TakeoverSec = null;
public String Density = null;
public String IdleMode = null;
public Integer IdleContentId = null;
public Boolean ShowServices = null;
public String TimeZone = null;
public String BookingSlug = null;
public UUID getBranchId() { return BranchId; }
public LobbyBranch setBranchId(UUID value) { this.BranchId = value; return this; }
public String getName() { return Name; }
public LobbyBranch setName(String value) { this.Name = value; return this; }
public Boolean isAllowed() { return Allowed; }
public LobbyBranch setAllowed(Boolean value) { this.Allowed = value; return this; }
public Integer getTvCount() { return TvCount; }
public LobbyBranch setTvCount(Integer value) { this.TvCount = value; return this; }
public String getZoneMode() { return ZoneMode; }
public LobbyBranch setZoneMode(String value) { this.ZoneMode = value; return this; }
public Integer getTakeoverEveryMin() { return TakeoverEveryMin; }
public LobbyBranch setTakeoverEveryMin(Integer value) { this.TakeoverEveryMin = value; return this; }
public Integer getTakeoverSec() { return TakeoverSec; }
public LobbyBranch setTakeoverSec(Integer value) { this.TakeoverSec = value; return this; }
public String getDensity() { return Density; }
public LobbyBranch setDensity(String value) { this.Density = value; return this; }
public String getIdleMode() { return IdleMode; }
public LobbyBranch setIdleMode(String value) { this.IdleMode = value; return this; }
public Integer getIdleContentId() { return IdleContentId; }
public LobbyBranch setIdleContentId(Integer value) { this.IdleContentId = value; return this; }
public Boolean isShowServices() { return ShowServices; }
public LobbyBranch setShowServices(Boolean value) { this.ShowServices = value; return this; }
public String getTimeZone() { return TimeZone; }
public LobbyBranch setTimeZone(String value) { this.TimeZone = value; return this; }
public String getBookingSlug() { return BookingSlug; }
public LobbyBranch setBookingSlug(String value) { this.BookingSlug = value; return this; }
}
public static class LobbyPolicy
{
public ArrayList<String> ImageExtensions = new ArrayList<String>();
public Long MaxImageBytes = null;
public Long MaxVideoBytes = null;
public Integer MaxVideoSec = null;
public Integer TitleMax = null;
public Integer HeadlineMax = null;
public Integer BodyMax = null;
public Integer CaptionMax = null;
public Integer DwellMin = null;
public Integer DwellMax = null;
public ArrayList<String> getImageExtensions() { return ImageExtensions; }
public LobbyPolicy setImageExtensions(ArrayList<String> value) { this.ImageExtensions = value; return this; }
public Long getMaxImageBytes() { return MaxImageBytes; }
public LobbyPolicy setMaxImageBytes(Long value) { this.MaxImageBytes = value; return this; }
public Long getMaxVideoBytes() { return MaxVideoBytes; }
public LobbyPolicy setMaxVideoBytes(Long value) { this.MaxVideoBytes = value; return this; }
public Integer getMaxVideoSec() { return MaxVideoSec; }
public LobbyPolicy setMaxVideoSec(Integer value) { this.MaxVideoSec = value; return this; }
public Integer getTitleMax() { return TitleMax; }
public LobbyPolicy setTitleMax(Integer value) { this.TitleMax = value; return this; }
public Integer getHeadlineMax() { return HeadlineMax; }
public LobbyPolicy setHeadlineMax(Integer value) { this.HeadlineMax = value; return this; }
public Integer getBodyMax() { return BodyMax; }
public LobbyPolicy setBodyMax(Integer value) { this.BodyMax = value; return this; }
public Integer getCaptionMax() { return CaptionMax; }
public LobbyPolicy setCaptionMax(Integer value) { this.CaptionMax = value; return this; }
public Integer getDwellMin() { return DwellMin; }
public LobbyPolicy setDwellMin(Integer value) { this.DwellMin = value; return this; }
public Integer getDwellMax() { return DwellMax; }
public LobbyPolicy setDwellMax(Integer value) { this.DwellMax = value; return this; }
}
}
Java LobbyBranchesRequest DTOs
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/lobby/branches HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<LobbyBranchesResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<Branches>
<LobbyBranch>
<Allowed>false</Allowed>
<BookingSlug>String</BookingSlug>
<BranchId>00000000-0000-0000-0000-000000000000</BranchId>
<Density>String</Density>
<IdleContentId>0</IdleContentId>
<IdleMode>String</IdleMode>
<Name>String</Name>
<ShowServices>false</ShowServices>
<TakeoverEveryMin>0</TakeoverEveryMin>
<TakeoverSec>0</TakeoverSec>
<TimeZone>String</TimeZone>
<TvCount>0</TvCount>
<ZoneMode>String</ZoneMode>
</LobbyBranch>
</Branches>
<Policy>
<BodyMax>0</BodyMax>
<CaptionMax>0</CaptionMax>
<DwellMax>0</DwellMax>
<DwellMin>0</DwellMin>
<HeadlineMax>0</HeadlineMax>
<ImageExtensions xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:string>String</d3p1:string>
</ImageExtensions>
<MaxImageBytes>0</MaxImageBytes>
<MaxVideoBytes>0</MaxVideoBytes>
<MaxVideoSec>0</MaxVideoSec>
<TitleMax>0</TitleMax>
</Policy>
<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>
</LobbyBranchesResponse>