using Newtonsoft.Json;
namespace StardewModdingAPI.Web.Framework.Clients.GitHub
{
/// The license info for a GitHub project.
internal class GitLicense
{
/*********
** Accessors
*********/
/// The license display name.
[JsonProperty("name")]
public string Name { get; }
/// The SPDX ID for the license.
[JsonProperty("spdx_id")]
public string SpdxId { get; }
/// The URL for the license info.
[JsonProperty("url")]
public string Url { get; }
/*********
** Public methods
*********/
/// Construct an instance.
/// The license display name.
/// The SPDX ID for the license.
/// The URL for the license info.
public GitLicense(string name, string spdxId, string url)
{
this.Name = name;
this.SpdxId = spdxId;
this.Url = url;
}
}
}