diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpXmlMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpXmlMessage.java index db86e6f3..01317d0f 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpXmlMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpXmlMessage.java @@ -489,6 +489,45 @@ public class WxCpXmlMessage { this.sendLocationInfo = sendLocationInfo; } + @Override + public String toString() { + return "WxCpXmlMessage{" + + "agentId=" + agentId + + ", toUserName='" + toUserName + '\'' + + ", fromUserName='" + fromUserName + '\'' + + ", createTime=" + createTime + + ", msgType='" + msgType + '\'' + + ", content='" + content + '\'' + + ", msgId=" + msgId + + ", picUrl='" + picUrl + '\'' + + ", mediaId='" + mediaId + '\'' + + ", format='" + format + '\'' + + ", thumbMediaId='" + thumbMediaId + '\'' + + ", locationX=" + locationX + + ", locationY=" + locationY + + ", scale=" + scale + + ", label='" + label + '\'' + + ", title='" + title + '\'' + + ", description='" + description + '\'' + + ", url='" + url + '\'' + + ", event='" + event + '\'' + + ", eventKey='" + eventKey + '\'' + + ", ticket='" + ticket + '\'' + + ", latitude=" + latitude + + ", longitude=" + longitude + + ", precision=" + precision + + ", recognition='" + recognition + '\'' + + ", status='" + status + '\'' + + ", totalCount=" + totalCount + + ", filterCount=" + filterCount + + ", sentCount=" + sentCount + + ", errorCount=" + errorCount + + ", scanCodeInfo=" + scanCodeInfo + + ", sendPicsInfo=" + sendPicsInfo + + ", sendLocationInfo=" + sendLocationInfo + + '}'; + } + @XStreamAlias("ScanCodeInfo") public static class ScanCodeInfo { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/WxMpXmlMessage.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/WxMpXmlMessage.java index 1996e4f2..8e7bacf2 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/WxMpXmlMessage.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/WxMpXmlMessage.java @@ -619,4 +619,41 @@ public class WxMpXmlMessage { } } + @Override + public String toString() { + return "WxMpXmlMessage{" + + "toUserName='" + toUserName + '\'' + + ", fromUserName='" + fromUserName + '\'' + + ", createTime=" + createTime + + ", msgType='" + msgType + '\'' + + ", content='" + content + '\'' + + ", msgId=" + msgId + + ", picUrl='" + picUrl + '\'' + + ", mediaId='" + mediaId + '\'' + + ", format='" + format + '\'' + + ", thumbMediaId='" + thumbMediaId + '\'' + + ", locationX=" + locationX + + ", locationY=" + locationY + + ", scale=" + scale + + ", label='" + label + '\'' + + ", title='" + title + '\'' + + ", description='" + description + '\'' + + ", url='" + url + '\'' + + ", event='" + event + '\'' + + ", eventKey='" + eventKey + '\'' + + ", ticket='" + ticket + '\'' + + ", latitude=" + latitude + + ", longitude=" + longitude + + ", precision=" + precision + + ", recognition='" + recognition + '\'' + + ", status='" + status + '\'' + + ", totalCount=" + totalCount + + ", filterCount=" + filterCount + + ", sentCount=" + sentCount + + ", errorCount=" + errorCount + + ", scanCodeInfo=" + scanCodeInfo + + ", sendPicsInfo=" + sendPicsInfo + + ", sendLocationInfo=" + sendLocationInfo + + '}'; + } }