diff --git a/Octokit/Clients/IssueCommentsClient.cs b/Octokit/Clients/IssueCommentsClient.cs
index 54748f77..3fe3e92c 100644
--- a/Octokit/Clients/IssueCommentsClient.cs
+++ b/Octokit/Clients/IssueCommentsClient.cs
@@ -11,6 +11,9 @@ namespace Octokit
///
public class IssueCommentsClient : ApiClient, IIssueCommentsClient
{
+ //TODO: Remove this once PR #1335 has been merged
+ public const string ReactionsPreview = "application/vnd.github.squirrel-girl-preview";
+
///
/// Instantiates a new GitHub Issue Comments API client.
///
@@ -32,7 +35,8 @@ namespace Octokit
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
Ensure.ArgumentNotNullOrEmptyString(name, "name");
- return ApiConnection.Get(ApiUrls.IssueComment(owner, name, id));
+ //TODO: Use AcceptHeaders.ReactionsPreview once PR #1335 has been merged
+ return ApiConnection.Get(ApiUrls.IssueComment(owner, name, id), null, ReactionsPreview);
}
///
@@ -64,7 +68,8 @@ namespace Octokit
Ensure.ArgumentNotNullOrEmptyString(name, "name");
Ensure.ArgumentNotNull(options, "options");
- return ApiConnection.GetAll(ApiUrls.IssueComments(owner, name), options);
+ //TODO: Use AcceptHeaders.ReactionsPreview once PR #1335 has been merged
+ return ApiConnection.GetAll(ApiUrls.IssueComments(owner, name), null, ReactionsPreview, options);
}
///
@@ -97,7 +102,8 @@ namespace Octokit
Ensure.ArgumentNotNullOrEmptyString(name, "name");
Ensure.ArgumentNotNull(options, "options");
- return ApiConnection.GetAll(ApiUrls.IssueComments(owner, name, number), options);
+ //TODO: Use AcceptHeaders.ReactionsPreview once PR #1335 has been merged
+ return ApiConnection.GetAll(ApiUrls.IssueComments(owner, name, number), null, ReactionsPreview, options);
}
///
diff --git a/Octokit/Models/Response/IssueComment.cs b/Octokit/Models/Response/IssueComment.cs
index 57a3c6da..761635cb 100644
--- a/Octokit/Models/Response/IssueComment.cs
+++ b/Octokit/Models/Response/IssueComment.cs
@@ -55,6 +55,8 @@ namespace Octokit
///
public User User { get; protected set; }
+ public IssueCommentReactions Reactions { get; set; }
+
internal string DebuggerDisplay
{
get { return string.Format(CultureInfo.InvariantCulture, "Id: {0} CreatedAt: {1}", Id, CreatedAt); }
diff --git a/Octokit/Models/Response/IssueCommentReactions.cs b/Octokit/Models/Response/IssueCommentReactions.cs
new file mode 100644
index 00000000..a9537c3b
--- /dev/null
+++ b/Octokit/Models/Response/IssueCommentReactions.cs
@@ -0,0 +1,19 @@
+using System;
+using Octokit.Internal;
+
+namespace Octokit
+{
+ public class IssueCommentReactions
+ {
+ public int TotalCount { get; set; }
+ [Parameter(Key = "+1")]
+ public int Plus1 { get; set; }
+ [Parameter(Key = "-1")]
+ public int Minus1 { get; set; }
+ public int Laugh { get; set; }
+ public int Confused { get; set; }
+ public int Heart { get; set; }
+ public int Hooray { get; set; }
+ public Uri Url { get; set; }
+ }
+}
\ No newline at end of file
diff --git a/Octokit/Octokit-Mono.csproj b/Octokit/Octokit-Mono.csproj
index 66a545b9..9d234566 100644
--- a/Octokit/Octokit-Mono.csproj
+++ b/Octokit/Octokit-Mono.csproj
@@ -483,6 +483,7 @@
+
\ No newline at end of file
diff --git a/Octokit/Octokit-MonoAndroid.csproj b/Octokit/Octokit-MonoAndroid.csproj
index f3f94b2f..f33893cf 100644
--- a/Octokit/Octokit-MonoAndroid.csproj
+++ b/Octokit/Octokit-MonoAndroid.csproj
@@ -494,6 +494,7 @@
+
\ No newline at end of file
diff --git a/Octokit/Octokit-Monotouch.csproj b/Octokit/Octokit-Monotouch.csproj
index c0af68c9..e7b901aa 100644
--- a/Octokit/Octokit-Monotouch.csproj
+++ b/Octokit/Octokit-Monotouch.csproj
@@ -490,6 +490,7 @@
+
diff --git a/Octokit/Octokit-Portable.csproj b/Octokit/Octokit-Portable.csproj
index 1a6b2c44..fb470119 100644
--- a/Octokit/Octokit-Portable.csproj
+++ b/Octokit/Octokit-Portable.csproj
@@ -480,6 +480,7 @@
+
diff --git a/Octokit/Octokit-netcore45.csproj b/Octokit/Octokit-netcore45.csproj
index 0b7a68d1..9f7ad898 100644
--- a/Octokit/Octokit-netcore45.csproj
+++ b/Octokit/Octokit-netcore45.csproj
@@ -487,6 +487,7 @@
+
diff --git a/Octokit/Octokit.csproj b/Octokit/Octokit.csproj
index da4fe33e..68b5beb8 100644
--- a/Octokit/Octokit.csproj
+++ b/Octokit/Octokit.csproj
@@ -189,6 +189,7 @@
+