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

30 lines
848 B
C#

using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
/// <summary>
/// Represents updatable fields for a users subscription to a given thread
/// </summary>
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class NewThreadSubscription
{
/// <summary>
/// Determines if notifications should be received from this thread
/// </summary>
public bool Subscribed { get; set; }
/// <summary>
/// Determines if all notifications should be blocked from this thread
/// </summary>
public bool Ignored { get; set; }
internal string DebuggerDisplay
{
get
{
return string.Format(CultureInfo.InvariantCulture, "Subscribed: {0} Ignored: {1}", Subscribed, Ignored);
}
}
}
}