mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-28 08:58:37 +00:00
39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
using System;
|
|
using System.Diagnostics;
|
|
using System.Globalization;
|
|
using Octokit.Internal;
|
|
|
|
namespace Octokit
|
|
{
|
|
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
|
public class ReactionSummary
|
|
{
|
|
public int TotalCount { get; protected set; }
|
|
[Parameter(Key = "+1")]
|
|
public int Plus1 { get; protected set; }
|
|
[Parameter(Key = "-1")]
|
|
public int Minus1 { get; protected set; }
|
|
public int Laugh { get; protected set; }
|
|
public int Confused { get; protected set; }
|
|
public int Heart { get; protected set; }
|
|
public int Hooray { get; protected set; }
|
|
public Uri Url { get; protected set; }
|
|
|
|
internal string DebuggerDisplay
|
|
{
|
|
get
|
|
{
|
|
return string.Format(
|
|
CultureInfo.InvariantCulture,
|
|
"TotalCount: {0} +1: {1} -1: {2} Laugh: {3} Confused: {4} Heart: {5} Hooray: {6}",
|
|
TotalCount,
|
|
Plus1,
|
|
Minus1,
|
|
Laugh,
|
|
Confused,
|
|
Heart,
|
|
Hooray);
|
|
}
|
|
}
|
|
}
|
|
} |