package cn.van.business.model.wx;

/**
 * @author Leo
 * @version 1.0
 * @create 2024/11/8 下午10:58
 * @description：
 */


import lombok.Data;

import java.util.List;

/**
 * Main class representing the structure of the received WX message.
 */
@Data
public class WxEventMessage {

    private Integer event;
    private String wxid;
    private MessageData data;

    /**
     * Inner class to encapsulate the data section of the message.
     */
    @Data
    public static class MessageData {
        private String type;
        private String des;
        private EventData data;
        private Long timestamp;
        private String wxid;
        private Integer port;
        private Integer pid;
        private String flag;

        /**
         * Inner class to encapsulate the nested data section within the data.
         */
        @Data
        public static class EventData {
            private Long timeStamp;
            private Integer fromType;
            private Integer msgType;
            private Integer msgSource;
            private String fromWxid;
            private String finalFromWxid;
            private List<String> atWxidList; // List to store the WX IDs in the atWxidList array.
            private Integer silence;
            private Integer membercount;
            private String signature;
            private String msg;
            private String msgId;
            private String msgBase64;
        }
    }
}
