| | | 1 | | using System.Text.Json.Serialization; |
| | | 2 | | |
| | | 3 | | namespace GistBackend.Types; |
| | | 4 | | |
| | | 5 | | |
| | | 6 | | [method: JsonConstructor] |
| | | 7 | | public record RecapAIResponse( |
| | | 8 | | IEnumerable<RecapSection> RecapSectionsEnglish, |
| | | 9 | | IEnumerable<RecapSection> RecapSectionsGerman |
| | | 10 | | ); |
| | | 11 | | |
| | | 12 | | [method: JsonConstructor] |
| | | 13 | | public record RecapSection(string Heading, string Recap, IEnumerable<int> Related); |
| | | 14 | | |
| | | 15 | | public record SerializedRecap(DateTime Created, string RecapEn, string RecapDe, int? Id = null); |
| | | 16 | | |
| | | 17 | | public record RelatedGistInfo(int Id, string Title); |
| | | 18 | | |
| | | 19 | | public record DeserializedRecapSection(string Heading, string Recap, IEnumerable<RelatedGistInfo> Related); |
| | | 20 | | |
| | 0 | 21 | | public record DeserializedRecap(DateTime Created, IEnumerable<DeserializedRecapSection> RecapSections, int Id); |