コード例 #1
0
 public async Task <IActionResult> BuySticker(string stickerId, TokHelper.ValueType type = TokHelper.ValueType.Coins)
 {
     return(Json(await _stickerService.PurchaseStickerAsync(stickerId)));
 }
コード例 #2
0
        public async Task <IActionResult> BuyAndSelectSticker(string stickerId, string tokId, TokHelper.ValueType type = TokHelper.ValueType.Coins)
        {
            var success = await _stickerService.PurchaseStickerAsync(stickerId);

            if (success)
            {
                return(Json(await _stickerService.AddStickerToTokAsync(tokId, stickerId)));
            }
            else
            {
                return(Json(false));
            }
        }
コード例 #3
0
 public async Task <IActionResult> BuyAvatar(string avatarId, TokHelper.ValueType type = TokHelper.ValueType.Coins)
 {
     // Avatar Purchase Logic here...
     return(Json(null));
 }