private void AddSubmit(SubmitRequest submitRequest) { var request = GetActiveRequest(); if (request == null) { return; } request.Submit.Add(submitRequest); Send(); }
public void SubmitRegistered(string key, float ratio) { var submitRequest = new SubmitRequest { Key = key, Type = "key", Parameters = new Dictionary <string, object> { { "ratio", ratio } } }; AddSubmit(submitRequest); }
public void TurnOff() { if (!_enable) { return; } var req = new SubmitRequest { Type = "turnOffAll" }; AddSubmit(req); }
public void SubmitRegistered(string key, string altKey, ScaleOption option) { var submitRequest = new SubmitRequest { Key = key, Type = "key", Parameters = new Dictionary <string, object> { { "scaleOption", option }, { "altKey", altKey } } }; AddSubmit(submitRequest); }
public void SubmitRegistered(string key) { if (!_enable) { return; } var submitRequest = new SubmitRequest { Key = key, Type = "key" }; AddSubmit(submitRequest); }
public void TurnOff(string key) { if (!_enable) { return; } var req = new SubmitRequest { Key = key, Type = "turnOff" }; AddSubmit(req); }
public void Submit(string key, Frame req) { if (!_enable) { return; } var submitRequest = new SubmitRequest { Frame = req, Key = key, Type = "frame" }; AddSubmit(submitRequest); }
private void AddSubmit(SubmitRequest submitRequest) { var request = GetActiveRequest(); if (request == null) { return; } try { request.Submit.Add(submitRequest); } catch (Exception e) { } Send(); }