protected void UnityIosGameInfoListCallback(string message) { LitJson.JsonReader reader = new LitJson.JsonReader(message); GameInfoListCallbackData data = new GameInfoListCallbackData(); JsonReadObject(reader, data, this.ReadGameInfoListObject); GameInfoList gameList = new GameInfoList(); gameList.List = data.games.ToArray(); GameNameListCallback(data.status, gameList); }
void IStreamCallbacks.GetGameNameListCallback(ErrorCode result, GameInfoList list) { if (Error.Failed(result)) { string err = Error.GetString(result); ReportError(string.Format("GameNameListCallback got failure: {0}", err)); } try { if (GameNameListReceived != null) { this.GameNameListReceived(result, list == null ? new GameInfo[0] : list.List); } } catch (Exception x) { ReportError(x.ToString()); } }
void IStreamCallbacks.GetGameNameListCallback(ErrorCode result, GameInfoList list) { }
void IBroadcastApiListener.GetGameNameListCallback(ErrorCode result, GameInfoList list) { }
void IStreamCallbacks.GetGameNameListCallback(ErrorCode result, GameInfoList list) { if (Error.Failed(result)) { string err = Error.GetString(result); ReportError(string.Format("GameNameListCallback got failure: {0}", err)); } FireGameNameListReceived(result, list); }
protected void FireGameNameListReceived(ErrorCode result, GameInfoList list) { try { if (m_BroadcastController.GameNameListReceived != null) { m_BroadcastController.GameNameListReceived(result, list == null ? new GameInfo[0] : list.List); } } catch (Exception x) { ReportError(x.ToString()); } }