package com.abbidot.tracker.bean

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Ignore
import com.abbidot.tracker.constant.MultipleEntity
import com.abbidot.tracker.database.MyDatabase

/**
 *Created  by .yzq on 2022/2/24/024.
 * @link
 * @description:消息列表
 */
@Entity(tableName = MyDatabase.MessageTableName, primaryKeys = ["messageId"])
data class MessageBean(
    @ColumnInfo var messageId: String,
    @ColumnInfo var title: String,
    @ColumnInfo var message: String,
    @ColumnInfo var sendTime: String,
    @ColumnInfo var messageType: Int,
    @ColumnInfo var imgUrl: String,
    @ColumnInfo var isRead: Boolean,
    @Ignore @MultipleEntity var isContainImg: Int,
    @Ignore var isSelect: Boolean
) {
    constructor() : this("", "", "", "", 1, "", false, MultipleEntity.TEXT, false)
}

