mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-03 19:11:30 +00:00
Remove method/members previously deprecated (#1780)
* removes obsolete OranizationsClient.GetAll (replaced with GetAllForUser) * removes obsolete PullRequestsClient.Comment (replaced with ReviewComment) * removes obsolete TeamsClient.GetMembership (replaced with GetMembershipDetails) removes obsolete TeamsClient.AddMembership (replaced with AddOrEditMembership) removes obsolete TeamsClient.AddMembership (replaced with AddOrEditMembership) removes obsolete TeamMembership response class (replaced with TeamMembershipDetails) * removes obsolete RepositoryBranchesClient.GetRequiredStatusChecksContexts (replaced with GetAllRequiredStatusChecksContexts) removes obsolete RepositoryBranchesClient.GetProtectedBranchTeamRestrictions (replaced with GetAllProtectedBranchTeamRestrictions) removes obsolete RepositoryBranchesClient.GetProtectedBranchUserRestrictions (replaced with GetAllProtectedBranchUserRestrictions) * removes obsolete RepositoryTrafficClient.GetReferrers (replaced with GetAllReferrers) removes obsolete RepositoryTrafficClient.GetPaths (replaced with GetAllPaths) * removes obsolete constructors from BranchProtectionUpdateSettings and UpdateTeam request models * removes obsolete Assignee property from NewIssue and IssueUpdate request models (replaced with Assignees)
This commit is contained in:
@@ -15,29 +15,6 @@ namespace Octokit.Reactive
|
||||
_client = client.Repository.Traffic;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// List the top 10 popular contents over the last 14 days
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/repos/traffic/#list-paths</remarks>
|
||||
/// <param name="repositoryId">The owner of the repository</param>
|
||||
[Obsolete("Please use GetAllPaths instead")]
|
||||
public IObservable<RepositoryTrafficPath> GetPaths(long repositoryId)
|
||||
{
|
||||
return GetAllPaths(repositoryId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// List the top 10 popular contents over the last 14 days
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/repos/traffic/#list-paths</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
[Obsolete("Please use GetAllPaths instead")]
|
||||
public IObservable<RepositoryTrafficPath> GetPaths(string owner, string name)
|
||||
{
|
||||
return GetAllPaths(owner, name);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// List the top 10 popular contents over the last 14 days
|
||||
/// </summary>
|
||||
@@ -62,29 +39,6 @@ namespace Octokit.Reactive
|
||||
return _client.GetAllPaths(owner, name).ToObservable().SelectMany(x => x);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// List the top 10 referrers over the last 14 days
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/repos/traffic/#list-referrers</remarks>
|
||||
/// <param name="repositoryId">The owner of the repository</param>
|
||||
[Obsolete("Please use GetAllReferrers instead")]
|
||||
public IObservable<RepositoryTrafficReferrer> GetReferrers(long repositoryId)
|
||||
{
|
||||
return GetAllReferrers(repositoryId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// List the top 10 referrers over the last 14 days
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/repos/traffic/#list-referrers</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
[Obsolete("Please use GetAllReferrers instead")]
|
||||
public IObservable<RepositoryTrafficReferrer> GetReferrers(string owner, string name)
|
||||
{
|
||||
return GetAllReferrers(owner, name);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// List the top 10 referrers over the last 14 days
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user