Added ToString/DebuggerDisplay to new RPC classes

This commit is contained in:
RogueException
2016-10-08 00:05:45 -03:00
parent 79f04a5b30
commit 4a8ebff775
6 changed files with 36 additions and 6 deletions

View File

@@ -1,7 +1,9 @@
using Model = Discord.API.Rpc.Pan;
using System.Diagnostics;
using Model = Discord.API.Rpc.Pan;
namespace Discord.Rpc
{
[DebuggerDisplay(@"{DebuggerDisplay,nq}")]
public struct Pan
{
public float Left { get; }
@@ -16,5 +18,8 @@ namespace Discord.Rpc
{
return new Pan(model.Left, model.Right);
}
public override string ToString() => $"Left = {Left}, Right = {Right}";
private string DebuggerDisplay => $"Left = {Left}, Right = {Right}";
}
}