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