Files
OldThink/Content.Server/Voting/IVoteHandle.cs

22 lines
547 B
C#
Raw Normal View History

using System.Collections.Generic;
using Robust.Server.Player;
namespace Content.Server.Voting
{
public interface IVoteHandle
{
int Id { get; }
string Title { get; }
string InitiatorText { get; }
bool Finished { get; }
bool Cancelled { get; }
IReadOnlyDictionary<object, int> VotesPerOption { get; }
event VoteFinishedEventHandler OnFinished;
bool IsValidOption(int optionId);
void CastVote(IPlayerSession session, int? optionId);
void Cancel();
}
}