Class Ticket#

Inheritance Relationships#

Base Type#

Class Documentation#

class Ticket : public xbe::sdk::EntityBase#

Public Functions

inline Ticket()#
inline Ticket(const Ticket &value)#
inline Ticket(Ticket &&value)#
inline virtual ~Ticket()#
inline virtual Ticket &SetProperties(const std::map<utility::string_t, Variant> &value) override#

Sets the object’s underlying map of stored values.

inline virtual Ticket &SetProperties(std::map<utility::string_t, Variant> &&value) override#

Sets the underlying map of stored values for the object.

inline virtual Ticket &SetProperty(const utility::char_t *name, const Variant &value) override#

Sets the property of the given name to the provided value.

inline virtual Ticket &SetProperty(const utility::string_t &name, const Variant &value) override#

Sets the property of the given name to the provided value.

inline virtual Ticket &SetRemoteUrl(const utility::string_t &url) override#

Returns the URL of the remote server endpoint where the object is managed.

inline virtual Ticket &SetUid(const utility::string_t &value) override#

Sets the value of the Uid property.

Parameters:

value – The value to set.

inline virtual Ticket &SetDateCreated(const datetime &value) override#

Sets the value of the DateCreated property.

Parameters:

value – The value to set.

inline virtual Ticket &SetDateModified(const datetime &value) override#

Sets the value of the DateModified property.

Parameters:

value – The value to set.

inline virtual Ticket &SetVersion(const uint64_t value) override#

Sets the value of the Version property.

Parameters:

value – The value to set.

virtual void Validate() override#
std::vector<std::shared_ptr<Criteria>> GetCriteria() const#

Returns the value of the Criteria property.

Ticket &SetCriteria(const std::vector<std::shared_ptr<Criteria>> value)#

Sets the value of the Criteria property.

Parameters:

value – The value to set.

bool IsDedicatedServer() const#

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

Ticket &SetDedicatedServer(bool value)#

Set to true to request a dedicated server upon match completion, otherwise set to false to indicate self-hosting (P2P).

utility::string_t GetHostUid() const#

Returns the value of the HostUid property as a utility::string_t.

Ticket &SetHostUid(const utility::string_t &value)#

Sets the value of the HostUid property.

Parameters:

value – The value to set.

std::shared_ptr<TeamSize> GetTeamSize() const#

Returns the value of the TeamSize property.

Ticket &SetTeamSize(std::shared_ptr<Ticket::TeamSize> value)#

Sets the value of the TeamSize property.

Parameters:

value – The value to set.

Ticket &SetTeamSize(int64_t value)#

Sets the value of the TeamSize property.

Parameters:

value – The value to set.

Ticket &SetTeamSize(int64_t min, int64_t max)#

Sets the value of the TeamSize property.

Parameters:
  • min – The minimum value to set.

  • max – The maximum value to set.

int64_t GetNumTeams() const#

Returns the value of the NumTeams property.

Ticket &SetNumTeams(const int64_t value)#

Sets the value of the NumTeams property.

Parameters:

value – The value to set.

int64_t GetNumUsers() const#

Returns the value of the NumUsers property.

Ticket &SetNumUsers(const int64_t value)#

Sets the value of the NumUsers property.

Parameters:

value – The value to set.

utility::string_t GetSessionUid() const#

Returns the value of the SessionUid property as a utility::string_t.

std::vector<std::shared_ptr<Statistic>> GetStatistics() const#

Returns the value of the Statistics property.

Ticket &SetStatistics(const std::vector<std::shared_ptr<Statistic>> value)#

Sets the value of the Statistics property.

Parameters:

value – The value to set.

const Status *GetStatus() const#

Returns the value of the Status property.

std::vector<utility::string_t> GetUsers() const#

Returns the value of the Users property.

Ticket &SetUsers(const std::vector<utility::string_t> value)#

Sets the value of the Users property.

Parameters:

value – The value to set.

Public Static Functions

static inline const utility::char_t *ClassName()#

Returns the fully qualified name of the class.