|
| 1 | +using System; |
| 2 | +using System.Collections.ObjectModel; |
| 3 | +using Newtonsoft.Json; |
| 4 | +using VndbSharp.Models.Common; |
| 5 | + |
| 6 | +namespace VndbSharp.Models.Release |
| 7 | +{ |
| 8 | + public class Release |
| 9 | + { |
| 10 | + public UInt32 Id { get; private set; } |
| 11 | + [JsonProperty("title")] |
| 12 | + public String Name { get; private set; } |
| 13 | + [JsonProperty("original")] |
| 14 | + public String OriginalName { get; private set; } |
| 15 | + public SimpleDate Released { get; private set; } |
| 16 | + public ReleaseType Type { get; private set; } |
| 17 | + [JsonProperty("patch")] |
| 18 | + public Boolean IsPatch { get; private set; } |
| 19 | + [JsonProperty("freeware")] |
| 20 | + public Boolean IsFreeware { get; private set; } |
| 21 | + [JsonProperty("doujin")] |
| 22 | + public Boolean IsDoujin { get; private set; } |
| 23 | + public ReadOnlyCollection<String> Languages { get; private set; } |
| 24 | + public String Website { get; private set; } |
| 25 | + public String Notes { get; private set; } // Possibly rename to description |
| 26 | + [JsonProperty("minage")] |
| 27 | + public UInt32? MinimumAge { get; private set; } |
| 28 | + /// <summary> |
| 29 | + /// JAN/UPC/EAN code. |
| 30 | + /// </summary> |
| 31 | + public String Gtin { get; private set; } |
| 32 | + public String Catalog { get; private set; } |
| 33 | + public ReadOnlyCollection<String> Platforms { get; private set; } |
| 34 | + public ReadOnlyCollection<Media> Media { get; private set; } |
| 35 | + [JsonProperty("vn")] |
| 36 | + public ReadOnlyCollection<VisualNovelMetadata> VisualNovels { get; private set; } |
| 37 | + public ReadOnlyCollection<ProducerRelease> Producers { get; private set; } |
| 38 | + } |
| 39 | +} |
0 commit comments