| | 1 | | using System; |
| | 2 | | using System.Collections.Generic; |
| | 3 | | using System.ComponentModel.DataAnnotations; |
| | 4 | | using System.Text; |
| | 5 | |
|
| | 6 | | namespace MUNity.Schema.Simulation |
| | 7 | | { |
| | 8 | | /// <summary> |
| | 9 | | /// Body to create a new voting. |
| | 10 | | /// </summary> |
| | 11 | | public class CreateSimulationVoting : SimulationRequest |
| | 12 | | { |
| | 13 | | /// <summary> |
| | 14 | | /// The display Text of the voting. |
| | 15 | | /// </summary> |
| | 16 | | [Required(ErrorMessage = "Ein Anzeigetext wird benötigt.")] |
| | 17 | | [MaxLength(200)] |
| 0 | 18 | | public string Text { get; set; } |
| | 19 | |
|
| | 20 | | /// <summary> |
| | 21 | | /// Is Anstention an allowed option to vote. |
| | 22 | | /// </summary> |
| 0 | 23 | | public bool AllowAbstention { get; set; } |
| | 24 | |
|
| | 25 | | /// <summary> |
| | 26 | | /// The Mode of the voting. Who is allowed to vote. |
| | 27 | | /// </summary> |
| 0 | 28 | | public EVotingMode Mode { get; set; } = EVotingMode.JustDelegates; |
| | 29 | |
|
| | 30 | | /// <summary> |
| | 31 | | /// The time when the voting should be done. Set this to null if you want the voting to be |
| | 32 | | /// stoped manual. |
| | 33 | | /// </summary> |
| 0 | 34 | | public DateTime? CloseTime { get; set; } |
| | 35 | | } |
| | 36 | | } |