| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Required permission: | ReadData |
| GET | /ownerCardTypes/connections/{OwnerId} |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class OwnerCardTypeConnectionsRequest
{
public Integer ownerId = null;
public Boolean includeInactive = null;
public Integer getOwnerId() { return ownerId; }
public OwnerCardTypeConnectionsRequest setOwnerId(Integer value) { this.ownerId = value; return this; }
public Boolean isIncludeInactive() { return includeInactive; }
public OwnerCardTypeConnectionsRequest setIncludeInactive(Boolean value) { this.includeInactive = value; return this; }
}
public static class OwnerCardTypeConnectionsResult
{
public ArrayList<OwnerCardTypeConnectionsItem> items = null;
public Integer entitlesNothingCount = null;
public ArrayList<UncoveredSeriesItem> seriesWithoutCards = null;
public Integer seriesWithoutCardsCount = null;
public ArrayList<UncoveredSeriesItem> upcomingSeries = null;
public Integer statusCode = null;
public String message = null;
public ArrayList<OwnerCardTypeConnectionsItem> getItems() { return items; }
public OwnerCardTypeConnectionsResult setItems(ArrayList<OwnerCardTypeConnectionsItem> value) { this.items = value; return this; }
public Integer getEntitlesNothingCount() { return entitlesNothingCount; }
public OwnerCardTypeConnectionsResult setEntitlesNothingCount(Integer value) { this.entitlesNothingCount = value; return this; }
public ArrayList<UncoveredSeriesItem> getSeriesWithoutCards() { return seriesWithoutCards; }
public OwnerCardTypeConnectionsResult setSeriesWithoutCards(ArrayList<UncoveredSeriesItem> value) { this.seriesWithoutCards = value; return this; }
public Integer getSeriesWithoutCardsCount() { return seriesWithoutCardsCount; }
public OwnerCardTypeConnectionsResult setSeriesWithoutCardsCount(Integer value) { this.seriesWithoutCardsCount = value; return this; }
public ArrayList<UncoveredSeriesItem> getUpcomingSeries() { return upcomingSeries; }
public OwnerCardTypeConnectionsResult setUpcomingSeries(ArrayList<UncoveredSeriesItem> value) { this.upcomingSeries = value; return this; }
public Integer getStatusCode() { return statusCode; }
public OwnerCardTypeConnectionsResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public OwnerCardTypeConnectionsResult setMessage(String value) { this.message = value; return this; }
}
public static class OwnerCardTypeConnectionsItem
{
public Integer ownerCardTypeId = null;
public String name = null;
public Boolean isActive = null;
public Integer activeConnections = null;
public Integer totalConnections = null;
public Boolean entitlesNothing = null;
public ArrayList<OwnerCardTypeSeriesItem> series = null;
public Integer getOwnerCardTypeId() { return ownerCardTypeId; }
public OwnerCardTypeConnectionsItem setOwnerCardTypeId(Integer value) { this.ownerCardTypeId = value; return this; }
public String getName() { return name; }
public OwnerCardTypeConnectionsItem setName(String value) { this.name = value; return this; }
public Boolean getIsActive() { return isActive; }
public OwnerCardTypeConnectionsItem setIsActive(Boolean value) { this.isActive = value; return this; }
public Integer getActiveConnections() { return activeConnections; }
public OwnerCardTypeConnectionsItem setActiveConnections(Integer value) { this.activeConnections = value; return this; }
public Integer getTotalConnections() { return totalConnections; }
public OwnerCardTypeConnectionsItem setTotalConnections(Integer value) { this.totalConnections = value; return this; }
public Boolean isEntitlesNothing() { return entitlesNothing; }
public OwnerCardTypeConnectionsItem setEntitlesNothing(Boolean value) { this.entitlesNothing = value; return this; }
public ArrayList<OwnerCardTypeSeriesItem> getSeries() { return series; }
public OwnerCardTypeConnectionsItem setSeries(ArrayList<OwnerCardTypeSeriesItem> value) { this.series = value; return this; }
}
public static class OwnerCardTypeSeriesItem
{
public Integer id = null;
public String name = null;
public Boolean isActive = null;
public Integer ticketTypeCount = null;
public Integer getId() { return id; }
public OwnerCardTypeSeriesItem setId(Integer value) { this.id = value; return this; }
public String getName() { return name; }
public OwnerCardTypeSeriesItem setName(String value) { this.name = value; return this; }
public Boolean getIsActive() { return isActive; }
public OwnerCardTypeSeriesItem setIsActive(Boolean value) { this.isActive = value; return this; }
public Integer getTicketTypeCount() { return ticketTypeCount; }
public OwnerCardTypeSeriesItem setTicketTypeCount(Integer value) { this.ticketTypeCount = value; return this; }
}
public static class UncoveredSeriesItem
{
public Integer seriesId = null;
public String name = null;
public Integer upcomingEvents = null;
public Date nextEventUTC = null;
public Integer getSeriesId() { return seriesId; }
public UncoveredSeriesItem setSeriesId(Integer value) { this.seriesId = value; return this; }
public String getName() { return name; }
public UncoveredSeriesItem setName(String value) { this.name = value; return this; }
public Integer getUpcomingEvents() { return upcomingEvents; }
public UncoveredSeriesItem setUpcomingEvents(Integer value) { this.upcomingEvents = value; return this; }
public Date getNextEventUTC() { return nextEventUTC; }
public UncoveredSeriesItem setNextEventUTC(Date value) { this.nextEventUTC = value; return this; }
}
}
Java OwnerCardTypeConnectionsRequest 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 /ownerCardTypes/connections/{OwnerId} HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<OwnerCardTypeConnectionsResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<EntitlesNothingCount>0</EntitlesNothingCount>
<Items>
<OwnerCardTypeConnectionsItem>
<ActiveConnections>0</ActiveConnections>
<EntitlesNothing>false</EntitlesNothing>
<IsActive>false</IsActive>
<Name>String</Name>
<OwnerCardTypeId>0</OwnerCardTypeId>
<Series>
<OwnerCardTypeSeriesItem>
<Id>0</Id>
<IsActive>false</IsActive>
<Name>String</Name>
<TicketTypeCount>0</TicketTypeCount>
</OwnerCardTypeSeriesItem>
</Series>
<TotalConnections>0</TotalConnections>
</OwnerCardTypeConnectionsItem>
</Items>
<Message>String</Message>
<SeriesWithoutCards>
<UncoveredSeriesItem>
<Name>String</Name>
<NextEventUTC>0001-01-01T00:00:00</NextEventUTC>
<SeriesId>0</SeriesId>
<UpcomingEvents>0</UpcomingEvents>
</UncoveredSeriesItem>
</SeriesWithoutCards>
<SeriesWithoutCardsCount>0</SeriesWithoutCardsCount>
<StatusCode>0</StatusCode>
<UpcomingSeries>
<UncoveredSeriesItem>
<Name>String</Name>
<NextEventUTC>0001-01-01T00:00:00</NextEventUTC>
<SeriesId>0</SeriesId>
<UpcomingEvents>0</UpcomingEvents>
</UncoveredSeriesItem>
</UpcomingSeries>
</OwnerCardTypeConnectionsResult>