TripPollBllDto.cs
829 bytes
| 1 | using SplitApp.Shared.Kernel.Domain; |
|---|---|
| 2 | using SplitApp.Shared.Kernel.Localization; |
| 3 | |
| 4 | namespace SplitApp.WebApp.Application.DTO; |
| 5 | |
| 6 | public class TripPollBllDto |
| 7 | { |
| 8 | public Guid Id { get; set; } |
| 9 | public DateTime CreatedAt { get; set; } |
| 10 | public DateTime UpdatedAt { get; set; } |
| 11 | |
| 12 | public Guid TripId { get; set; } |
| 13 | public TripBllDto? Trip { get; set; } |
| 14 | public string? TripName => Trip?.Name; |
| 15 | |
| 16 | public Guid CreatedByUserId { get; set; } |
| 17 | public AppUserBllDto? CreatedByUser { get; set; } |
| 18 | public string? CreatedByUserFullName => CreatedByUser?.FullName; |
| 19 | |
| 20 | public string Question { get; set; } = default!; |
| 21 | public bool AllowMultipleVotes { get; set; } |
| 22 | public bool IsAnonymous { get; set; } |
| 23 | public DateTime? ClosedAt { get; set; } |
| 24 | |
| 25 | public ICollection<TripPollOptionBllDto>? Options { get; set; } |
| 26 | } |
| 27 | |