TripBllDto.cs
1,568 bytes
| 1 | using SplitApp.Modules.Trips.Domain.Entities; |
|---|---|
| 2 | using SplitApp.Modules.Trips.Domain.Enums; |
| 3 | using SplitApp.Modules.Expenses.Domain.Entities; |
| 4 | using SplitApp.Modules.Expenses.Domain.Enums; |
| 5 | using SplitApp.Shared.Kernel.Domain; |
| 6 | using SplitApp.Shared.Kernel.Localization; |
| 7 | |
| 8 | namespace SplitApp.WebApp.Application.DTO; |
| 9 | |
| 10 | public class TripBllDto |
| 11 | { |
| 12 | public Guid Id { get; set; } |
| 13 | public DateTime CreatedAt { get; set; } |
| 14 | public DateTime UpdatedAt { get; set; } |
| 15 | |
| 16 | public string Name { get; set; } = default!; |
| 17 | public string? Description { get; set; } |
| 18 | public string? Destination { get; set; } |
| 19 | public DateTime? StartDate { get; set; } |
| 20 | public DateTime? EndDate { get; set; } |
| 21 | public ETripStatus Status { get; set; } = ETripStatus.Active; |
| 22 | |
| 23 | public Guid DefaultCurrencyId { get; set; } |
| 24 | public CurrencyBllDto? DefaultCurrency { get; set; } |
| 25 | |
| 26 | public Guid CreatedById { get; set; } |
| 27 | public AppUserBllDto? CreatedBy { get; set; } |
| 28 | public string? CreatedByFullName => CreatedBy?.FullName; |
| 29 | public string? CreatedByEmail => CreatedBy?.Email; |
| 30 | |
| 31 | public ICollection<TripParticipantBllDto>? Participants { get; set; } |
| 32 | public ICollection<ExpenseBllDto>? Expenses { get; set; } |
| 33 | public ICollection<BudgetCategoryBllDto>? BudgetCategories { get; set; } |
| 34 | public ICollection<TripWishlistItemBllDto>? WishlistItems { get; set; } |
| 35 | public ICollection<TripPollBllDto>? Polls { get; set; } |
| 36 | public ICollection<TripInvitationBllDto>? Invitations { get; set; } |
| 37 | public ICollection<SettlementPlanBllDto>? SettlementPlans { get; set; } |
| 38 | } |
| 39 | |