| | 1 | | using MUNity.Base; |
| | 2 | | using System; |
| | 3 | | using System.Collections.Generic; |
| | 4 | | using System.Linq; |
| | 5 | | using System.Security.Cryptography.X509Certificates; |
| | 6 | | using System.Text.Json.Serialization; |
| | 7 | | using System.Threading.Tasks; |
| | 8 | |
|
| | 9 | | namespace MUNity.Database.Models.Simulation; |
| | 10 | |
|
| | 11 | | public class Simulation |
| | 12 | | { |
| | 13 | |
|
| 0 | 14 | | public int SimulationId { get; set; } |
| | 15 | |
|
| 0 | 16 | | public string Name { get; set; } |
| | 17 | |
|
| 0 | 18 | | public GamePhases Phase { get; set; } |
| | 19 | |
|
| 0 | 20 | | public LobbyModes LobbyMode { get; set; } |
| | 21 | |
|
| 0 | 22 | | public DateTime? LastStatusChange { get; set; } |
| | 23 | |
|
| | 24 | | /// <summary> |
| | 25 | | /// The password is used for administration of the Simulation. |
| | 26 | | /// </summary> |
| 0 | 27 | | public string Password { get; set; } |
| | 28 | |
|
| 0 | 29 | | public ICollection<SimulationRole> Roles { get; set; } |
| | 30 | |
|
| 0 | 31 | | public ICollection<SimulationUser> Users { get; set; } |
| | 32 | |
|
| | 33 | | // Chat vorerst nicht speichern. |
| | 34 | | //public List<AllChatMessage> AllChat { get; set; } |
| | 35 | |
|
| 0 | 36 | | public ICollection<SimulationStatus> Statuses { get; set; } |
| | 37 | |
|
| 0 | 38 | | public ICollection<AgendaItem> AgendaItems { get; set; } |
| | 39 | |
|
| 0 | 40 | | public ICollection<PetitionTypeSimulation> PetitionTypes { get; set; } |
| | 41 | |
|
| | 42 | | /// <summary> |
| | 43 | | /// Die Redner in diesem Gremium. |
| | 44 | | /// </summary> |
| 0 | 45 | | public MUNity.Database.Models.LoS.ListOfSpeakers ListOfSpeakers { get; set; } |
| | 46 | |
|
| 0 | 47 | | public string CurrentResolutionId { get; set; } |
| | 48 | |
|
| 0 | 49 | | public ICollection<Resolution.ResolutionAuth> Resolutions { get; set; } |
| | 50 | |
|
| 0 | 51 | | public ICollection<SimulationPresents> PresentChecks { get; set; } |
| | 52 | |
|
| | 53 | |
|
| 0 | 54 | | public Simulation() |
| 0 | 55 | | { |
| | 56 | | //Users = new List<SimulationUser>(); |
| | 57 | | //Roles = new List<SimulationRole>(); |
| | 58 | | //Statuses = new List<SimulationStatus>(); |
| | 59 | | // Legacy Code: |
| | 60 | | //Requests = new List<SimSimRequestModel>(); |
| 0 | 61 | | } |
| | 62 | | } |