mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-06 07:16:09 +00:00
36 lines
1.0 KiB
C#
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); }
|
|
}
|
|
}
|
|
}
|