//**************************************************************************************************** // //**************************************************************************************************** static public void DBList(int start = 0, int end = int.MaxValue, HTTPReqDelegate handler = null) { if (handler != null) { HTTPReq query = new HTTPReq(ApplicationMain.instance.options.DBInfos.url + "/item_list.php", HTTP_METHOD.GET); query.SubmitAsync(handler); } }
public void Async_DBPull(HTTPReqDelegate onCompletion) { HTTPReq req = MakeQuery_DBPull(); if (req != null) { req.SubmitAsync(onCompletion); } else { if (onCompletion != null) { onCompletion.Invoke(null); } } }
//**************************************************************************************************** // //**************************************************************************************************** public bool SubmitAsync(HTTPReqDelegate handler = null) { if (node.List != null) { return(false); } if (HTTPReqs.Instance != null) { onCompletion = handler; return(HTTPReqs.Instance.Queue(this)); } return(false); }