Moved GetReadme and GetReadmeHtml to Contents

This commit is contained in:
Kristian Hellang
2014-03-18 20:12:13 +01:00
committed by Haacked
parent 790c07da30
commit bed18b9980
23 changed files with 295 additions and 78 deletions
+11
View File
@@ -1,3 +1,4 @@
using System;
#if NET_45
using System.Collections.Generic;
#endif
@@ -38,6 +39,14 @@ namespace Octokit
/// </remarks>
IRepositoryDeployKeysClient DeployKeys { get; }
/// <summary>
/// Client for managing the contents of a repository.
/// </summary>
/// <remarks>
/// See the <a href="http://developer.github.com/v3/repos/contents/">Repository Contents API documentation</a> for more information.
/// </remarks>
IRepositoryContentsClient Content { get; }
/// <summary>
/// Creates a new repository for the current user.
/// </summary>
@@ -136,6 +145,7 @@ namespace Octokit
/// <param name="name">The name of the repository</param>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
/// <returns></returns>
[Obsolete("This method has been obsoleted by Contents.GetReadme. Please use that instead.")]
Task<Readme> GetReadme(string owner, string name);
/// <summary>
@@ -148,6 +158,7 @@ namespace Octokit
/// <param name="name">The name of the repository</param>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
/// <returns></returns>
[Obsolete("This method has been obsoleted by Contents.GetReadmeHtml. Please use that instead.")]
Task<string> GetReadmeHtml(string owner, string name);
/// <summary>