mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-03 19:11:30 +00:00
Use AcceptHeaders.ReactionsPreview instead of local string
This commit is contained in:
@@ -7,9 +7,6 @@ namespace Octokit.Reactive
|
||||
{
|
||||
public class ObservableIssueCommentsClient : IObservableIssueCommentsClient
|
||||
{
|
||||
//TODO: Remove this once PR #1335 has been merged
|
||||
public const string ReactionsPreview = "application/vnd.github.squirrel-girl-preview";
|
||||
|
||||
readonly IIssueCommentsClient _client;
|
||||
readonly IConnection _connection;
|
||||
|
||||
@@ -66,8 +63,7 @@ namespace Octokit.Reactive
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, "name");
|
||||
Ensure.ArgumentNotNull(options, "options");
|
||||
|
||||
//TODO: Use AcceptHeaders.ReactionsPreview once PR #1335 has been merged
|
||||
return _connection.GetAndFlattenAllPages<IssueComment>(ApiUrls.IssueComments(owner, name), null, ReactionsPreview, options);
|
||||
return _connection.GetAndFlattenAllPages<IssueComment>(ApiUrls.IssueComments(owner, name), null, AcceptHeaders.ReactionsPreview, options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -101,8 +97,7 @@ namespace Octokit.Reactive
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, "name");
|
||||
Ensure.ArgumentNotNull(options, "options");
|
||||
|
||||
//TODO: Use AcceptHeaders.ReactionsPreview once PR #1335 has been merged
|
||||
return _connection.GetAndFlattenAllPages<IssueComment>(ApiUrls.IssueComments(owner, name, number), null, ReactionsPreview, options);
|
||||
return _connection.GetAndFlattenAllPages<IssueComment>(ApiUrls.IssueComments(owner, name, number), null, AcceptHeaders.ReactionsPreview, options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user