| | 1 | | using MUNity.Base; |
| | 2 | | using System; |
| | 3 | | using System.Collections.Generic; |
| | 4 | | using System.Text; |
| | 5 | |
|
| | 6 | | namespace MUNity.Schema.Simulation |
| | 7 | | { |
| | 8 | |
|
| | 9 | | /// <summary> |
| | 10 | | /// Event Arguments for a given vote for the simulation socket. |
| | 11 | | /// </summary> |
| | 12 | | public class VotedEventArgs : EventArgs |
| | 13 | | { |
| | 14 | | /// <summary> |
| | 15 | | /// The id of the voting |
| | 16 | | /// </summary> |
| 0 | 17 | | public string VoteId { get; set; } |
| | 18 | |
|
| | 19 | | /// <summary> |
| | 20 | | /// the simulationUserId of the user that has voted. |
| | 21 | | /// </summary> |
| 0 | 22 | | public int UserId { get; set; } |
| | 23 | |
|
| | 24 | | /// <summary> |
| | 25 | | /// The index of the choice that this user has picked. |
| | 26 | | /// </summary> |
| 0 | 27 | | public EVoteStates Choice { get; set; } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Creates a new Instance of this voting with all given arguments |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="voteId"></param> |
| | 33 | | /// <param name="userId"></param> |
| | 34 | | /// <param name="choice"></param> |
| 0 | 35 | | public VotedEventArgs(string voteId, int userId, EVoteStates choice) |
| 0 | 36 | | { |
| 0 | 37 | | this.VoteId = voteId; |
| 0 | 38 | | this.UserId = userId; |
| 0 | 39 | | this.Choice = choice; |
| 0 | 40 | | } |
| | 41 | |
|
| | 42 | | /// <summary> |
| | 43 | | /// Creates a new instance of voting. |
| | 44 | | /// </summary> |
| 0 | 45 | | public VotedEventArgs() |
| 0 | 46 | | { |
| | 47 | |
|
| 0 | 48 | | } |
| | 49 | | } |
| | 50 | | } |