public override void HandleSuccess(Roar.CallbackInfo <WebObjects.Urbanairship.IosRegisterResponse> info) { urbanAirship.hasTokenBeenSentToUA = true; if (UrbanAirship.urbanAirshipRegistrationSucceeded != null) { UrbanAirship.urbanAirshipRegistrationSucceeded(); } }
public void OnSuccess(Roar.CallbackInfo <Roar.WebObjects.Leaderboards.ListResponse> info) { leaderboards.boardList = info.data.boards; leaderboards.hasBoardList = true; if (cb != null) { cb(new Roar.CallbackInfo <ILeaderboards>(leaderboards, WebAPI.OK, null)); } }
public void OnSuccess(Roar.CallbackInfo <T> info) { Prologue(); HandleSuccess(info); if (cb != null) { cb(info); } }
public void OnSuccess(Roar.CallbackInfo <WebObjects.Appstore.ShopListResponse> info) { appstore.isServerCalling = false; appstore.logger.DebugLog(string.Format("onAppstoreList.onSuccess() called with: {0}", info.data.ToString())); string combinedProductIdentifiers = string.Join(",", (string[])info.data.shop_list.ConvertAll <string>(e => e.product_identifier).ToArray()); #if UNITY_IOS && !UNITY_EDITOR _StoreKitRequestProductData(combinedProductIdentifiers); #else appstore.logger.DebugLog(string.Format("Can't call _StoreKitRequestProductData({0}) from Unity Editor", combinedProductIdentifiers)); #endif if (cb_ != null) { cb_(info); } }
public void OnSuccess(Roar.CallbackInfo <Roar.WebObjects.Leaderboards.ViewResponse> info) { IDictionary <int, IList <DomainObjects.LeaderboardEntry> > board = null; leaderboards.boards.TryGetValue(board_id, out board); if (board == null) { board = new Dictionary <int, IList <DomainObjects.LeaderboardEntry> >(); leaderboards.boards[board_id] = board; } board[info.data.leaderboard_data.page] = info.data.leaderboard_data.entries; if (cb != null) { cb(new Roar.CallbackInfo <ILeaderboards>(leaderboards, WebAPI.OK, null)); } Leaderboards.OnLeaderboardFetchCompleted(info.data); }
public virtual void HandleSuccess(Roar.CallbackInfo <T> info) { }
public override void HandleSuccess(Roar.CallbackInfo <Roar.WebObjects.Items.UseResponse> info) { DomainObjects.InventoryItem item = inventory.dataStore.inventory.Get(id); inventory.dataStore.inventory.Unset(item.id); RoarManager.OnGoodUsed(new RoarManager.GoodInfo(item.id, item.ikey, item.label)); }