using System;
using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
///
/// Used to mark a notification as "read" which removes it from the default view on GitHub.com.
///
///
/// https://developer.github.com/v3/activity/notifications/#mark-as-read
///
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class MarkAsReadRequest : RequestParameters
{
///
/// Initializes a new instance of the class.
///
public MarkAsReadRequest()
{
LastReadAt = null;
}
///
/// Describes the last point that notifications were checked. Anything updated since this time will not be
/// updated.
///
///
/// This is sent as a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. Default: the current time.
///
public DateTimeOffset? LastReadAt { get; set; }
internal string DebuggerDisplay
{
get { return string.Format(CultureInfo.InvariantCulture, "LastReadAt: {0}", LastReadAt); }
}
}
}