package com.company.agentfoundation.integration.wecom; import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement; @JacksonXmlRootElement(localName = "xml") public class WecomIncomingMessage { @JacksonXmlProperty(localName = "ToUserName") private String toUserName; @JacksonXmlProperty(localName = "FromUserName") private String fromUserName; @JacksonXmlProperty(localName = "MsgType") private String msgType; @JacksonXmlProperty(localName = "Content") private String content; public String getToUserName() { return toUserName; } public void setToUserName(String toUserName) { this.toUserName = toUserName; } public String getFromUserName() { return fromUserName; } public void setFromUserName(String fromUserName) { this.fromUserName = fromUserName; } public String getMsgType() { return msgType; } public void setMsgType(String msgType) { this.msgType = msgType; } public String getContent() { return content; } public void setContent(String content) { this.content = content; } }