public ClientUpdateCommand(ClientModification modificationInstance) : base("ClientUpdate")
        {
            if (modificationInstance == null)
            {
                throw new ArgumentNullException(nameof(modificationInstance));
            }

            modificationInstance.AddToCommand(this);
        }
        public ClientEditCommand(uint clientId, ClientModification modificationInstance) : base("ClientEdit")
        {
            if (modificationInstance == null)
            {
                throw new ArgumentNullException(nameof(modificationInstance));
            }

            AddParameter("clid", clientId);
            modificationInstance.AddToCommand(this);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Sets one or more values concerning your own client, and makes them available to other clients through the server where applicable
        /// </summary>
        /// <param name="modificationInstance">The modifications as class</param>
        public SimpleResponse UpdateClient(ClientModification modificationInstance)
        {
            if (modificationInstance == null)
            {
                throw new ArgumentNullException("modificationInstance");
            }

            Command command = SharedCommandName.ClientUpdate.CreateCommand();

            modificationInstance.AddToCommand(command);

            return(ResponseBase <SimpleResponse> .Parse(SendCommand(command)));
        }