28 lines
1.2 KiB
Java
Raw Normal View History

2026-06-01 19:09:40 +08:00
package com.company.agentfoundation.integration.wecom;
2026-06-02 11:59:01 +08:00
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
2026-06-01 19:09:40 +08:00
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
2026-06-02 11:59:01 +08:00
@JsonIgnoreProperties(ignoreUnknown = true)
2026-06-01 19:09:40 +08:00
@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; }
}