| | | 1 | | using MUNity.Base; |
| | | 2 | | using MUNityBase.Interfances; |
| | | 3 | | using System; |
| | | 4 | | using System.Collections.Generic; |
| | | 5 | | using System.ComponentModel; |
| | | 6 | | using System.Runtime.CompilerServices; |
| | | 7 | | using System.Text; |
| | | 8 | | using System.Text.Json.Serialization; |
| | | 9 | | |
| | | 10 | | namespace MUNity.Database.Models.LoS; |
| | | 11 | | |
| | | 12 | | /// <summary> |
| | | 13 | | /// A Speaker is someone who can be added to the Speakers or Questions inside a List of Speakers. |
| | | 14 | | /// You can give any time of name, so you could set it to a person a Country or DelegationWishes. |
| | | 15 | | /// </summary> |
| | | 16 | | public class Speaker : ISpeaker |
| | | 17 | | { |
| | | 18 | | |
| | | 19 | | /// <summary> |
| | | 20 | | /// The Id of the Speaker. This can and should change every time |
| | | 21 | | /// even if the same person is in one of the lists twice to be able to identify it exact. |
| | | 22 | | /// The Id has nothing to do with the Paricipant, DelegationWishes, Country etc. |
| | | 23 | | /// </summary> |
| | 0 | 24 | | public string Id { get; set; } |
| | | 25 | | |
| | | 26 | | /// <summary> |
| | | 27 | | /// The Name that will be displayed. |
| | | 28 | | /// </summary> |
| | 0 | 29 | | public string Name { get; set; } |
| | | 30 | | |
| | | 31 | | /// <summary> |
| | | 32 | | /// An Iso code because mostly Counties will be used in this list. You could use the |
| | | 33 | | /// Iso to identify an icon. |
| | | 34 | | /// </summary> |
| | 0 | 35 | | public string Iso { get; set; } |
| | | 36 | | |
| | | 37 | | /// <summary> |
| | | 38 | | /// The Mode if the Speaker is on the List of Speakers or asking a question |
| | | 39 | | /// </summary> |
| | 0 | 40 | | public SpeakerModes Mode { get; set; } |
| | | 41 | | |
| | | 42 | | /// <summary> |
| | | 43 | | /// The Index of the Speaker. |
| | | 44 | | /// </summary> |
| | 0 | 45 | | public int OrdnerIndex { get; set; } |
| | | 46 | | |
| | | 47 | | /// <summary> |
| | | 48 | | /// The Parent SpeakerlistId |
| | | 49 | | /// </summary> |
| | 0 | 50 | | public ListOfSpeakers ListOfSpeakers { get; set; } |
| | | 51 | | |
| | | 52 | | public int CompareTo(ISpeaker other) |
| | 0 | 53 | | { |
| | 0 | 54 | | return this.GetHashCode() - other.GetHashCode(); |
| | 0 | 55 | | } |
| | | 56 | | } |