using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DiscordRPC.RPC.Payload;
using Newtonsoft.Json;
namespace DiscordRPC.RPC.Commands
{
internal class PresenceCommand : ICommand
{
///
/// The process ID
///
[JsonProperty("pid")]
public int PID { get; set; }
///
/// The rich presence to be set. Can be null.
///
[JsonProperty("activity")]
public RichPresence Presence { get; set; }
public IPayload PreparePayload(long nonce)
{
return new ArgumentPayload(this, nonce)
{
Command = Command.SetActivity
};
}
}
}