| | | 1 | | using KT.Modules.Report.Core.Domain; |
| | | 2 | | using System; |
| | | 3 | | using System.Collections.Generic; |
| | | 4 | | using System.Linq; |
| | | 5 | | using System.Text; |
| | | 6 | | using System.Threading.Tasks; |
| | | 7 | | |
| | | 8 | | namespace KT.Modules.Report.Presentation.Dto |
| | | 9 | | { |
| | | 10 | | public class ResponseGetReportsDto |
| | | 11 | | { |
| | 8 | 12 | | public List<ReportDto> reports { get; set; } |
| | | 13 | | |
| | 4 | 14 | | public ResponseGetReportsDto () |
| | 4 | 15 | | { |
| | 4 | 16 | | this.reports = []; |
| | 4 | 17 | | } |
| | | 18 | | } |
| | | 19 | | |
| | | 20 | | public class LocationDto |
| | | 21 | | { |
| | | 22 | | public required float Latitude { get; set; } |
| | | 23 | | public required float Longitude { get; set; } |
| | | 24 | | public required Locality Locality { get; set; } |
| | | 25 | | public required string Neighbourhood { get; set; } |
| | | 26 | | } |
| | | 27 | | |
| | | 28 | | public class ReportDto |
| | | 29 | | { |
| | | 30 | | public required string Id { get; set; } |
| | | 31 | | public required LocationDto Location { get; set; } |
| | | 32 | | public required ReportType Type { get; set; } |
| | | 33 | | public required string Description { get; set; } |
| | | 34 | | public required string Title { get; set; } |
| | | 35 | | public required DateTime CreatedAt { get; set; } |
| | | 36 | | public DateTime UpdatedAt { get; set; } |
| | | 37 | | } |
| | | 38 | | } |