Files
octokit.net/Octokit/Models/Request/ReleaseAssetUpdate.cs
Itai Bar-Haim 4e804f61a6 Prefer using nameof(x) over literal "x" (#1781)
* updated XML docs and added some missing bits.

* prefer nameof(x) over literal "x"
2018-03-07 20:43:10 +10:00

44 lines
1.1 KiB
C#

using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
/// <summary>
/// Used to update a release asset.
/// </summary>
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class ReleaseAssetUpdate
{
/// <summary>
/// Initializes a new instance of the <see cref="ReleaseAssetUpdate"/> class.
/// </summary>
/// <param name="name">The name.</param>
public ReleaseAssetUpdate(string name)
{
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
Name = name;
}
/// <summary>
/// The file name of the asset.
/// This field is required.
/// </summary>
public string Name { get; private set; }
/// <summary>
/// An alternate description of the asset.
/// Used in place of the filename.
/// </summary>
public string Label { get; set; }
internal string DebuggerDisplay
{
get
{
return string.Format(CultureInfo.InvariantCulture, "Name {0} Label: {1}", Name, Label);
}
}
}
}