using System;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
namespace Octokit
{
///
/// The affected files in a .
///
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class GitHubCommitFile
{
///
/// The name of the file
///
[SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly")]
public string Filename { get; set; }
///
/// Number of additions performed on the file.
///
public int Additions { get; set; }
///
/// Number of deletions performed on the file.
///
public int Deletions { get; set; }
///
/// Number of changes performed on the file.
///
public int Changes { get; set; }
///
/// File status, like modified, added, deleted.
///
public string Status { get; set; }
///
/// The url to the file blob.
///
public string BlobUrl { get; set; }
///
/// The url to file contents API.
///
public string ContentsUrl { get; set; }
///
/// The raw url to download the file.
///
public string RawUrl { get; set; }
///
/// The SHA of the file.
///
public string Sha { get; set; }
internal string DebuggerDisplay
{
get
{
return String.Format(CultureInfo.InvariantCulture, "Filename: {0} ({1})", Filename, Status);
}
}
}
}