| 123456789101112131415161718192021222324252627282930 |
- 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;
- }
- }
- }
|