package com.sikey.wa04.business.domain.entity.message;

import com.sikey.wa04.business.domain.entity.websocket.Ack;
import com.sikey.wa04.common.enums.MessageStatus;
import lombok.*;
import lombok.experimental.Accessors;

import java.time.Instant;

/**
 * 消息接受记录
 *
 * @author luoyangwei
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class MessageReceivedLog {

    /**
     * 消息读取人
     */
    private String receiverId;

    /**
     * ack id
     */
    private Long ackId;

    /**
     * 消息状态
     *
     * @see MessageStatus
     */
    private MessageStatus status;

    /**
     * 读取消息时间
     */
    private Instant receivedTime;
}
