Implementing the rest of the Notifications API

This commit is contained in:
Dillon Buchanan
2014-08-17 11:03:32 -04:00
committed by Brendan Forster
parent 45e48e26f7
commit f45fc8e3ff
20 changed files with 795 additions and 0 deletions
@@ -0,0 +1,48 @@
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; set; }
/// <summary>
/// Determines if all notifications should be blocked from this repository.
/// </summary>
public bool Ignored { get; set; }
/// <summary>
/// Url of the label
/// </summary>
public string Reason { get; set; }
/// <summary>
/// The <see cref="DateTimeOffset"/> for when this <see cref="Subscription"/> was created.
/// </summary>
public DateTimeOffset CreatedAt { get; set; }
/// <summary>
/// The API URL for this <see cref="Subscription"/>.
/// </summary>
public Uri Url { get; set; }
/// <summary>
/// The API URL for this thread.
/// </summary>
public Uri ThreadUrl { get; set; }
internal string DebuggerDisplay
{
get
{
return String.Format(CultureInfo.InvariantCulture, "Subscribed: {0}", Subscribed);
}
}
}
}