| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Required permission: | ReadData |
| GET | /ownerCardTypes/connections/{OwnerId} |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports TicketUserServices.ServiceModel
Namespace Global
Namespace TicketUserServices.ServiceModel
Public Partial Class OwnerCardTypeConnectionsItem
Public Sub New()
Series = New List(Of OwnerCardTypeSeriesItem)
End Sub
Public Overridable Property OwnerCardTypeId As Integer
Public Overridable Property Name As String
Public Overridable Property IsActive As Boolean
Public Overridable Property ActiveConnections As Integer
Public Overridable Property TotalConnections As Integer
Public Overridable Property EntitlesNothing As Boolean
Public Overridable Property Series As List(Of OwnerCardTypeSeriesItem)
End Class
Public Partial Class OwnerCardTypeConnectionsRequest
Public Overridable Property OwnerId As Integer
Public Overridable Property IncludeInactive As Boolean
End Class
Public Partial Class OwnerCardTypeConnectionsResult
Public Sub New()
Items = New List(Of OwnerCardTypeConnectionsItem)
SeriesWithoutCards = New List(Of UncoveredSeriesItem)
UpcomingSeries = New List(Of UncoveredSeriesItem)
End Sub
Public Overridable Property Items As List(Of OwnerCardTypeConnectionsItem)
Public Overridable Property EntitlesNothingCount As Integer
Public Overridable Property SeriesWithoutCards As List(Of UncoveredSeriesItem)
Public Overridable Property SeriesWithoutCardsCount As Integer
Public Overridable Property UpcomingSeries As List(Of UncoveredSeriesItem)
Public Overridable Property StatusCode As Integer
Public Overridable Property Message As String
End Class
Public Partial Class OwnerCardTypeSeriesItem
Public Overridable Property Id As Integer
Public Overridable Property Name As String
Public Overridable Property IsActive As Boolean
Public Overridable Property TicketTypeCount As Integer
End Class
Public Partial Class UncoveredSeriesItem
Public Overridable Property SeriesId As Integer
Public Overridable Property Name As String
Public Overridable Property UpcomingEvents As Integer
Public Overridable Property NextEventUTC As Date
End Class
End Namespace
End Namespace
VB.NET OwnerCardTypeConnectionsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
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: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
items:
[
{
ownerCardTypeId: 0,
name: String,
isActive: False,
activeConnections: 0,
totalConnections: 0,
entitlesNothing: False,
series:
[
{
id: 0,
name: String,
isActive: False,
ticketTypeCount: 0
}
]
}
],
entitlesNothingCount: 0,
seriesWithoutCards:
[
{
seriesId: 0,
name: String,
upcomingEvents: 0,
nextEventUTC: 0001-01-01
}
],
seriesWithoutCardsCount: 0,
upcomingSeries:
[
{
seriesId: 0,
name: String,
upcomingEvents: 0,
nextEventUTC: 0001-01-01
}
],
statusCode: 0,
message: String
}