Struct VoteRequest

Namespace
Unity.Multiplayer.Core

What a player asks for when they start a vote: the kind's id plus an optional number and text payload (a level number, a client id to kick, a map name). The server fills in StartedBy.

public readonly struct VoteRequest
Inherited Members

Constructors

VoteRequest(string, ulong, long, string)

A request for a kind vote by startedBy, with an optional payload.

public VoteRequest(string kind, ulong startedBy, long number = 0, string text = null)

Parameters

kind string
startedBy ulong
number long
text string

Properties

Kind

The vote kind's id (Id).

public string Kind { get; }

Property Value

string

Number

The number payload (0 when the kind takes none).

public long Number { get; }

Property Value

long

StartedBy

Client id of the player who asked.

public ulong StartedBy { get; }

Property Value

ulong

Text

The text payload (empty when the kind takes none; never null).

public string Text { get; }

Property Value

string

Methods

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.