예제 #1
0
        public static CommentResponse delAccount(DelAccountInfo info)
        {
            string          _uri   = ECConstUri.account_uri + string.Format("?userId={0}&accountId={1}", info.userId, info.accountId);
            CommentResponse result = eSDKServiceHelper.CallService <CommentResponse>(_uri, HttpMethod.DELETE);

            return(result);
        }
예제 #2
0
        //删除账户
        private void btn_delAccount_Click(object sender, EventArgs e)
        {
            try
            {
                DelAccountInfo _info = new DelAccountInfo();
                _info.userId    = this.txt_AccountId.Text.Trim();
                _info.accountId = this.txt_accountIdEx.Text.Trim();

                CommentResponse result = ecBusiness.DelAccount(_info);
                if (result != null)
                {
                    this.txt_ResultCode.Text = result.resultCode;
                    this.txt_Content.Text    = result.resultContext;
                    this.txt_ResultInfo.Text = eSDKServiceHelper.GetJsonString(result);
                    if (result.resultCode == "0")
                    {
                        this.WriteLog("call del account success.");
                    }
                    else
                    {
                        this.WriteLog("call del account failed," + result.resultContext);
                    }
                }
                else
                {
                    this.WriteLog("call del account fail,response is null.");
                }
            }
            catch (Exception ex)
            {
                this.WriteLog("call del account fail," + ex.Message);
            }
        }
예제 #3
0
        /// <summary>
        /// 删除账户
        /// </summary>
        /// <param name="info"></param>
        /// <returns></returns>
        public CommentResponse DelAccount(DelAccountInfo info)
        {
            CommentResponse result = eSDKServiceHelper.delAccount(info);

            return(result);
        }