using System;
using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
///
/// Specifies the parameters to filter notifications by
///
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class NotificationsRequest : RequestParameters
{
///
/// If true, show notifications marked as read. Default: false
///
public bool All { get; set; }
///
/// If true, only shows notifications in which the user is directly participating or mentioned. Default: false
///
public bool Participating { get; set; }
///
/// Only show notifications updated after the given time. Defaults to the everything if unspecified.
///
public DateTimeOffset? Since { get; set; }
///
/// Only show notifications updated before the given time.
///
///
/// This is sent as a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
///
///
/// The before.
///
public DateTimeOffset? Before { get; set; }
internal string DebuggerDisplay
{
get
{
return string.Format(CultureInfo.InvariantCulture, "All: {0}, Participating: {1}, Since: {2}", All, Participating, Since);
}
}
}
}