Skip to content

Instantly share code, notes, and snippets.

@TheAnarchoX
Created September 9, 2022 07:52
Show Gist options
  • Save TheAnarchoX/0a0874cfefc277cc14635a565fedc8b1 to your computer and use it in GitHub Desktop.
Save TheAnarchoX/0a0874cfefc277cc14635a565fedc8b1 to your computer and use it in GitHub Desktop.
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