mirror of
https://github.com/EnderIce2/SDR-RPC.git
synced 2025-07-12 10:59:15 +00:00
First commit
This commit is contained in:
23
DiscordAPI/RPC/Commands/SubscribeCommand.cs
Normal file
23
DiscordAPI/RPC/Commands/SubscribeCommand.cs
Normal file
@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using DiscordRPC.RPC.Payload;
|
||||
|
||||
namespace DiscordRPC.RPC.Commands
|
||||
{
|
||||
internal class SubscribeCommand : ICommand
|
||||
{
|
||||
public ServerEvent Event { get; set; }
|
||||
public bool IsUnsubscribe { get; set; }
|
||||
|
||||
public IPayload PreparePayload(long nonce)
|
||||
{
|
||||
return new EventPayload(nonce)
|
||||
{
|
||||
Command = IsUnsubscribe ? Command.Unsubscribe : Command.Subscribe,
|
||||
Event = Event
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user