public bool GetGameData(string tableId, Web.RequestHandle.DataCallBackType callback) { Debug.Assert(mode == Mode.LOBBY || mode == Mode.INGAME); var args = new Dictionary <string, string>(); args["table"] = tableId; Web.RequestHandle handle = sendRequest(serverData.GameName, "gamedataonly", args, GetGameDataCallBack, "GetGameData"); if (handle != null) { handle.dataCallback = callback; } return(handle != null); }
public bool GetNotificationHistory(string tableId, int from, bool simpleNoteHistoric, Web.RequestHandle.DataCallBackType callback) { Debug.Assert(mode == Mode.INGAME); var args = new Dictionary <string, string>(); args["table"] = tableId; args["from"] = from.ToString(); args["privateinc"] = "1"; args["history"] = simpleNoteHistoric ? "1" : "0"; Web.RequestHandle handle = sendRequest(serverData.GameName, "notificationHistory", args, GetNotificationHistoryCallBack, "GetHistory"); if (handle != null) { handle.dataCallback = callback; } return(handle != null); }