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