コード例 #1
0
 public async Task <ConfirmFriendResult> DoConfirmFriend(ConfirmFriendInfo request)
 {
     try
     {
         return(await _dataExchange.DoDataExchange <ConfirmFriendResult, ConfirmFriendInfo>(request, CmdName));
     }
     catch (Exception e)
     {
         return(new ConfirmFriendResult(false, e.Message));
     }
 }
コード例 #2
0
        public async Task <ConfirmFriendResult> DoConfirmFriend(ConfirmFriendInfo request)
        {
            try
            {
                dynamic requestInfo = request;

                var result = await DataExchange.DoDataExchange((object)requestInfo);

                ConfirmFriendResult retVal = result.ToObject <ConfirmFriendResult>();

                return(retVal);
            }
            catch (Exception e)
            {
                return(new ConfirmFriendResult(false, e.Message));
            }
        }