public void Assign(WeixinResult other) { if (other == null) return; ErrorCode = other.ErrorCode; ErrorMsg = other.ErrorMsg; }
public void Assign(WeixinResult other) { if (other == null) { return; } ErrorCode = other.ErrorCode; ErrorMsg = other.ErrorMsg; }
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; }
public WeixinException(WeixinResult weixinResult) : base(weixinResult.ToString()) { WeixinResult = weixinResult; }