@@ -1,7 +1,9 @@ | |||||
using Model = Discord.API.Rpc.ChannelCreatedEvent; | |||||
using System.Diagnostics; | |||||
using Model = Discord.API.Rpc.ChannelCreatedEvent; | |||||
namespace Discord.Rpc | namespace Discord.Rpc | ||||
{ | { | ||||
[DebuggerDisplay(@"{DebuggerDisplay,nq}")] | |||||
public class RpcChannel | public class RpcChannel | ||||
{ | { | ||||
public ulong Id { get; } | public ulong Id { get; } | ||||
@@ -23,5 +25,8 @@ namespace Discord.Rpc | |||||
Name = model.Name; | Name = model.Name; | ||||
Type = model.Type; | Type = model.Type; | ||||
} | } | ||||
public override string ToString() => Name; | |||||
private string DebuggerDisplay => $"{Name} ({Id}, {Type})"; | |||||
} | } | ||||
} | } |
@@ -1,7 +1,9 @@ | |||||
using Model = Discord.API.Rpc.GuildCreatedEvent; | |||||
using System.Diagnostics; | |||||
using Model = Discord.API.Rpc.GuildCreatedEvent; | |||||
namespace Discord.Rpc | namespace Discord.Rpc | ||||
{ | { | ||||
[DebuggerDisplay(@"{DebuggerDisplay,nq}")] | |||||
public class RpcGuild | public class RpcGuild | ||||
{ | { | ||||
public ulong Id { get; } | public ulong Id { get; } | ||||
@@ -21,5 +23,8 @@ namespace Discord.Rpc | |||||
{ | { | ||||
Name = model.Name; | Name = model.Name; | ||||
} | } | ||||
public override string ToString() => Name; | |||||
private string DebuggerDisplay => $"{Name} ({Id})"; | |||||
} | } | ||||
} | } |
@@ -1,7 +1,9 @@ | |||||
using Model = Discord.API.Rpc.GuildStatusEvent; | |||||
using System.Diagnostics; | |||||
using Model = Discord.API.Rpc.GuildStatusEvent; | |||||
namespace Discord.Rpc | namespace Discord.Rpc | ||||
{ | { | ||||
[DebuggerDisplay(@"{DebuggerDisplay,nq}")] | |||||
public class RpcGuildStatus | public class RpcGuildStatus | ||||
{ | { | ||||
public RpcGuild Guild { get; } | public RpcGuild Guild { get; } | ||||
@@ -21,5 +23,8 @@ namespace Discord.Rpc | |||||
{ | { | ||||
Online = model.Online; | Online = model.Online; | ||||
} | } | ||||
public override string ToString() => Guild.Name; | |||||
private string DebuggerDisplay => $"{Guild.Name} ({Guild.Id}, {Online} Online)"; | |||||
} | } | ||||
} | } |
@@ -1,7 +1,9 @@ | |||||
using Model = Discord.API.Rpc.Pan; | |||||
using System.Diagnostics; | |||||
using Model = Discord.API.Rpc.Pan; | |||||
namespace Discord.Rpc | namespace Discord.Rpc | ||||
{ | { | ||||
[DebuggerDisplay(@"{DebuggerDisplay,nq}")] | |||||
public struct Pan | public struct Pan | ||||
{ | { | ||||
public float Left { get; } | public float Left { get; } | ||||
@@ -16,5 +18,8 @@ namespace Discord.Rpc | |||||
{ | { | ||||
return new Pan(model.Left, model.Right); | return new Pan(model.Left, model.Right); | ||||
} | } | ||||
public override string ToString() => $"Left = {Left}, Right = {Right}"; | |||||
private string DebuggerDisplay => $"Left = {Left}, Right = {Right}"; | |||||
} | } | ||||
} | } |
@@ -1,7 +1,9 @@ | |||||
using Model = Discord.API.Rpc.VoiceDevice; | |||||
using System.Diagnostics; | |||||
using Model = Discord.API.Rpc.VoiceDevice; | |||||
namespace Discord.Rpc | namespace Discord.Rpc | ||||
{ | { | ||||
[DebuggerDisplay(@"{DebuggerDisplay,nq}")] | |||||
public struct VoiceDevice | public struct VoiceDevice | ||||
{ | { | ||||
public string Id { get; } | public string Id { get; } | ||||
@@ -16,5 +18,8 @@ namespace Discord.Rpc | |||||
{ | { | ||||
return new VoiceDevice(model.Id, model.Name); | return new VoiceDevice(model.Id, model.Name); | ||||
} | } | ||||
public override string ToString() => $"{Name}"; | |||||
internal string DebuggerDisplay => $"{Name} ({Id})"; | |||||
} | } | ||||
} | } |
@@ -1,7 +1,9 @@ | |||||
using Model = Discord.API.Rpc.VoiceShortcut; | |||||
using System.Diagnostics; | |||||
using Model = Discord.API.Rpc.VoiceShortcut; | |||||
namespace Discord.Rpc | namespace Discord.Rpc | ||||
{ | { | ||||
[DebuggerDisplay(@"{DebuggerDisplay,nq}")] | |||||
public struct VoiceShortcut | public struct VoiceShortcut | ||||
{ | { | ||||
public VoiceShortcutType Type { get; } | public VoiceShortcutType Type { get; } | ||||
@@ -18,5 +20,8 @@ namespace Discord.Rpc | |||||
{ | { | ||||
return new VoiceShortcut(model.Type, model.Code, model.Name); | return new VoiceShortcut(model.Type, model.Code, model.Name); | ||||
} | } | ||||
public override string ToString() => $"{Name}"; | |||||
internal string DebuggerDisplay => $"{Name} ({Code}, {Type})"; | |||||
} | } | ||||
} | } |