private bool sendTableRequest(string name, string tableId, string message, Web.RequestHandle.CallBackType callback) { var args = new Dictionary <string, string>(); args["table"] = tableId; return(sendRequest("table", name, args, callback, message) != null); }
private Web.RequestHandle sendRequest(string category, string name, Dictionary <string, string> args, Web.RequestHandle.CallBackType callback, string message, bool background = false) { Uri uri = serverData.GetRequestUri(category, name); HTTPRequest request; if (args == null) { request = new HTTPRequest(uri); } else { request = new HTTPRequest(uri, HTTPMethods.Post); string debug_message = "Request Form: "; foreach (KeyValuePair <string, string> arg in args) { request.AddField(arg.Key, arg.Value); debug_message += arg.Key + "=" + arg.Value + ";"; } Logger.Instance.Log("DETAIL", debug_message); } return(_requestManager.ScheduleRequest(request, message, callback, background)); }