| | 1 | | using System; |
| | 2 | | using System.Collections.Generic; |
| | 3 | | using System.Text; |
| | 4 | |
|
| | 5 | | namespace MUNity.Schema.Simulation |
| | 6 | | { |
| | 7 | | /// <summary> |
| | 8 | | /// Schema for created votes. |
| | 9 | | /// This SChema can be sent to everyone and the server or client |
| | 10 | | /// implementation needs to handle the rights to vote. |
| | 11 | | /// |
| | 12 | | /// This way its possible for everyone to see that a voting is ongoing |
| | 13 | | /// and who as already voted and who has voted for what. |
| | 14 | | /// |
| | 15 | | /// There is no secret voting in this implementation! |
| | 16 | | /// </summary> |
| | 17 | | public class CreatedVoteModel |
| | 18 | | { |
| | 19 | | /// <summary> |
| | 20 | | /// The Id of the new created Voting. |
| | 21 | | /// </summary> |
| 0 | 22 | | public string CreatedVoteModelId { get; set; } |
| | 23 | |
|
| | 24 | | /// <summary> |
| | 25 | | /// The DIsplay Text of the voting. |
| | 26 | | /// </summary> |
| 0 | 27 | | public string Text { get; set; } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Is voting abstent allowed. |
| | 31 | | /// </summary> |
| 0 | 32 | | public bool AllowAbstention { get; set; } |
| | 33 | |
|
| | 34 | | /// <summary> |
| | 35 | | /// List of the userIds that are allowed to vote. |
| | 36 | | /// </summary> |
| 0 | 37 | | public List<int> AllowedUsers { get; set; } |
| | 38 | | } |
| | 39 | | } |