| | 1 | | using System; |
| | 2 | | using System.Collections.Generic; |
| | 3 | | using System.ComponentModel.DataAnnotations.Schema; |
| | 4 | | using System.Linq; |
| | 5 | | using System.Runtime.Serialization; |
| | 6 | | using System.Text.Json.Serialization; |
| | 7 | | using System.Threading.Tasks; |
| | 8 | |
|
| | 9 | | namespace MUNity.Database.Models.Conference.Roles; |
| | 10 | |
|
| | 11 | | /// <summary> |
| | 12 | | /// A team role is any role for organization purposes. Note that anyone that is assigned |
| | 13 | | /// this type of role will have access to the inside area of the conference. |
| | 14 | | /// </summary> |
| | 15 | | public class ConferenceTeamRole : AbstractConferenceRole |
| | 16 | | { |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// A parent role that is above this role. |
| | 20 | | /// </summary> |
| 14 | 21 | | public ConferenceTeamRole ParentTeamRole { get; set; } |
| | 22 | |
|
| | 23 | | /// <summary> |
| | 24 | | /// The Level of this row. This is not assigned from the amount of roles above this roles. |
| | 25 | | /// You can create different custom PowerLevels for team roles to allow different types of access |
| | 26 | | /// to the role. With 1 as the highest rank, 2 as the next powerful rank and so on. |
| | 27 | | /// </summary> |
| 17 | 28 | | public int TeamRoleLevel { get; set; } |
| | 29 | |
|
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Every role is a part of a group, for example could there be different roles for |
| | 33 | | /// substantive planing, framework planing, team coordination, equipment coordinator etc. |
| | 34 | | /// and all of this role could share a group of: "head of organization". |
| | 35 | | /// </summary> |
| 17 | 36 | | public TeamRoleGroup TeamRoleGroup { get; set; } |
| | 37 | |
|
| 17 | 38 | | public ConferenceTeamRole() |
| 17 | 39 | | { |
| 17 | 40 | | this.AllowMultipleParticipations = true; |
| 17 | 41 | | } |
| | 42 | | } |