6
StarHorizon_Public/Content.Server/Voting/VoteFinishedEventArgs.cs
2025-11-03 10:15:18 +03:00

31 lines
796 B
C#

using System.Collections.Immutable;
namespace Content.Server.Voting
{
public sealed class VoteFinishedEventArgs : EventArgs
{
/// <summary>
/// Null if stalemate.
/// </summary>
public readonly object? Winner;
/// <summary>
/// Winners. More than one if there was a stalemate.
/// </summary>
public readonly ImmutableArray<object> Winners;
/// <summary>
/// Stores all the votes in a string, for webhooks.
/// </summary>
public readonly List<int> Votes;
public VoteFinishedEventArgs(object? winner, ImmutableArray<object> winners, List<int> votes)
{
Winner = winner;
Winners = winners;
Votes = votes;
}
}
}