mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-09 04:56:29 +00:00
62 lines
1.4 KiB
C#
62 lines
1.4 KiB
C#
using Octokit.Internal;
|
|
using System;
|
|
using System.Diagnostics;
|
|
using System.Globalization;
|
|
|
|
namespace Octokit
|
|
{
|
|
public enum Reaction
|
|
{
|
|
[Parameter(Value = "plus_one")]
|
|
Plus1 = 0,
|
|
[Parameter(Value = "minus_one")]
|
|
Minus1 = 1,
|
|
[Parameter(Value = "laugh")]
|
|
Laugh = 2,
|
|
[Parameter(Value = "confused")]
|
|
Confused = 3,
|
|
[Parameter(Value = "heart")]
|
|
Heart = 4,
|
|
[Parameter(Value = "hooray")]
|
|
Hooray = 5
|
|
}
|
|
|
|
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
|
public class CommitCommentReaction
|
|
{
|
|
public CommitCommentReaction() { }
|
|
|
|
public CommitCommentReaction(int id, int userId, Reaction content)
|
|
{
|
|
Id = id;
|
|
UserId = userId;
|
|
Content = content;
|
|
}
|
|
|
|
/// <summary>
|
|
/// The Id for this reaction.
|
|
/// </summary>
|
|
public int Id { get; protected set; }
|
|
|
|
/// <summary>
|
|
/// The UserId.
|
|
/// </summary>
|
|
public int UserId { get; protected set; }
|
|
|
|
/// <summary>
|
|
/// The reaction type for this commit comment.
|
|
/// </summary>
|
|
[Parameter(Key = "content")]
|
|
public Reaction Content { get; protected set; }
|
|
|
|
internal string DebuggerDisplay
|
|
{
|
|
get
|
|
{
|
|
return string.Format(CultureInfo.InvariantCulture, "Id: {0}, Reaction: {1}", Id, Content);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|