public RPCCommand(Jeedom jee, string method, Dictionary <string, object> vars) { _method = method; _vars = vars; Init(jee); }
public Commands(Jeedom jee, JeedomEntities entities) { _jee = jee; _entities = entities; Load(); }
private void Init(Jeedom jee) { _jeedom = jee; _response = string.Empty; _error = string.Empty; // Our RPC command "object" Dictionary <string, object> request = new Dictionary <string, object>() { { "jsonrpc", "2.0" }, { "id", new Random().Next(1, 9999) }, { "method", _method }, { "params", _vars } }; // We inject the API key in the command parameters Dictionary <string, object> par = (Dictionary <string, object>)request["params"]; par.Add("apikey", _jeedom._api_key); // Our RPC command is encapsulated by JSON... _RPCcommand = new Dictionary <string, object>() { { "request", JsonConvert.SerializeObject(request) } }; }
public RPCCommand(Jeedom jee, string method) { _method = method; _vars = new Dictionary <string, object> (); Init(jee); }
public EqLogics(Jeedom jee, JeedomEntities entities) { _jee = jee; _entities = entities; Load(); }
private void Init(Jeedom jee) { _jeedom = jee; _response = string.Empty; _error = string.Empty; // Our RPC command "object" Dictionary<string, object> request = new Dictionary<string, object>() { { "jsonrpc", "2.0" }, { "id", new Random().Next(1,9999) }, { "method", _method }, { "params", _vars } }; // We inject the API key in the command parameters Dictionary<string, object> par = (Dictionary<string, object>)request["params"]; par.Add("apikey", _jeedom._api_key); // Our RPC command is encapsulated by JSON... _RPCcommand = new Dictionary<string, object>() { { "request", JsonConvert.SerializeObject(request) } }; }
public RPCCommand(Jeedom jee, string method, Dictionary<string, object> vars) { _method = method; _vars = vars; Init(jee); }
public RPCCommand(Jeedom jee, string method) { _method = method; _vars = new Dictionary<string, object> (); Init(jee); }
public HTTPQuery(Jeedom jee, Dictionary<string, object> args) { _args = args; _jeedom = jee; // Formatting the POST request using HttpBuildQueryHelper // Thanks Roland Mai !!! _query = HttpBuildQueryHelper.FormatDictionary(args); }
public HTTPQuery(Jeedom jee, Dictionary <string, object> args) { _args = args; _jeedom = jee; // Formatting the POST request using HttpBuildQueryHelper // Thanks Roland Mai !!! _query = HttpBuildQueryHelper.FormatDictionary(args); }
private void Init() { if (check_Custom_Port.Checked && check_Additionnal_Path.Checked) { jee = new Jeedom(text_Host.Text, text_Additionnal_Path.Text, int.Parse(text_Port.Text), text_API_Key.Text, check_Use_SSL.Checked, check_Bypass_SSL.Checked); } else if (check_Custom_Port.Checked) { jee = new Jeedom(text_Host.Text, int.Parse(text_Port.Text), text_API_Key.Text, check_Use_SSL.Checked, check_Bypass_SSL.Checked); } else if (check_Additionnal_Path.Checked) { jee = new Jeedom(text_Host.Text, text_Additionnal_Path.Text, text_API_Key.Text, check_Use_SSL.Checked, check_Bypass_SSL.Checked); } else { jee = new Jeedom(text_Host.Text, text_API_Key.Text, check_Use_SSL.Checked, check_Bypass_SSL.Checked); } jee.OnResponse += Jee_OnResponse; jee.Load(); }
public Scenarios(Jeedom jee) { _jee = jee; Load(); }
public Objects(Jeedom jee) { _jee = jee; Load(); }
public Plugins(Jeedom jee) { _jee = jee; Load(); }
public Messages(Jeedom jee) { _jee = jee; Load(); }