예제 #1
0
        /// <summary>
        ///  获取用户最近获得的奖品
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public static async Task <OperationResult <GetUserLatestPrizeResponse> > GetUserLatestPrizeAsync(GetUserLatestPrizeRequest request)
        {
            try
            {
                var manager = GameManagerFactory.GetGameManager(request.GameVersion);
                if (manager == null)
                {
                    // 未实现
                    return(OperationResult.FromError <GetUserLatestPrizeResponse>("-3", Resource.Invalid_Game_NotImpl));
                }

                return(await manager.GetUserLatestPrizeAsync(request));
            }
            catch (NotImplementedException e)
            {
                // 未实现
                return(OperationResult.FromError <GetUserLatestPrizeResponse>("-3", Resource.Invalid_Game_NotImpl));
            }
        }
 /// <summary>
 /// 获取用户最近获得的奖品
 /// </summary>
 /// <param name="request"></param>
 /// <returns></returns>
 public abstract Task <OperationResult <GetUserLatestPrizeResponse> > GetUserLatestPrizeAsync(GetUserLatestPrizeRequest request);
예제 #3
0
 /// <summary>
 ///  获取用户最近获得的奖品
 /// </summary>
 /// <param name="request"></param>
 /// <returns></returns>
 public async Task <OperationResult <GetUserLatestPrizeResponse> > GetUserLatestPrizeAsync(GetUserLatestPrizeRequest request)
 {
     return(await GameManager.GetUserLatestPrizeAsync(request));
 }