mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-21 22:55:12 +00:00
[feat]: Adding repository variables
This commit is contained in:
36
Octokit/Models/Response/RepositoryVariablesCollection.cs
Normal file
36
Octokit/Models/Response/RepositoryVariablesCollection.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using Octokit.Internal;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents response of variables for a repository.
|
||||
/// </summary>
|
||||
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
||||
public class RepositoryVariablesCollection
|
||||
{
|
||||
public RepositoryVariablesCollection()
|
||||
{
|
||||
}
|
||||
|
||||
public RepositoryVariablesCollection(int totalCount, IReadOnlyList<RepositoryVariable> variables)
|
||||
{
|
||||
TotalCount = totalCount;
|
||||
Variables = variables;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The total count of variables for the repository
|
||||
/// </summary>
|
||||
public int TotalCount { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// The list of variables for the repository
|
||||
/// </summary>
|
||||
public IReadOnlyList<RepositoryVariable> Variables { get; private set; }
|
||||
|
||||
internal string DebuggerDisplay => string.Format(CultureInfo.CurrentCulture, "RepositoryVariablesCollection: Count: {0}", TotalCount);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user