change results to use list interfaces

This commit is contained in:
femsci 2024-02-22 15:21:15 +01:00
parent a52665dd08
commit 563b4e0441
Signed by: femsci
GPG key ID: 21AC2CC03E5BBCD6
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@ public record OffenderInformation
public int AnnotationCount { get; set; }
[JsonPropertyName("persones")]
public ICollection<OffenderPersona> Personas { get; set; } = [];
public IList<OffenderPersona> Personas { get; set; } = [];
}
public record OffenderPersona

View file

@ -5,5 +5,5 @@ public record SearchResponse
public int Total { get; set; }
public bool HasError { get; set; }
public ICollection<OffenderInformation> Data { get; set; } = new List<OffenderInformation>();
public IList<OffenderInformation> Data { get; set; } = new List<OffenderInformation>();
}