| | | 1 | | namespace Estud.Back.Features.Notifications.GetInstitutionNotifications; |
| | | 2 | | |
| | | 3 | | public class GetInstitutionNotificationsOut : IApiDto<GetInstitutionNotificationsOut> |
| | | 4 | | { |
| | | 5 | | public int Total { get; set; } |
| | | 6 | | public int Page { get; set; } |
| | | 7 | | public int PageSize { get; set; } |
| | | 8 | | public List<GetInstitutionNotificationsItemOut> Items { get; set; } = []; |
| | | 9 | | |
| | | 10 | | public static IEnumerable<(string, GetInstitutionNotificationsOut)> GetExamples() => |
| | | 11 | | [ |
| | | 12 | | ("Exemplo", new GetInstitutionNotificationsOut() |
| | | 13 | | { |
| | | 14 | | Total = 1, |
| | | 15 | | Page = 1, |
| | | 16 | | PageSize = 20, |
| | | 17 | | Items = |
| | | 18 | | [ |
| | | 19 | | new GetInstitutionNotificationsItemOut |
| | | 20 | | { |
| | | 21 | | Id = 1, |
| | | 22 | | Title = "Recesso acadêmico", |
| | | 23 | | Description = "Não haverá aulas na próxima semana.", |
| | | 24 | | CreatedAt = new DateTime(2026, 1, 1, 12, 0, 0), |
| | | 25 | | Recipients = 100, |
| | | 26 | | Viewed = 75, |
| | | 27 | | ViewRate = 75M, |
| | | 28 | | }, |
| | | 29 | | ], |
| | | 30 | | }), |
| | | 31 | | ]; |
| | | 32 | | } |
| | | 33 | | |
| | | 34 | | public class GetInstitutionNotificationsItemOut |
| | | 35 | | { |
| | 0 | 36 | | public int Id { get; set; } |
| | 0 | 37 | | public string Title { get; set; } |
| | 0 | 38 | | public string Description { get; set; } |
| | 0 | 39 | | public DateTime CreatedAt { get; set; } |
| | 0 | 40 | | public int Recipients { get; set; } |
| | 0 | 41 | | public int Viewed { get; set; } |
| | 0 | 42 | | public decimal ViewRate { get; set; } |
| | | 43 | | } |