Created
September 9, 2022 07:52
-
-
Save TheAnarchoX/0a0874cfefc277cc14635a565fedc8b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Newtonsoft.Json; | |
namespace PreprModel; | |
public class PreprAPIModel | |
{ | |
public PreprModel Model { get; set; } | |
public string[] Locales { get; set; } = { "nl-NL" }; | |
public PreprItemLocale[] Items { get; set; } | |
} | |
public class PreprModel | |
{ | |
public string Id { get; set; } = "bcea4625-ba49-4e1a-8c39-3bd936ed35bf"; | |
} | |
public class PreprItemLocale | |
{ | |
[JsonProperty("nl-NL")] | |
public PreprItem[] NL { get; set; } | |
} | |
public class PreprItem | |
{ | |
public string Title { get; set; } | |
public string Subtitle { get; set; } | |
public string Summary { get; set; } | |
[JsonProperty("header_image")] | |
public string? Image { get; set; } | |
public string Elements { get; set; } | |
public PreprTag[] Categorie { get; set; } | |
} | |
public class PreprTag | |
{ | |
public string Body { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment