profileShare

rasmusjy / splitapp-backend-microservices

Read-only snapshot

No repository description.

main default branch 501 files Expires Sep 13, 2026, 9:06 AM
TripDto.cs 1,779 bytes
1 namespace SplitApp.Modules.Trips.Api.Dto.v1;
2
3 public class TripDto
4 {
5 public Guid Id { get; set; }
6 public string Name { get; set; } = default!;
7 public string? Description { get; set; }
8 public string? Destination { get; set; }
9 public DateTime? StartDate { get; set; }
10 public DateTime? EndDate { get; set; }
11 public string Status { get; set; } = default!;
12 public Guid DefaultCurrencyId { get; set; }
13 public string? DefaultCurrencyCode { get; set; }
14 public string? DefaultCurrencySymbol { get; set; }
15 public Guid CreatedById { get; set; }
16 public int ParticipantCount { get; set; }
17 public List<TripParticipantDto>? Participants { get; set; }
18 }
19
20 public class TripParticipantDto
21 {
22 public Guid Id { get; set; }
23 public Guid TripId { get; set; }
24 public Guid UserId { get; set; }
25 public string? UserName { get; set; }
26 public string? UserEmail { get; set; }
27 public string Role { get; set; } = default!;
28 public string? Nickname { get; set; }
29 public DateTime JoinedAt { get; set; }
30 public bool IsActive { get; set; }
31 }
32
33 public class TripCreateDto
34 {
35 public string Name { get; set; } = default!;
36 public string? Description { get; set; }
37 public string? Destination { get; set; }
38 public DateTime? StartDate { get; set; }
39 public DateTime? EndDate { get; set; }
40 public Guid DefaultCurrencyId { get; set; }
41 }
42
43 public class TripUpdateDto
44 {
45 public Guid Id { get; set; }
46 public string Name { get; set; } = default!;
47 public string? Description { get; set; }
48 public string? Destination { get; set; }
49 public DateTime? StartDate { get; set; }
50 public DateTime? EndDate { get; set; }
51 public string? Status { get; set; }
52 public Guid DefaultCurrencyId { get; set; }
53 }
54