package com.yutou.napcat.model;

import com.alibaba.fastjson2.JSONObject;
import com.alibaba.fastjson2.annotation.JSONField;
import com.yutou.napcat.event.MessageEvent;
import com.yutou.napcat.handle.BaseHandle;
import com.yutou.okhttp.BaseBean;
import lombok.Data;

import java.lang.reflect.Type;

/**
 * 消息
 * @see <a href="https://github.com/botuniverse/onebot-11/blob/master/api/public.md#get_msg-%E8%8E%B7%E5%8F%96%E6%B6%88%E6%81%AF">文档</a>
 */
@Data
public class MessageBean extends BaseBean {
    /**
     *发送时间
     */
    @JSONField(name = "time")
    private long time;
    /**
     * 消息类型，同 <a href="https://github.com/botuniverse/onebot-11/blob/master/event/message.md">消息事件</a>
     */
    @JSONField(name = "message_type")
    private String type;
    /**
     * 消息 ID
     */
    @JSONField(name = "message_id")
    private int messageId;
    /**
     * 消息真实 ID
     */
    @JSONField(name = "real_id")
    private int realId;
    /**
     * 发送人信息，同 <a href="https://github.com/botuniverse/onebot-11/blob/master/event/message.md">消息事件</a>
     */
    @JSONField(name = "sender")
    private SenderBean sender;
    /**
     * 消息内容
     */
    @JSONField(name = "message")
    private String message;


}
