Esempio n. 1
0
 private void GetGifts()
 {
     if (!isGiftsRequested)
     {
         GiftsRequest.GetGifts();
     }
 }
Esempio n. 2
0
 public void SendGift(IGift gift)
 {
     if (playerService.GetItemCount(gift.GetItemData()) > 0)
     {
         //really gift send here
         GiftsRequest.SendGift(gift.GetReceiver(), gift.GetItemData());
     }
 }
Esempio n. 3
0
        public void Setup(object data)
        {
            INetErrorFactory errorFactory = new NetErrorFactory();

            usersRequest  = new UsersRequest(this, "https://server.playnebula.com/raven/users.php", errorFactory, resourceService);
            giftsRequest  = new GiftsRequest(this, "https://server.playnebula.com/raven/gifts.php", errorFactory, resourceService);
            friendRequest = new FriendRequest(this, "https://server.playnebula.com/raven/friends.php", errorFactory, resourceService);
        }
Esempio n. 4
0
 public void TakeGift(string giftId)
 {
     GiftsRequest.TakeGift(giftId);
 }