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

sequence int
kind string
title string
number long
text string
startedBy ulong
ending VoteEnding
yes int
no int
voters int
quorum int

Properties

Ending

How it ended.

public VoteEnding Ending { get; }

Property Value

VoteEnding

Kind

The kind's id.

public string Kind { get; }

Property Value

string

No

No votes when it ended.

public int No { get; }

Property Value

int

Number

The request's number payload.

public long Number { get; }

Property Value

long

Passed

True when it passed and its effect ran.

public bool Passed { get; }

Property Value

bool

Quorum

The quorum when it ended.

public int Quorum { get; }

Property Value

int

Sequence

Which vote it was (Sequence).

public int Sequence { get; }

Property Value

int

StartedBy

Client id of the player who started it.

public ulong StartedBy { get; }

Property Value

ulong

Text

The request's text payload (never null).

public string Text { get; }

Property Value

string

Title

The question it asked.

public string Title { get; }

Property Value

string

Voters

Voters when it ended.

public int Voters { get; }

Property Value

int

Yes

Yes votes when it ended.

public int Yes { get; }

Property Value

int

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.