private void OnDisconnected(FizzException ex) { connectButton.gameObject.SetActive(true); disconnectButton.gameObject.SetActive(false); launchButton.interactable = false; }
private void ProcessResponse(string response, FizzException ex, Action <string, FizzException> onResult, Action onRetry) { if (ex != null) { if (ex.Code == FizzError.ERROR_AUTH_FAILED) { FetchSessionToken(authEx => { if (authEx != null) { FizzUtils.DoCallback <string>(null, ex, onResult); } else { if (onRetry != null) { onRetry(); } } }); } else { FizzUtils.DoCallback <string>(null, ex, onResult); } } else { FizzUtils.DoCallback <string>(response, ex, onResult); } }
private void OnFizzDisconnected(FizzException ex) { if (connectivityBanner != null) { connectivityBanner.ShowBanner(false); } }
private void OnDisconnected(FizzException ex) { connectButton.gameObject.SetActive(!FizzService.Instance.IsConnected); disconnectButton.gameObject.SetActive(FizzService.Instance.IsConnected); launchButton.interactable = false; }
void OnFizzDisconnected(FizzException ex) { sendButton.interactable = false; #if UNITY_EDITOR || UNITY_STANDALONE inputEditor.interactable = false; #else inputMobile.GetComponent <Button> ().interactable = false; #endif }
private void HandleOnDisconnected(FizzException ex) { if (ConnectionNode != null) { ConnectionNode.gameObject.SetActive(true); } OnConnectionStateChange(false); }
public static bool IsAnyGeneralArror(FizzException error) { if (error == null) { return(false); } else if (error.Code == FizzError.ERROR_AUTH_FAILED) { return(true); } return(false); }
private void OnMessageHistory(IList <FizzChannelMessage> messages, FizzException ex) { if (ex != null) { Debug.LogError(ex); return; } foreach (FizzChannelMessage message in messages) { _logView.AddChatLog(new MessageData(message, Locale.Code).SaveToString()); } }
public static void DoCallback <TResult> (TResult result, FizzException ex, Action <TResult, FizzException> callback) { if (callback != null) { try { callback(result, ex); } catch (Exception callbackEx) { FizzLogger.W("Callback threw exception: " + callbackEx.Message); } } }
public static void DoCallback(FizzException ex, Action <FizzException> callback) { if (callback != null) { try { callback(ex); } catch { FizzLogger.W("Callback threw exception"); } } }
private void HandleOnDisconnected(FizzException ex) { SetupConnectionBanner(); OnConnectionStateChange(FizzService.Instance.IsConnected); }
void OnDisconnected(FizzException ex) { OpenButton.interactable = true; CloseButton.interactable = false; }
public static string ParseGeneralError(FizzException error) { return(string.Empty); }