mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-27 16:42:03 +00:00
4e804f61a6
* updated XML docs and added some missing bits. * prefer nameof(x) over literal "x"
35 lines
1.0 KiB
C#
35 lines
1.0 KiB
C#
using System.Diagnostics;
|
|
using System.Globalization;
|
|
|
|
namespace Octokit
|
|
{
|
|
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
|
public class RepositoryContentLicense : RepositoryContentInfo
|
|
{
|
|
public RepositoryContentLicense(LicenseMetadata license, string name, string path, string sha, int size, ContentType type, string downloadUrl, string url, string gitUrl, string htmlUrl)
|
|
: base(name, path, sha, size, type, downloadUrl, url, gitUrl, htmlUrl)
|
|
{
|
|
Ensure.ArgumentNotNull(license, nameof(license));
|
|
|
|
License = license;
|
|
}
|
|
|
|
public RepositoryContentLicense()
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// License information
|
|
/// </summary>
|
|
public LicenseMetadata License { get; protected set; }
|
|
|
|
internal new string DebuggerDisplay
|
|
{
|
|
get
|
|
{
|
|
return string.Format(CultureInfo.InvariantCulture, "License: {0} {1}", this.License?.Key, base.DebuggerDisplay);
|
|
}
|
|
}
|
|
}
|
|
}
|