public void IsTapTapGlobalInstalled(Action <bool> callback) { Command command = new Command(TDSCommonConstants.TDS_COMMON_SERVICE_CLZ, "isTapGlobalInstalled", true, null); EngineBridge.GetInstance().CallHandler(command, (result) => { if (result.code != Result.RESULT_SUCCESS) { callback(false); return; } if (string.IsNullOrEmpty(result.content)) { callback(false); return; } callback(BridgeBooleanWrapper.GetBoolFromDic("isTapGlobalInstalled", result.content)); }); }
public void UpdateGameInTapTap(string appId, Action <bool> callback) { Dictionary <string, object> dic = new Dictionary <string, object>(); dic.Add("appId", appId); Command command = new Command(TDSCommonConstants.TDS_COMMON_SERVICE_CLZ, "updateGameInTapTap", true, dic); EngineBridge.GetInstance().CallHandler(command, (result) => { if (result.code != Result.RESULT_SUCCESS) { callback(false); return; } if (string.IsNullOrEmpty(result.content)) { callback(false); return; } callback(BridgeBooleanWrapper.GetBoolFromDic("updateGameInTapTap", result.content)); }); }