Ejemplo n.º 1
0
        public void Assign(WeixinResult other)
        {
            if (other == null)
                return;

            ErrorCode = other.ErrorCode;
            ErrorMsg = other.ErrorMsg;
        }
Ejemplo n.º 2
0
        public void Assign(WeixinResult other)
        {
            if (other == null)
            {
                return;
            }

            ErrorCode = other.ErrorCode;
            ErrorMsg  = other.ErrorMsg;
        }
Ejemplo n.º 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));
            }
        }
Ejemplo n.º 4
0
 public WeixinException(WeixinResult weixinResult)
     : base(weixinResult.ToString())
 {
     WeixinResult = weixinResult;
 }
Ejemplo n.º 5
0
 public WeixinException(WeixinResult weixinResult)
     : base(weixinResult.ToString())
 {
     WeixinResult = weixinResult;
 }