profileShare

rasmusjy / splitapp-backend-modular-monolith

Read-only snapshot

No repository description.

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