using System.Diagnostics; using System.Globalization; using Octokit.Internal; namespace Octokit { public enum ReactionType { [Parameter(Value = "+1")] Plus1, [Parameter(Value = "-1")] Minus1, Laugh, Confused, Heart, Hooray } [DebuggerDisplay("{DebuggerDisplay,nq}")] public class Reaction { public Reaction() { } public Reaction(int id, User user, ReactionType content) { Id = id; User = user; Content = content; } /// /// The Id for this reaction. /// public int Id { get; protected set; } /// /// Information about the user. /// public User User { get; protected set; } /// /// The reaction type for this commit comment. /// [Parameter(Key = "content")] public ReactionType Content { get; protected set; } internal string DebuggerDisplay { get { return string.Format(CultureInfo.InvariantCulture, "Id: {0}, Reaction: {1}", Id, Content); } } } }