setParam() public method

public setParam ( String caller_id, String key, XmlRpcValue value ) : void
caller_id String
key String
value XmlRpcValue
return void
Beispiel #1
0
        /// <summary>
        /// Set a new parameter
        /// </summary>
        /// <param name="parms"></param>
        /// <param name="result"></param>
        public XmlRpcValue setParam(String caller_api, String topic, XmlRpcValue value)
        {
            XmlRpcValue res = new XmlRpcValue();//XmlRpcValue.Create(ref result), parm = XmlRpcValue.Create(ref parms);

            res.Set(0, 1);
            res.Set(1, "setParam");

            //String caller_api = parm[0].GetString();
            //String topic = parm[1].GetString();
            //XmlRpcValue value = parm[2];
            handler.setParam(caller_api, topic, value);
            res.Set(2, "parameter " + topic + " set");
            return(res);
        }
        /// <summary>
        /// Set a new parameter
        /// </summary>
        /// <param name="parms"></param>
        /// <param name="result"></param>
        public void setParam([In][Out] IntPtr parms, [In][Out] IntPtr result)
        {
            XmlRpcValue res = XmlRpcValue.Create(ref result), parm = XmlRpcValue.Create(ref parms);

            res.Set(0, 1);
            res.Set(1, "setParam");

            String      caller_api = parm[0].GetString();
            String      topic      = parm[1].GetString();
            XmlRpcValue value      = parm[2];

            handler.setParam(caller_api, topic, value);
            res.Set(2, "parameter " + topic + " set");
        }