package com.xinelu.mobile.vo.wechatappletcallback;

import lombok.Data;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;

import java.io.Serializable;

/**
 * @Description 微信小程序消息推送回调实体类
 * @Author 纪寒
 * @Date 2024-03-19 16:06:17
 * @Version 1.0
 */
@Root(name = "xml", strict = false)
@Data
public class WeChatMessagePushVO implements Serializable {
    private static final long serialVersionUID = 7102691058196437738L;
    /**
     * 小程序账号
     */
    @Element(name = "ToUserName", required = false)
    private String toUserName;

    /**
     * 用户openid
     */
    @Element(name = "FromUserName", required = false)
    private String fromUserName;

    /**
     * 时间戳
     */
    @Element(name = "CreateTime", required = false)
    private String createTime;

    /**
     * 消息类型
     */
    @Element(name = "MsgType", required = false)
    private String msgType;

    /**
     * 事件类型
     */
    @Element(name = "Event", required = false)
    private String event;

    /**
     * 当用户触发订阅消息弹框后触发时间集合
     */
    @Element(name = "SubscribeMsgPopupEvent", required = false)
    private SubscribeMsgPopupEventVO subscribeMsgPopupEvent;

    /**
     * 当用户在手机端服务通知里消息卡片右上角“...”管理消息时
     */
    @Element(name = "SubscribeMsgChangeEvent", required = false)
    private SubscribeMsgChangeEventVO subscribeMsgChangeEvent;

    /**
     * 当用户在手机端服务通知里消息卡片右上角“...”管理消息时
     */
    @Element(name = "SubscribeMsgSentEvent", required = false)
    private SubscribeMsgSentEventVO subscribeMsgSentEvent;
}
