profileShare

rasmusjy / splitapp-backend-modular-monolith

Read-only snapshot

No repository description.

main default branch 418 files Expires Sep 13, 2026, 9:06 AM
PollDto.cs 1,017 bytes
1 namespace SplitApp.Modules.Trips.Api.Dto.v1;
2
3 public class PollDto
4 {
5 public Guid Id { get; set; }
6 public Guid TripId { get; set; }
7 public Guid CreatedByUserId { get; set; }
8 public string Question { get; set; } = default!;
9 public bool AllowMultipleVotes { get; set; }
10 public bool IsAnonymous { get; set; }
11 public DateTime? ClosedAt { get; set; }
12 public List<PollOptionDto>? Options { get; set; }
13 }
14
15 public class PollOptionDto
16 {
17 public Guid Id { get; set; }
18 public string Text { get; set; } = default!;
19 public int VoteCount { get; set; }
20 public bool VotedByCurrentUser { get; set; }
21 public int DisplayOrder { get; set; }
22 }
23
24 public class PollCreateDto
25 {
26 public Guid TripId { get; set; }
27 public string Question { get; set; } = default!;
28 public bool AllowMultipleVotes { get; set; }
29 public bool IsAnonymous { get; set; }
30 public List<string> Options { get; set; } = default!;
31 }
32
33 public class PollVoteRequest
34 {
35 public Guid OptionId { get; set; }
36 }
37