Files
tbd-station-14/Content.Server/Voting/VoteFinishedEventArgs.cs
LankLTE 94628d6ab1 Relay custom votes to a webhook (#18561)
Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>
Co-authored-by: DrSmugleaf <drsmugleaf@gmail.com>
2023-12-14 20:03:32 -08: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;
}
}
}