Class: Ticket#

Describes one or more users wishing to find another group of users to match against.

REQUIRES: Matchmaking Services

author Jean-Philippe Steinmetz info@acceleratxr.com

Hierarchy#

Index#

Constructors#

Properties#

Accessors#

Constructors#

constructor#

+ new Ticket(other?: any): Ticket

Overrides EntityBase.constructor

Defined in src/models/Ticket.ts:73

Parameters:#

Name

Type

other?

any

Returns: Ticket

Properties#

criteria#

criteria: Criteria[] = []

Defined in src/models/Ticket.ts:28

The list of criteria to use when filtering other tickets while looking for a match.


dateCreated#

dateCreated: Date = new Date()

Inherited from EntityBase.dateCreated

Defined in src/EntityBase.ts:18

The date and time that the object was created.


dateModified#

dateModified: Date = new Date()

Inherited from EntityBase.dateModified

Defined in src/EntityBase.ts:23

The date and time that the object was last modified.


dedicatedServer#

dedicatedServer: boolean = true

Defined in src/models/Ticket.ts:33

Indicates whether the user will request a dedicated server for the matched session or will self-host (P2P).


hostUid#

hostUid: string = “”

Defined in src/models/Ticket.ts:38

The UUID of the user that is responsible for maintaining this ticket.


numTeams#

numTeams: number = 0

Defined in src/models/Ticket.ts:48

The number of teams desired to be found.


numUsers#

numUsers: number = 0

Defined in src/models/Ticket.ts:53

The number of users represented on the ticket.


sessionUid#

sessionUid: string = “”

Defined in src/models/Ticket.ts:58

The UUID of the session once matchmaking has completed successfully.


statistics#

statistics: Statistic[] = []

Defined in src/models/Ticket.ts:63

The list of statistics for all users represented on the ticket.


status#

status: TicketStatus = TicketStatus.INITIALIZING

Defined in src/models/Ticket.ts:68

The current state of the ticket’s processing.


teamSize#

teamSize: any = null

Defined in src/models/Ticket.ts:43

The number of users desired for any given team. Can be represented as a number or a range using an object.


uid#

uid: string = uuid.v4()

Inherited from EntityBase.uid

Defined in src/EntityBase.ts:13

The universally unique identifier of the object.


users#

users: string[] = []

Defined in src/models/Ticket.ts:73

The list of UUIDs for each user represented on the ticket.


version#

version: number = 0

Inherited from EntityBase.version

Defined in src/EntityBase.ts:28

The optimistic locking version of the object.

Accessors#

ClassName#

Staticget ClassName(): string

Defined in src/models/Ticket.ts:23

Returns: string