Beispiel #1
0
 public override void HandleSuccess(Roar.CallbackInfo <WebObjects.Urbanairship.IosRegisterResponse> info)
 {
     urbanAirship.hasTokenBeenSentToUA = true;
     if (UrbanAirship.urbanAirshipRegistrationSucceeded != null)
     {
         UrbanAirship.urbanAirshipRegistrationSucceeded();
     }
 }
Beispiel #2
0
 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));
     }
 }
Beispiel #3
0
 public void OnSuccess(Roar.CallbackInfo <T> info)
 {
     Prologue();
     HandleSuccess(info);
     if (cb != null)
     {
         cb(info);
     }
 }
Beispiel #4
0
            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);
                }
            }
Beispiel #5
0
            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);
            }
Beispiel #6
0
 public virtual void HandleSuccess(Roar.CallbackInfo <T> info)
 {
 }
Beispiel #7
0
 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));
 }