public void Assign(WeixinResult other)
        {
            if (other == null)
                return;

            ErrorCode = other.ErrorCode;
            ErrorMsg = other.ErrorMsg;
        }
Exemple #2
0
        public void Assign(WeixinResult other)
        {
            if (other == null)
            {
                return;
            }

            ErrorCode = other.ErrorCode;
            ErrorMsg  = other.ErrorMsg;
        }
Exemple #3
0
        internal static DownloadMediaData InternalDownloadData(string url)
        {
            WebResponse response = NetUtil.HttpGet(new Uri(url));

            if (response.ContentType == "text/plain")
            {
                WeixinResult result = new WeixinResult();
                return(new DownloadMediaData(NetUtil.ReadObjectFromResponse(response, null, result)));
            }
            else
            {
                byte[] data = NetUtil.GetResponseData(response);
                return(new DownloadMediaData(data));
            }
        }
 public WeixinException(WeixinResult weixinResult)
     : base(weixinResult.ToString())
 {
     WeixinResult = weixinResult;
 }
Exemple #5
0
 public WeixinException(WeixinResult weixinResult)
     : base(weixinResult.ToString())
 {
     WeixinResult = weixinResult;
 }