using System;
using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
///
/// Used to filter pull request review comments.
///
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class PullRequestReviewCommentRequest : RequestParameters
{
///
/// Initializes a new instance of the class.
///
public PullRequestReviewCommentRequest()
{
// Default arguments
Sort = PullRequestReviewCommentSort.Created;
Direction = SortDirection.Ascending;
Since = null;
}
///
/// Can be either created or updated. Default: created.
///
public PullRequestReviewCommentSort Sort { get; set; }
///
/// Can be either asc or desc. Default: asc.
///
public SortDirection Direction { get; set; }
///
/// Only comments updated at or after this time are returned. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
///
public DateTimeOffset? Since { get; set; }
internal string DebuggerDisplay
{
get { return string.Format(CultureInfo.InvariantCulture, "Sort: {0}, Direction: {1}, Since: {2}", Sort, Direction, Since); }
}
}
}