Class VoteResult
- Namespace
- Unity.Multiplayer.Core
How a vote ended, as every peer hears it. Immutable.
public sealed class VoteResult
- Inheritance
-
VoteResult
- Inherited Members
Constructors
VoteResult(int, string, string, long, string, ulong, VoteEnding, int, int, int, int)
A result with every value given.
public VoteResult(int sequence, string kind, string title, long number, string text, ulong startedBy, VoteEnding ending, int yes, int no, int voters, int quorum)
Parameters
sequenceintkindstringtitlestringnumberlongtextstringstartedByulongendingVoteEndingyesintnointvotersintquorumint
Properties
Ending
How it ended.
public VoteEnding Ending { get; }
Property Value
Kind
The kind's id.
public string Kind { get; }
Property Value
No
No votes when it ended.
public int No { get; }
Property Value
Number
The request's number payload.
public long Number { get; }
Property Value
Passed
True when it passed and its effect ran.
public bool Passed { get; }
Property Value
Quorum
The quorum when it ended.
public int Quorum { get; }
Property Value
Sequence
Which vote it was (Sequence).
public int Sequence { get; }
Property Value
StartedBy
Client id of the player who started it.
public ulong StartedBy { get; }
Property Value
Text
The request's text payload (never null).
public string Text { get; }
Property Value
Title
The question it asked.
public string Title { get; }
Property Value
Voters
Voters when it ended.
public int Voters { get; }
Property Value
Yes
Yes votes when it ended.
public int Yes { get; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.