mirror of
https://github.com/EnderIce2/SDR-RPC.git
synced 2025-07-12 06:39:14 +00:00
First commit
This commit is contained in:
25
DiscordAPI/Message/JoinMessage.cs
Normal file
25
DiscordAPI/Message/JoinMessage.cs
Normal file
@ -0,0 +1,25 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace DiscordRPC.Message
|
||||
{
|
||||
/// <summary>
|
||||
/// Called when the Discord Client wishes for this process to join a game. D -> C.
|
||||
/// </summary>
|
||||
public class JoinMessage : IMessage
|
||||
{
|
||||
/// <summary>
|
||||
/// The type of message received from discord
|
||||
/// </summary>
|
||||
public override MessageType Type { get { return MessageType.Join; } }
|
||||
|
||||
/// <summary>
|
||||
/// The <see cref="Secrets.JoinSecret" /> to connect with.
|
||||
/// </summary>
|
||||
[JsonProperty("secret")]
|
||||
public string Secret { get; internal set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user