Class Invitation
Represents an invitation to a multiplayer game. The invitation may be for a turn-based or real-time match.
Inheritance
System.Object
Invitation
Namespace: EasyMobile
Assembly: cs.temp.dll.dll
Syntax
public class Invitation
Constructors
Invitation(MatchType, Participant, UInt32)
Declaration
protected Invitation(MatchType invType, Participant inviter, uint variant)
Parameters
Type | Name | Description |
---|---|---|
MatchType | invType | |
Participant | inviter | |
System.UInt32 | variant |
Properties
InvitationType
Gets the type of the invitation.
Declaration
public MatchType InvitationType { get; }
Property Value
Type | Description |
---|---|
MatchType | The type of the invitation (real-time or turn-based). |
Inviter
Gets the participant who sent the invitation.
Declaration
public Participant Inviter { get; }
Property Value
Type | Description |
---|---|
Participant | The participant who issued the invitation. |
Variant
Gets the match variant. The meaning of this parameter is defined by the game. It usually indicates a particular game type or mode (for example "capture the flag", "first to 10 points", etc). It allows the player to match only with players whose match request shares the same variant number. This value must be between 0 and 511 (inclusive). Default value is 0.
Declaration
public uint Variant { get; }
Property Value
Type | Description |
---|---|
System.UInt32 | The match variant. 0 means default (unset). |
Methods
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()