package com.casic.dcms.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Unique;

/**
 * @author : Pengxh
 * @time : 2021/4/15 10:03
 * @email : 290677893@qq.com
 * <p>
 * 推送消息本地持久化，便于用户查看过往的消息
 **/

@Entity
public class NoticeLocaleBean {
    @Id(autoincrement = true)
    private Long id;//主键ID

    @Unique
    private String messageId;
    private String userId;
    private String userAccount;//登录账户
    private String casePrimaryKey;//案卷主键id
    private String title;//案卷标题
    private String content;//案卷简介
    private String pushDate;//推送时间
    private String isRead;//0-已读；1-未读

    @Generated(hash = 505022675)
    public NoticeLocaleBean(Long id, String messageId, String userId,
                            String userAccount, String casePrimaryKey, String title, String content,
                            String pushDate, String isRead) {
        this.id = id;
        this.messageId = messageId;
        this.userId = userId;
        this.userAccount = userAccount;
        this.casePrimaryKey = casePrimaryKey;
        this.title = title;
        this.content = content;
        this.pushDate = pushDate;
        this.isRead = isRead;
    }

    @Generated(hash = 1054075554)
    public NoticeLocaleBean() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getMessageId() {
        return this.messageId;
    }

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

    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserAccount() {
        return this.userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    public String getCasePrimaryKey() {
        return this.casePrimaryKey;
    }

    public void setCasePrimaryKey(String casePrimaryKey) {
        this.casePrimaryKey = casePrimaryKey;
    }

    public String getTitle() {
        return this.title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return this.content;
    }

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

    public String getPushDate() {
        return this.pushDate;
    }

    public void setPushDate(String pushDate) {
        this.pushDate = pushDate;
    }

    public String getIsRead() {
        return this.isRead;
    }

    public void setIsRead(String isRead) {
        this.isRead = isRead;
    }
}
