package com.ruoyi.web.modules.diagnosis.domain;

import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 问诊新消息 WebSocket/Redis 推送载荷。
 */
public class ConsultPushPayload implements Serializable
{
    private static final long serialVersionUID = 1L;

    public static final String EVENT_NEW_MESSAGE = "NEW_MESSAGE";

    private String event = EVENT_NEW_MESSAGE;

    private Long messageId;

    private Long sessionId;

    private Integer senderRole;

    private String senderName;

    private Integer msgType;

    private String content;

    private Integer mediaDuration;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date sendTime;

    private String lastMessagePreview;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastMessageTime;

    private Long vetUserId;

    private Long askerUserId;

    public String getEvent()
    {
        return event;
    }

    public void setEvent(String event)
    {
        this.event = event;
    }

    public Long getMessageId()
    {
        return messageId;
    }

    public void setMessageId(Long messageId)
    {
        this.messageId = messageId;
    }

    public Long getSessionId()
    {
        return sessionId;
    }

    public void setSessionId(Long sessionId)
    {
        this.sessionId = sessionId;
    }

    public Integer getSenderRole()
    {
        return senderRole;
    }

    public void setSenderRole(Integer senderRole)
    {
        this.senderRole = senderRole;
    }

    public String getSenderName()
    {
        return senderName;
    }

    public void setSenderName(String senderName)
    {
        this.senderName = senderName;
    }

    public Integer getMsgType()
    {
        return msgType;
    }

    public void setMsgType(Integer msgType)
    {
        this.msgType = msgType;
    }

    public String getContent()
    {
        return content;
    }

    public void setContent(String content)
    {
        this.content = content;
    }

    public Integer getMediaDuration()
    {
        return mediaDuration;
    }

    public void setMediaDuration(Integer mediaDuration)
    {
        this.mediaDuration = mediaDuration;
    }

    public Date getSendTime()
    {
        return sendTime;
    }

    public void setSendTime(Date sendTime)
    {
        this.sendTime = sendTime;
    }

    public String getLastMessagePreview()
    {
        return lastMessagePreview;
    }

    public void setLastMessagePreview(String lastMessagePreview)
    {
        this.lastMessagePreview = lastMessagePreview;
    }

    public Date getLastMessageTime()
    {
        return lastMessageTime;
    }

    public void setLastMessageTime(Date lastMessageTime)
    {
        this.lastMessageTime = lastMessageTime;
    }

    public Long getVetUserId()
    {
        return vetUserId;
    }

    public void setVetUserId(Long vetUserId)
    {
        this.vetUserId = vetUserId;
    }

    public Long getAskerUserId()
    {
        return askerUserId;
    }

    public void setAskerUserId(Long askerUserId)
    {
        this.askerUserId = askerUserId;
    }
}
