| | 1 | | using System; |
| | 2 | | using System.Collections.Generic; |
| | 3 | | using System.Linq; |
| | 4 | | using System.Text; |
| | 5 | | using System.Threading.Tasks; |
| | 6 | | using MUNity.Database.Models.Conference; |
| | 7 | | using MUNity.Database.Models.Conference.Roles; |
| | 8 | |
|
| | 9 | | namespace MUNity.Database.Models.Conference; |
| | 10 | |
|
| | 11 | | /// <summary> |
| | 12 | | /// Cost Rules can be used to define certain rules on pricing a conference, participating in a specific role |
| | 13 | | /// or committee differently. Note that the general cost will be the Conference.GeneralParticipationCost. |
| | 14 | | /// You can either use a CostRule to change the cost with the Costs-Property or use the CutPercentage/AddPercentage |
| | 15 | | /// to calculate a new price. |
| | 16 | | /// |
| | 17 | | /// You can also add some logic like letting different ages be handled differently. |
| | 18 | | /// </summary> |
| | 19 | | public class ConferenceParticipationCostRule |
| | 20 | | { |
| 0 | 21 | | public int ConferenceParticipationCostRuleId { get; set; } |
| | 22 | |
|
| 1 | 23 | | public Models.Conference.Conference Conference { get; set; } |
| | 24 | |
|
| 1 | 25 | | public Committee Committee { get; set; } |
| | 26 | |
|
| 1 | 27 | | public Delegation Delegation { get; set; } |
| | 28 | |
|
| 1 | 29 | | public AbstractConferenceRole Role { get; set; } |
| | 30 | |
|
| 1 | 31 | | public string CostRuleTitle { get; set; } |
| | 32 | |
|
| 1 | 33 | | public byte? UserMinAge { get; set; } |
| | 34 | |
|
| 1 | 35 | | public byte? UserMaxAge { get; set; } |
| | 36 | |
|
| 1 | 37 | | public decimal? Costs { get; set; } |
| | 38 | |
|
| 1 | 39 | | public double? CutPercentage { get; set; } |
| | 40 | |
|
| 1 | 41 | | public double? AddPercentage { get; set; } |
| | 42 | | } |