using Octokit.Internal; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.Linq; namespace Octokit { /// /// Represents request to set the repositories with visibility to the secrets in an organization. /// [DebuggerDisplay("{DebuggerDisplay,nq}")] public class SelectedRepositoryCollection { public SelectedRepositoryCollection() { } public SelectedRepositoryCollection(IEnumerable selectedRepositoryIds) { SelectedRepositoryIds = selectedRepositoryIds; } /// /// List of repository Ids that should have visibility to the repository /// [Parameter(Key = "selected_repository_ids")] public IEnumerable SelectedRepositoryIds { get; set; } internal string DebuggerDisplay => string.Format(CultureInfo.CurrentCulture, "SelectedRepositoryCollection: Count: {0}", SelectedRepositoryIds.Count()); } }