package cn.reghao.tnb.content.app.chat.model.po.chat;

import cn.reghao.jutil.jdk.web.db.BaseObject;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @author reghao
 * @date 2022-04-20 14:22:48
 */
@NoArgsConstructor
@Getter
public class ChatRecord extends BaseObject<Integer> {
    private long recordId;
    private long chatId;
    private int chatType;
    private long senderId;
    private long receiverId;
    private int msgType;
    private boolean read;
    private boolean revoke;

    public ChatRecord(long recordId, long chatId, int chatType, long senderId, long receiverId, int msgType) {
        this.recordId = recordId;
        this.chatId = chatId;
        this.chatType = chatType;
        this.senderId = senderId;
        this.receiverId = receiverId;
        this.msgType = msgType;
        this.read = false;
        this.revoke = false;
    }
}
