| | 1 | | using System; |
| | 2 | | using System.Collections.Generic; |
| | 3 | | using System.Collections.ObjectModel; |
| | 4 | | using System.ComponentModel; |
| | 5 | | using System.Text; |
| | 6 | | using System.Linq; |
| | 7 | | using MUNityBase.Interfances; |
| | 8 | | using MUNity.Base; |
| | 9 | |
|
| | 10 | | namespace MUNity.Database.Models.LoS; |
| | 11 | |
|
| | 12 | | public class ListOfSpeakers : IListOfSpeakers |
| | 13 | | { |
| | 14 | |
|
| | 15 | | /// <summary> |
| | 16 | | /// The Id of the List of Speakers will be given a new GUID when the constructor is called. |
| | 17 | | /// </summary> |
| 0 | 18 | | public string ListOfSpeakersId { get; set; } |
| | 19 | |
|
| | 20 | | /// <summary> |
| | 21 | | /// A public Id for example a code that you can give out to others to be able to read the List of Speakers |
| | 22 | | /// to be able to read but not interact with it. Note that the MUNityBase does not have a logic for this |
| | 23 | | /// and it will be implemented in the API. |
| | 24 | | /// </summary> |
| 0 | 25 | | public string PublicId { get; set; } |
| | 26 | |
|
| | 27 | | /// <summary> |
| | 28 | | /// A Name of a list of Speakers. That can be displayed. The Name is not used to identify the list, to identitfy the |
| | 29 | | /// the ListOfSpeakersId. |
| | 30 | | /// </summary> |
| 0 | 31 | | public string Name { get; set; } |
| | 32 | |
|
| | 33 | |
|
| | 34 | | /// <summary> |
| | 35 | | /// The Current Status of the list, is someone talking, paused or is the List reset to default. |
| | 36 | | /// </summary> |
| 0 | 37 | | public ESpeakerListStatus Status { get; set; } |
| | 38 | |
|
| | 39 | | /// <summary> |
| | 40 | | /// The time that the Speakers are allowed to talk. |
| | 41 | | /// </summary> |
| 0 | 42 | | public TimeSpan SpeakerTime { get; set; } |
| | 43 | |
|
| | 44 | | /// <summary> |
| | 45 | | /// The time that someone asking a question is allowed to talk and also how long the Speaker is allowed to answer a |
| | 46 | | /// </summary> |
| 0 | 47 | | public TimeSpan QuestionTime { get; set; } |
| | 48 | |
|
| | 49 | | /// <summary> |
| | 50 | | /// The Remaining Time that a Speaker had when he/she had been paused. |
| | 51 | | /// </summary> |
| 0 | 52 | | public TimeSpan PausedSpeakerTime { get; set; } |
| | 53 | |
|
| | 54 | | /// <summary> |
| | 55 | | /// The Remaining Time that a speaker had when he/she had been paused. |
| | 56 | | /// </summary> |
| 0 | 57 | | public TimeSpan PausedQuestionTime { get; set; } |
| | 58 | |
|
| | 59 | | /// <summary> |
| | 60 | | /// List that holds all Speakers that are inside the Speakers or Questions List and also the Current Speaker/Questio |
| | 61 | | /// </summary> |
| 0 | 62 | | public ICollection<Speaker> AllSpeakers { get; set; } |
| | 63 | |
|
| | 64 | | /// <summary> |
| | 65 | | /// Is the List of Speakers closed. If this is true you should not add people to the Speakers. |
| | 66 | | /// This will not be catched when calling Speakers.Add()/AddSpeaker("",""). This is more for visual |
| | 67 | | /// feedback of a closed List. |
| | 68 | | /// </summary> |
| 0 | 69 | | public bool ListClosed { get; set; } |
| | 70 | |
|
| | 71 | | /// <summary> |
| | 72 | | /// Are people allowed to get on the List of questions. This is only for visual feedback, you can |
| | 73 | | /// technacally still add people to the list. |
| | 74 | | /// </summary> |
| 0 | 75 | | public bool QuestionsClosed { get; set; } |
| | 76 | |
|
| | 77 | | /// <summary> |
| | 78 | | /// The time when to speaker started talking. With the diff between the StartTime and the SpeakerTime the |
| | 79 | | /// RemainingSpeakerTime will be calculated. |
| | 80 | | /// </summary> |
| 0 | 81 | | public DateTime StartSpeakerTime { get; set; } |
| | 82 | |
|
| | 83 | | /// <summary> |
| | 84 | | /// The time when the question started beeing asked. WIth the diff between this and the QuestionTime the |
| | 85 | | /// RaminingQuestionTime will be calculated. |
| | 86 | | /// </summary> |
| 0 | 87 | | public DateTime StartQuestionTime { get; set; } |
| | 88 | |
|
| 0 | 89 | | public ISpeaker CurrentSpeaker => throw new NotImplementedException(); |
| | 90 | |
|
| 0 | 91 | | public TimeSpan RemainingSpeakerTime => throw new NotImplementedException(); |
| | 92 | |
|
| 0 | 93 | | public TimeSpan RemainingQuestionTime => throw new NotImplementedException(); |
| | 94 | |
|
| 0 | 95 | | public ISpeaker CurrentQuestion => throw new NotImplementedException(); |
| | 96 | |
|
| | 97 | | /// <summary> |
| | 98 | | /// Will create a new ListOfSpeakers and generate a new GUID for it, will also init the Speakers and Questions |
| | 99 | | /// as an empty collection and set the default SpeakerTime to 3 minutes and the QuestionTime to 30 seconds. |
| | 100 | | /// </summary> |
| 0 | 101 | | public ListOfSpeakers() |
| 0 | 102 | | { |
| 0 | 103 | | this.ListOfSpeakersId = Guid.NewGuid().ToString(); |
| 0 | 104 | | this.SpeakerTime = new TimeSpan(0, 3, 0); |
| 0 | 105 | | this.QuestionTime = new TimeSpan(0, 0, 30); |
| 0 | 106 | | this.PausedSpeakerTime = this.SpeakerTime; |
| 0 | 107 | | this.PausedQuestionTime = this.QuestionTime; |
| 0 | 108 | | AllSpeakers = new List<Speaker>(); |
| 0 | 109 | | } |
| | 110 | |
|
| | 111 | | public ISpeaker AddSpeaker(string name, string iso = "") |
| 0 | 112 | | { |
| 0 | 113 | | throw new NotImplementedException(); |
| | 114 | | } |
| | 115 | |
|
| | 116 | | public void RemoveSpeaker(string id) |
| 0 | 117 | | { |
| 0 | 118 | | throw new NotImplementedException(); |
| | 119 | | } |
| | 120 | |
|
| | 121 | | public ISpeaker AddQuestion(string name, string iso = "") |
| 0 | 122 | | { |
| 0 | 123 | | throw new NotImplementedException(); |
| | 124 | | } |
| | 125 | |
|
| | 126 | | public void RemoveQuestion(string id) |
| 0 | 127 | | { |
| 0 | 128 | | throw new NotImplementedException(); |
| | 129 | | } |
| | 130 | |
|
| | 131 | | public void AddSpeakerSeconds(double seconds) |
| 0 | 132 | | { |
| 0 | 133 | | throw new NotImplementedException(); |
| | 134 | | } |
| | 135 | |
|
| | 136 | | public void AddQuestionSeconds(double seconds) |
| 0 | 137 | | { |
| 0 | 138 | | throw new NotImplementedException(); |
| | 139 | | } |
| | 140 | |
|
| | 141 | | public ISpeaker NextSpeaker() |
| 0 | 142 | | { |
| 0 | 143 | | throw new NotImplementedException(); |
| | 144 | | } |
| | 145 | |
|
| | 146 | | public ISpeaker NextQuestion() |
| 0 | 147 | | { |
| 0 | 148 | | throw new NotImplementedException(); |
| | 149 | | } |
| | 150 | |
|
| | 151 | | public void Pause() |
| 0 | 152 | | { |
| 0 | 153 | | throw new NotImplementedException(); |
| | 154 | | } |
| | 155 | |
|
| | 156 | | public void ResumeQuestion() |
| 0 | 157 | | { |
| 0 | 158 | | throw new NotImplementedException(); |
| | 159 | | } |
| | 160 | |
|
| | 161 | | public void StartAnswer() |
| 0 | 162 | | { |
| 0 | 163 | | throw new NotImplementedException(); |
| | 164 | | } |
| | 165 | |
|
| | 166 | | public void ResumeSpeaker() |
| 0 | 167 | | { |
| 0 | 168 | | throw new NotImplementedException(); |
| | 169 | | } |
| | 170 | |
|
| | 171 | | } |