| | 1 | | namespace Syki.Shared; |
| | 2 | |
|
| | 3 | | public class StudentClassActivityOut |
| | 4 | | { |
| 18 | 5 | | public Guid Id { get; set; } |
| 18 | 6 | | public Guid ClassId { get; set; } |
| 18 | 7 | | public ClassNoteType Note { get; set; } |
| 18 | 8 | | public string Title { get; set; } |
| 18 | 9 | | public string Description { get; set; } |
| 18 | 10 | | public ClassActivityType Type { get; set; } |
| 18 | 11 | | public ClassActivityStatus Status { get; set; } |
| 18 | 12 | | public DateTime CreatedAt { get; set; } |
| 18 | 13 | | public DateOnly DueDate { get; set; } |
| 18 | 14 | | public Hour DueHour { get; set; } |
| 18 | 15 | | public int Weight { get; set; } |
| 18 | 16 | | public decimal Value { get; set; } |
| 18 | 17 | | public decimal PonderedValue { get; set; } |
| 18 | 18 | | public ClassActivityWorkStatus WorkStatus { get; set; } |
| | 19 | |
|
| | 20 | | public string GetWeight() |
| | 21 | | { |
| 0 | 22 | | return $"{Weight}%"; |
| | 23 | | } |
| | 24 | |
|
| | 25 | | public string GetNote() |
| | 26 | | { |
| 0 | 27 | | return $"{PonderedValue.Format()} | {Note}"; |
| | 28 | | } |
| | 29 | |
|
| | 30 | | public string GetDueDate() |
| | 31 | | { |
| 0 | 32 | | return $"{DueDate} {DueHour.GetDescription()}"; |
| | 33 | | } |
| | 34 | |
|
| | 35 | | public string PonderedValueMessage() |
| | 36 | | { |
| 0 | 37 | | return $"Essa atividade corresponde a {Weight}% da nota {Note.ToString()}"; |
| | 38 | | } |
| | 39 | | } |