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; } /// The mod page URL. public string Url { get; } /********* ** Public methods *********/ /// Construct an instance. /// The version number. /// The mod page URL. public ModEntryVersionModel(ISemanticVersion version, string url) { this.Version = version; this.Url = url; } } }