TicketUserServices

<back to all web services

GetExtraInfoForm

The following routes are available for this service:
GET/extraInfo/form/{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 ExtraInfoFieldInfo
            Public Overridable Property Id As Integer
            Public Overridable Property FieldKey As String
            Public Overridable Property FieldType As String
            Public Overridable Property LabelIs As String
            Public Overridable Property LabelEn As String
            Public Overridable Property PlaceholderIs As String
            Public Overridable Property PlaceholderEn As String
            Public Overridable Property IsRequired As Boolean
            Public Overridable Property MaxLength As Integer
            Public Overridable Property OptionsJson As String
            Public Overridable Property Scope As String
            Public Overridable Property SortOrder As Integer
            Public Overridable Property IsSystem As Boolean
            Public Overridable Property IsActive As Nullable(Of Boolean)
            Public Overridable Property HasAnswers As Nullable(Of Boolean)
        End Class

        Public Partial Class ExtraInfoFormResult
            Public Sub New()
                Fields = New List(Of ExtraInfoFieldInfo)
            End Sub

            Public Overridable Property EventId As Integer
            Public Overridable Property ShowAlert As Boolean
            Public Overridable Property AlertTitleIs As String
            Public Overridable Property AlertTitleEn As String
            Public Overridable Property AlertBodyIs As String
            Public Overridable Property AlertBodyEn As String
            Public Overridable Property AlertButtonIs As String
            Public Overridable Property AlertButtonEn As String
            Public Overridable Property IsDefault As Boolean
            Public Overridable Property Fields As List(Of ExtraInfoFieldInfo)
        End Class

        Public Partial Class GetExtraInfoForm
            Public Overridable Property EventId As Integer
        End Class
    End Namespace
End Namespace

VB.NET GetExtraInfoForm 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 /extraInfo/form/{EventId} HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"eventId":0,"showAlert":false,"alertTitleIs":"String","alertTitleEn":"String","alertBodyIs":"String","alertBodyEn":"String","alertButtonIs":"String","alertButtonEn":"String","isDefault":false,"fields":[{"id":0,"fieldKey":"String","fieldType":"String","labelIs":"String","labelEn":"String","placeholderIs":"String","placeholderEn":"String","isRequired":false,"maxLength":0,"optionsJson":"String","scope":"String","sortOrder":0,"isSystem":false,"isActive":false,"hasAnswers":false}]}