namespace FreeSwitch.EventSocket.Commands
{
    public class HoldCmd : Api
    {
        private readonly string _sessionId;
        private readonly bool _activate;

        public HoldCmd(string sessionId, bool activate)
        {
            _sessionId = sessionId;
            _activate = activate;
        }

        public override string Command
        {
            get { return "hold"; }
        }

        public override string Arguments
        {
            get { return (_activate ? string.Empty : "off ") + _sessionId; }
        }
    }
}
