mirror of
https://github.com/SabreTools/SabreTools.Models.git
synced 2026-09-23 23:25:35 +00:00
* XboxOne catalog.js model * Split Catalog object, bump version * Minor fixes * Custom JsonConverter for launchPackage * Make launchPackage an abstract object * Don't ignore packages * Fix field types for Catalog/Package
27 lines
840 B
C#
27 lines
840 B
C#
using Newtonsoft.Json;
|
|
|
|
namespace SabreTools.Models.Xbox
|
|
{
|
|
/// <summary>
|
|
/// Package rating for each rating system, in catalog.js
|
|
/// </summary>
|
|
public class Rating
|
|
{
|
|
/// <summary>
|
|
/// "system":
|
|
/// Name of rating system
|
|
/// Known values: COB-AU, PEGI, PCBP, USK, China, CERO, ESRB, GCAM, CSRR,
|
|
/// COB, DJCTQ, GRB, OFLC, OFLC-NZ, PEGIPortugal, FPB, Microsoft
|
|
/// </summary>
|
|
[JsonProperty("system", NullValueHandling = NullValueHandling.Ignore)]
|
|
public string? System { get; set; }
|
|
|
|
/// <summary>
|
|
/// "value":
|
|
/// String representing rating value, depends on rating system
|
|
/// </summary>
|
|
[JsonProperty("value", NullValueHandling = NullValueHandling.Ignore)]
|
|
public string? Value { get; set; }
|
|
}
|
|
}
|