using System;
using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class Subscription
{
public Subscription() { }
public Subscription(bool subscribed, bool ignored, string reason, DateTimeOffset createdAt, Uri url, Uri repositoryUrl)
{
Subscribed = subscribed;
Ignored = ignored;
Reason = reason;
CreatedAt = createdAt;
Url = url;
RepositoryUrl = repositoryUrl;
}
///
/// Determines if notifications should be received from this repository.
///
public bool Subscribed { get; protected set; }
///
/// Determines if all notifications should be blocked from this repository.
///
public bool Ignored { get; protected set; }
///
/// Url of the label
///
public string Reason { get; protected set; }
///
/// The for when this was created.
///
public DateTimeOffset CreatedAt { get; protected set; }
///
/// The API URL for this .
///
public Uri Url { get; protected set; }
///
/// The API URL for this .
///
public Uri RepositoryUrl { get; protected set; }
internal string DebuggerDisplay
{
get { return string.Format(CultureInfo.InvariantCulture, "Subscribed: {0}", Subscribed); }
}
}
}