added new parameters to RepositoryRequest.cs

This commit is contained in:
Sarmad
2016-02-07 19:15:31 +05:00
parent 26c2d187e3
commit b4d86d07dc
@@ -37,6 +37,24 @@ namespace Octokit
/// </value>
public SortDirection Direction { get; set; }
/// <summary>
/// Gets or sets the visibility property.
/// </summary>
/// <value>
/// The public.
/// </value>
public RepositoryVisibility Visibility { get; set; }
/// <summary>
/// Gets or sets the affiliation property.
/// </summary>
/// <value>
/// The owner.
/// </value>
public RepositoryAffiliation Affiliation { get; set; }
internal string DebuggerDisplay
{
get
@@ -103,4 +121,70 @@ namespace Octokit
[Parameter(Value = "full_name")]
FullName
}
public enum RepositoryVisibility
{
/// <summary>
/// Returns only public repositories
/// </summary>
Public,
/// <summary>
/// Returns only private repositories
/// </summary>
Private,
/// <summary>
/// Return both public and private repositories
/// </summary>
All,
}
public enum RepositoryAffiliation
{
/// <summary>
/// Repositories that are owned by the authenticated user
/// </summary>
Owner,
/// <summary>
/// Repositories that the user has been added to as a collaborator.
/// </summary>
Collaborator,
/// <summary>
/// Repositories that the user has access to through being a member of an organization.
/// This includes every repository on every team that the user is on.
/// </summary>
[Parameter(Value = "organization_member")]
OrganizationMember,
/// <summary>
/// Return repositories that are owned by authenticated user and added to as a collaborator.
/// </summary>
[Parameter(Value = "owner, collaborator")]
OwnerAndCollaborator,
/// <summary>
/// Return repositories that are owned by authenticated user and user is a member of organization.
/// </summary>
[Parameter(Value = "owner, organization_member")]
OwnerAndOrganizationMember,
/// <summary>
/// Return repositories that user has been added as collaborator and user is a member of organization.
/// </summary>
[Parameter(Value = "collaborator, organization_member")]
CollaboratorAndOrganizationMember,
/// <summary>
/// Returns all repositories where user is owner,collaborator and organization member.
/// </summary>
[Parameter(Value = "owner, collaborator, organization_member")]
All
}
}