TicketUserServices

<back to all web services

EventsInSameSeriesRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdminRequires the permission:ReadData
The following routes are available for this service:
GET/Events/InSameSeries/{EventId}
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 EventInSeriesSummary
            Public Overridable Property ID As Integer
            Public Overridable Property Name As String
            Public Overridable Property TimeOfEvent As Nullable(Of Date)
            Public Overridable Property EventActive As Nullable(Of Boolean)
        End Class

        Public Partial Class EventsInSameSeriesRequest
            Public Overridable Property EventId As Integer
        End Class

        Public Partial Class EventsInSameSeriesResult
            Public Sub New()
                Events = New List(Of EventInSeriesSummary)
            End Sub

            Public Overridable Property StatusCode As Integer
            Public Overridable Property Message As String
            Public Overridable Property EventSeriesId As Nullable(Of Integer)
            Public Overridable Property Events As List(Of EventInSeriesSummary)
        End Class
    End Namespace
End Namespace

VB.NET EventsInSameSeriesRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /Events/InSameSeries/{EventId} HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"statusCode":0,"message":"String","eventSeriesId":0,"events":[{"id":0,"name":"String","timeOfEvent":"0001-01-01T00:00:00.0000000","eventActive":false}]}