using Newtonsoft.Json; namespace StardewModdingAPI.Web.Framework.Clients.GitHub { /// Basic metadata about a GitHub project. internal class GitRepo { /********* ** Accessors *********/ /// The full repository name, including the owner. [JsonProperty("full_name")] public string FullName { get; } /// The URL to the repository web page, if any. [JsonProperty("html_url")] public string? WebUrl { get; } /// The code license, if any. [JsonProperty("license")] public GitLicense? License { get; } /********* ** Public methods *********/ /// Construct an instance. /// The full repository name, including the owner. /// The URL to the repository web page, if any. /// The code license, if any. public GitRepo(string fullName, string? webUrl, GitLicense? license) { this.FullName = fullName; this.WebUrl = webUrl; this.License = license; } } }