Files
octokit.net/Octokit/Models/Response/NotificationInfo.cs
2016-03-25 13:38:07 +07:00

36 lines
1.0 KiB
C#

using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
namespace Octokit
{
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class NotificationInfo
{
public NotificationInfo() { }
public NotificationInfo(string title, string url, string latestCommentUrl, string type)
{
Title = title;
Url = url;
LatestCommentUrl = latestCommentUrl;
Type = type;
}
public string Title { get; protected set; }
public string Url { get; protected set; }
public string LatestCommentUrl { get; protected set; }
[SuppressMessage("Microsoft.Naming", "CA1721:PropertyNamesShouldNotMatchGetMethods",
Justification = "Matches the property name used by the API")]
public string Type { get; protected set; }
internal string DebuggerDisplay
{
get { return string.Format(CultureInfo.InvariantCulture, "Type: {0}, Title: {1}", Type, Title); }
}
}
}