mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-11 13:48:26 +00:00
46 lines
1.3 KiB
C#
46 lines
1.3 KiB
C#
using System;
|
|
using System.Diagnostics;
|
|
using System.Globalization;
|
|
|
|
namespace Octokit
|
|
{
|
|
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
|
public class ThreadSubscription
|
|
{
|
|
/// <summary>
|
|
/// Determines if notifications should be received from this repository.
|
|
/// </summary>
|
|
public bool Subscribed { get; protected set; }
|
|
|
|
/// <summary>
|
|
/// Determines if all notifications should be blocked from this repository.
|
|
/// </summary>
|
|
public bool Ignored { get; protected set; }
|
|
|
|
/// <summary>
|
|
/// Url of the label
|
|
/// </summary>
|
|
public string Reason { get; protected set; }
|
|
|
|
/// <summary>
|
|
/// The <see cref="DateTimeOffset"/> for when this <see cref="Subscription"/> was created.
|
|
/// </summary>
|
|
public DateTimeOffset CreatedAt { get; protected set; }
|
|
|
|
/// <summary>
|
|
/// The API URL for this <see cref="Subscription"/>.
|
|
/// </summary>
|
|
public Uri Url { get; protected set; }
|
|
|
|
/// <summary>
|
|
/// The API URL for this thread.
|
|
/// </summary>
|
|
public Uri ThreadUrl { get; protected set; }
|
|
|
|
internal string DebuggerDisplay
|
|
{
|
|
get { return String.Format(CultureInfo.InvariantCulture, "Subscribed: {0}", Subscribed); }
|
|
}
|
|
}
|
|
}
|