' Options: 'Date: 2024-11-24 13:35:08 'Version: 6.50 'Tip: To override a DTO option, remove "''" prefix before updating 'BaseUrl: https://clubready.com/api/current ' '''GlobalNamespace: '''MakePartial: True '''MakeVirtual: True '''MakeDataContractsExtensible: False '''AddReturnMarker: True '''AddDescriptionAsComments: True '''AddDataContractAttributes: False '''AddIndexesToDataMembers: False '''AddGeneratedCodeAttributes: False '''AddResponseStatus: False '''AddImplicitVersion: '''InitializeCollections: True '''ExportValueTypes: False 'IncludeTypes: ClassRosterRequest.* '''ExcludeTypes: '''AddNamespaces: '''AddDefaultXmlNamespace: http://schemas.servicestack.net/types Imports System Imports System.Collections Imports System.Collections.Generic Imports System.Runtime.Serialization Imports ServiceStack Imports ServiceStack.DataAnnotations Imports ClubReady.Web.Api Imports ClubReady.Core.Api.Models Imports ClubReady.Core.Api.Models.Enums Imports ClubReady.Web.Api.Scheduling.Model Namespace Global Namespace ClubReady.Core.Api.Models Public Partial Class ApiDtoBase Public Overridable Property ApiKey As String Public Overridable Property StoreId As Nullable(Of Integer) Public Overridable Property ChainId As Nullable(Of Integer) End Class Public Partial Class ApiResponseBase Public Overridable Property Success As Boolean Public Overridable Property Message As String End Class Public Partial Class ClassRosterItem Public Overridable Property BookingId As Integer Public Overridable Property UserId As Integer Public Overridable Property FirstName As String Public Overridable Property LastName As String Public Overridable Property Email As String Public Overridable Property Phone As String Public Overridable Property BookingMade As Date Public Overridable Property FirstTimeBooking As Boolean Public Overridable Property PackageName As String Public Overridable Property PackageId As Nullable(Of Integer) Public Overridable Property LeadTypeName As String Public Overridable Property LeadTypeId As Nullable(Of Integer) Public Overridable Property IsMember As Boolean Public Overridable Property MemberExpiration As Nullable(Of Date) Public Overridable Property CreditType As ClassRosterCreditType Public Overridable Property CreditsRemaining As Integer Public Overridable Property NextCreditExpiration As Nullable(Of Date) Public Overridable Property BookingStatusId As Nullable(Of Short) Public Overridable Property BookingStatusDescription As String End Class Public Partial Class ClassRosterRequestDto Inherits ApiDtoBase Public Overridable Property ClassScheduleId As Integer End Class Public Partial Class ClassRosterResponseDto Inherits ApiResponseBase Public Sub New() ClassRoster = New List(Of ClassRosterItem) WaitList = New List(Of ClassRosterItem) End Sub Public Overridable Property ClassRoster As List(Of ClassRosterItem) Public Overridable Property WaitList As List(Of ClassRosterItem) End Class End Namespace Namespace ClubReady.Core.Api.Models.Enums Public Enum ClassRosterCreditType Uninitialized = 0 PaidCredit = 1 FreeCredit = 2 AmenityCredit = 3 MembershipTypeCredit = 4 ClassPassCredit = 5 [Error] = -1 End Enum End Namespace Namespace ClubReady.Web.Api Public Interface IApiKeyEndpoint Property ApiKey As String End Interface Public Interface IRestrictedApiRequest Implements IApiKeyEndpoint Property RestrictedId As Nullable(Of Integer) Property RestrictedResourceType As RestrictedResourceType End Interface Public Enum RestrictedResourceType Store Chain User Undefined End Enum End Namespace Namespace ClubReady.Web.Api.Scheduling.Model Public Partial Class ClassRosterRequest Inherits ClassRosterRequestDto Implements IReturn(Of ClassRosterResponse) Implements IRestrictedApiRequest ''' '''Api Key - grants access to resources ''' Public Overridable Property ApiKey As String ''' '''Store Id or Chain Id is required ''' Public Overridable Property StoreId As Nullable(Of Integer) ''' '''Store Id or Chain Id is required ''' Public Overridable Property ChainId As Nullable(Of Integer) ''' '''Class Schedule ID ''' Public Overridable Property ClassScheduleId As Integer Public Overridable Property RestrictedId As Nullable(Of Integer) Public Overridable Property RestrictedResourceType As RestrictedResourceType End Class Public Partial Class ClassRosterResponse Inherits ClassRosterResponseDto Public Sub New() ClassRoster = New List(Of ClassRosterItem) WaitList = New List(Of ClassRosterItem) End Sub Public Overridable Property Success As Boolean Public Overridable Property Message As String Public Overridable Property ClassDate As Date Public Overridable Property FreeSpots As Integer Public Overridable Property MaxSpots As Integer Public Overridable Property TotalBooked As Integer Public Overridable Property LocationType As String Public Overridable Property VirtualLink As String Public Overridable Property ClassRoster As List(Of ClassRosterItem) Public Overridable Property WaitList As List(Of ClassRosterItem) End Class End Namespace End Namespace