Builder

A Builder represents a mutable builder instance for the chained creation of TicketTemplate instances. An instance of this builder can be obtained using the TicketTemplate.newBuilder method, and it can optionally be initialized with default values using the overloaded function. The builder can then be used to create any number of TicketTemplate instances, and even after creating a TicketTemplate, further modifications can be made that will only affect new TicketTemplate instances.

Functions

Link copied to clipboard

Sets a specific key for the double arguments in the searchFields of the builder to a specific value. Those fields are indexed and can be used for filtering within Open Match. The already set double fields can be overwritten by specifying an existing key. The key is case-sensitive, which allows for multiple keys with the same name, but different casing.

Link copied to clipboard

Sets a specific key for the extensions of the builder to a specific value. Those fields are not indexed and cannot be used for filtering within Open Match. However, they are available for the matchmaking process and can be used for assembling matches. The already set extensions can be overwritten by specifying an existing key. The key is case-sensitive, which allows for multiple keys with the same name, but different casing.

Link copied to clipboard

Sets a specific key for the string arguments in the searchFields of the builder to a specific value. Those fields are indexed and can be used for filtering within Open Match. The already set string fields can be overwritten by specifying an existing key. The key is case-sensitive, which allows for multiple keys with the same name, but different casing.

Link copied to clipboard

Adds a new tag to the tags in the searchFields of the builder. Those fields are indexed and can be used for filtering within Open Match. The tag is case-sensitive, which allows for multiple tags with the same name, but different casing.

Link copied to clipboard

Creates a new immutable TicketTemplate with the properties configured in this builder. Later changes to this builder will no longer affect the returned instance. Multiple independent instances can be constructed using this method without invalidating this builder.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String