blob: 24d6c3c585caaa97965c6601f47267bdb99320a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
using Newtonsoft.Json;
namespace StardewModdingAPI.Web.Framework.Clients.GitHub
{
/// <summary>The license info for a GitHub project.</summary>
internal class GitLicense
{
/*********
** Accessors
*********/
/// <summary>The license display name.</summary>
[JsonProperty("name")]
public string Name { get; }
/// <summary>The SPDX ID for the license.</summary>
[JsonProperty("spdx_id")]
public string SpdxId { get; }
/// <summary>The URL for the license info.</summary>
[JsonProperty("url")]
public string Url { get; }
/*********
** Public methods
*********/
/// <summary>Construct an instance.</summary>
/// <param name="name">The license display name.</param>
/// <param name="spdxId">The SPDX ID for the license.</param>
/// <param name="url">The URL for the license info.</param>
public GitLicense(string name, string spdxId, string url)
{
this.Name = name;
this.SpdxId = spdxId;
this.Url = url;
}
}
}
|