using Newtonsoft.Json; using StardewModdingAPI.Toolkit.Serialization.Converters; namespace StardewModdingAPI.Toolkit.Framework.Clients.WebApi { /// Metadata about a version. public class ModEntryVersionModel { /********* ** Accessors *********/ /// The version number. [JsonConverter(typeof(NonStandardSemanticVersionConverter))] public ISemanticVersion Version { get; set; } /// The mod page URL. public string Url { get; set; } /********* ** Public methods *********/ /// Construct an instance. public ModEntryVersionModel() { } /// Construct an instance. /// The version number. /// The mod page URL. public ModEntryVersionModel(ISemanticVersion version, string url) { this.Version = version; this.Url = url; } } }