using System; using System.Collections.Generic; using System.Diagnostics; namespace Octokit { [DebuggerDisplay("{DebuggerDisplay,nq}")] public class ApiOptions { public static ApiOptions None { get { return new ApiOptions(); } } /// /// Specify the start page for pagination actions /// /// /// Page numbering is 1-based on the server /// public int? StartPage { get; set; } /// /// Specify the number of pages to return /// public int? PageCount { get; set; } /// /// Specify the number of results to return for each page /// /// /// Results returned may be less than this total if you reach the final page of results /// public int? PageSize { get; set; } internal string DebuggerDisplay { get { var values = new List(); if (StartPage.HasValue) { values.Add("StartPage: " + StartPage.Value); } if (PageCount.HasValue) { values.Add("PageCount: " + PageCount.Value); } if (PageSize.HasValue) { values.Add("PageSize: " + PageSize.Value); } return String.Join(", ", values); } } } }