mirror of
https://github.com/EnderIce2/SDR-RPC.git
synced 2025-07-12 06:49:13 +00:00
First commit
This commit is contained in:
35
DiscordAPI/Message/ReadyMessage.cs
Normal file
35
DiscordAPI/Message/ReadyMessage.cs
Normal file
@ -0,0 +1,35 @@
|
||||
|
||||
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace DiscordRPC.Message
|
||||
{
|
||||
/// <summary>
|
||||
/// Called when the ipc is ready to send arguments.
|
||||
/// </summary>
|
||||
public class ReadyMessage : IMessage
|
||||
{
|
||||
/// <summary>
|
||||
/// The type of message received from discord
|
||||
/// </summary>
|
||||
public override MessageType Type { get { return MessageType.Ready; } }
|
||||
|
||||
/// <summary>
|
||||
/// The configuration of the connection
|
||||
/// </summary>
|
||||
[JsonProperty("config")]
|
||||
public Configuration Configuration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// User the connection belongs too
|
||||
/// </summary>
|
||||
[JsonProperty("user")]
|
||||
public User User { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The version of the RPC
|
||||
/// </summary>
|
||||
[JsonProperty("v")]
|
||||
public int Version { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user