blob: 879b5e495f47609693455ba82ffb7ad46c334a2d (
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>Basic metadata about a GitHub project.</summary>
internal class GitRepo
{
/*********
** Accessors
*********/
/// <summary>The full repository name, including the owner.</summary>
[JsonProperty("full_name")]
public string FullName { get; }
/// <summary>The URL to the repository web page, if any.</summary>
[JsonProperty("html_url")]
public string? WebUrl { get; }
/// <summary>The code license, if any.</summary>
[JsonProperty("license")]
public GitLicense? License { get; }
/*********
** Public methods
*********/
/// <summary>Construct an instance.</summary>
/// <param name="fullName">The full repository name, including the owner.</param>
/// <param name="webUrl">The URL to the repository web page, if any.</param>
/// <param name="license">The code license, if any.</param>
public GitRepo(string fullName, string? webUrl, GitLicense? license)
{
this.FullName = fullName;
this.WebUrl = webUrl;
this.License = license;
}
}
}
|