mirror of
https://github.com/EnderIce2/SDR-RPC.git
synced 2025-05-25 19:34:25 +00:00
24 lines
481 B
C#
24 lines
481 B
C#
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
|
|
};
|
|
}
|
|
}
|
|
}
|