11using System ;
2- using System . Diagnostics . CodeAnalysis ;
32
43namespace Octokit . Reactive
54{
5+ [ Obsolete ( "Use individual clients for these methods" ) ]
66 public interface IObservableMiscellaneousClient
77 {
88 /// <summary>
99 /// Gets all the emojis available to use on GitHub.
1010 /// </summary>
1111 /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
1212 /// <returns>An <see cref="IObservable{Emoji}"/> of emoji and their URI.</returns>
13- [ SuppressMessage ( "Microsoft.Design" , "CA1024:UsePropertiesWhereAppropriate" ,
14- Justification = "Makes a network request" ) ]
13+ [ Obsolete ( "This client is being deprecated and will be removed in the future. Use EmojisClient.GetAllEmojis instead." ) ]
1514 IObservable < Emoji > GetAllEmojis ( ) ;
1615
1716 /// <summary>
@@ -20,6 +19,7 @@ public interface IObservableMiscellaneousClient
2019 /// <param name="markdown">An arbitrary Markdown document</param>
2120 /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
2221 /// <returns>The rendered Markdown.</returns>
22+ [ Obsolete ( "This client is being deprecated and will be removed in the future. Use MarkdownClient.RenderArbitraryMarkdown instead." ) ]
2323 IObservable < string > RenderArbitraryMarkdown ( NewArbitraryMarkdown markdown ) ;
2424
2525 /// <summary>
@@ -28,27 +28,29 @@ public interface IObservableMiscellaneousClient
2828 /// <param name="markdown">A plain-text Markdown document</param>
2929 /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
3030 /// <returns>The rendered Markdown.</returns>
31+ [ Obsolete ( "This client is being deprecated and will be removed in the future. Use MarkdownClient.RenderRawMarkdown instead." ) ]
3132 IObservable < string > RenderRawMarkdown ( string markdown ) ;
3233
3334 /// <summary>
3435 /// List all templates available to pass as an option when creating a repository.
3536 /// </summary>
3637 /// <returns>An observable list of gitignore template names.</returns>
37- [ SuppressMessage ( "Microsoft.Design" , "CA1024:UsePropertiesWhereAppropriate ") ]
38+ [ Obsolete ( "This client is being deprecated and will be removed in the future. Use GitIgnoreClient.GetAllGitIgnoreTemplates instead. ") ]
3839 IObservable < string > GetAllGitIgnoreTemplates ( ) ;
3940
4041 /// <summary>
4142 /// Retrieves the source for a single GitIgnore template
4243 /// </summary>
4344 /// <param name="templateName">Returns the template source for the given template</param>
45+ [ Obsolete ( "This client is being deprecated and will be removed in the future. Use GitIgnoreClient.GetGitIgnoreTemplate instead." ) ]
4446 IObservable < GitIgnoreTemplate > GetGitIgnoreTemplate ( string templateName ) ;
4547
4648 /// <summary>
4749 /// Returns a list of the licenses shown in the license picker on GitHub.com. This is not a comprehensive
4850 /// list of all possible OSS licenses.
4951 /// </summary>
5052 /// <returns>A list of licenses available on the site</returns>
51- [ SuppressMessage ( "Microsoft.Design" , "CA1024:UsePropertiesWhereAppropriate ") ]
53+ [ Obsolete ( "This client is being deprecated and will be removed in the future. Use LicensesClient.GetAllLicenses instead. ") ]
5254 IObservable < LicenseMetadata > GetAllLicenses ( ) ;
5355
5456 /// <summary>
@@ -57,29 +59,31 @@ public interface IObservableMiscellaneousClient
5759 /// </summary>
5860 /// <param name="options">Options for changing the API response</param>
5961 /// <returns>A list of licenses available on the site</returns>
62+ [ Obsolete ( "This client is being deprecated and will be removed in the future. Use LicensesClient.GetAllLicenses instead." ) ]
6063 IObservable < LicenseMetadata > GetAllLicenses ( ApiOptions options ) ;
6164
6265 /// <summary>
6366 /// Retrieves a license based on the license key such as "MIT"
6467 /// </summary>
6568 /// <param name="key"></param>
6669 /// <returns>A <see cref="License" /> that includes the license key, text, and attributes of the license.</returns>
70+ [ Obsolete ( "This client is being deprecated and will be removed in the future. Use LicensesClient.GetLicense instead." ) ]
6771 IObservable < License > GetLicense ( string key ) ;
6872
6973 /// <summary>
7074 /// Gets API Rate Limits (API service rather than header info).
7175 /// </summary>
7276 /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
7377 /// <returns>An <see cref="MiscellaneousRateLimit"/> of Rate Limits.</returns>
74- [ SuppressMessage ( "Microsoft.Design" , "CA1024:UsePropertiesWhereAppropriate ") ]
78+ [ Obsolete ( "This client is being deprecated and will be removed in the future. Use RateLimitClient.GetRateLimits instead. ") ]
7579 IObservable < MiscellaneousRateLimit > GetRateLimits ( ) ;
7680
7781 /// <summary>
7882 /// Retrieves information about GitHub.com, the service or a GitHub Enterprise installation.
7983 /// </summary>
8084 /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
8185 /// <returns>An <see cref="Meta"/> containing metadata about the GitHub instance.</returns>
82- [ SuppressMessage ( "Microsoft.Design" , "CA1024:UsePropertiesWhereAppropriate ") ]
86+ [ Obsolete ( "This client is being deprecated and will be removed in the future. Use MetaClient.GetMetadata instead. ") ]
8387 IObservable < Meta > GetMetadata ( ) ;
8488 }
8589}
0 commit comments