using System; using System.Diagnostics; using System.Globalization; namespace Octokit { /// /// Used to request Gists since a certain date. /// /// /// API docs: https://developer.github.com/v3/gists/ /// [DebuggerDisplay("{DebuggerDisplay,nq}")] public class GistRequest : RequestParameters { /// /// Initializes a new instance of the class. /// /// The date for which only gists updated at or after this time are returned. public GistRequest(DateTimeOffset since) { Since = since; } /// /// Gets or sets the date for which only gists updated at or after this time are returned. /// /// /// This is sent as a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ /// /// /// The since. /// public DateTimeOffset Since { get; set; } internal string DebuggerDisplay { get { return string.Format(CultureInfo.InvariantCulture, "Since: {0}", Since); } } } }