| | | 1 | | using MUNity.Database.Models.Conference.Roles; |
| | | 2 | | using MUNity.Database.Models.User; |
| | | 3 | | using MUNityCore.Models.User; |
| | | 4 | | using System; |
| | | 5 | | using System.Collections.Generic; |
| | | 6 | | using System.ComponentModel.DataAnnotations; |
| | | 7 | | using System.ComponentModel.DataAnnotations.Schema; |
| | | 8 | | using System.Linq; |
| | | 9 | | using System.Runtime.Serialization; |
| | | 10 | | using System.Text.Json.Serialization; |
| | | 11 | | using System.Threading.Tasks; |
| | | 12 | | |
| | | 13 | | namespace MUNity.Database.Models.Conference; |
| | | 14 | | |
| | | 15 | | /// <summary> |
| | | 16 | | /// When users want to apply as a group it is possible to create a collective Application |
| | | 17 | | /// for the same AbstractConferenceRole. If you want to create custom Applications for multiple Roles |
| | | 18 | | /// but every and ever user of the group should have a custom Application use GroupedRoleApplication. |
| | | 19 | | /// </summary> |
| | | 20 | | public class GroupApplication |
| | | 21 | | { |
| | | 22 | | |
| | 0 | 23 | | public int GroupApplicationId { get; set; } |
| | | 24 | | |
| | | 25 | | |
| | 0 | 26 | | public ICollection<MunityUser> Users { get; set; } |
| | | 27 | | |
| | 0 | 28 | | public AbstractConferenceRole Role { get; set; } |
| | | 29 | | |
| | 0 | 30 | | public Delegation Delegation { get; set; } |
| | | 31 | | |
| | | 32 | | [MaxLength(150)] |
| | | 33 | | [Required] |
| | 0 | 34 | | public string Title { get; set; } |
| | | 35 | | |
| | 0 | 36 | | public string Content { get; set; } |
| | | 37 | | |
| | 0 | 38 | | public DateTime ApplicationDate { get; set; } |
| | | 39 | | |
| | | 40 | | |
| | 0 | 41 | | public GroupApplication() |
| | 0 | 42 | | { |
| | 0 | 43 | | Users = new List<MunityUser>(); |
| | 0 | 44 | | } |
| | | 45 | | } |