MailGroupItem.java 2.07 KB
package com.wd.foundation.bean.message;

import java.io.Serializable;

import android.text.TextUtils;

/**
 * @ProjectName: PeopleDaily
 * @ClassName: MainItem
 * @Description: 站内信分组item
 * @Author: wd
 * @CreateDate: 2023/2/2 13:45
 * @UpdateUser: wd
 * @UpdateDate: 2023/2/2 13:45
 * @UpdateRemark: 更新说明:
 * @Version: 1.2
 */

public class MailGroupItem implements Serializable {
    /**
     *互动消息
     * */
    public static final String COMMENTS_MSG = "1";
    /**
     *预约消息
     * */
    public static final String RESERVATION_MSG = "2";
    /**
     *系统消息
     * */
    public static final String SYSTEM_MSG = "3";
    /**
     *推送消息
     * */
    public static final String PUSH_MSG = "4";
    /**
     * 订阅消息
     */
    public static final String SUBSCRIBE_MSG = "5";
    /**
     * 类型
     * */
    private String type;
    /**
     * 图标
     * */
    private int icon;
    /**
     * 标题
     * */
    private String title;
    /**
     * 描述
     */
    private String message;
    /**
     * 未读消息数据
     * */
    private int unReadNums;
    /**
     * 消息时间
     */
    private String time;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getIcon() {
        return icon;
    }

    public void setIcon(int icon) {
        this.icon = icon;
    }

    public String getTitle() {
        return title;
    }

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

    public int getUnReadNums() {
        return unReadNums;
    }

    public void setUnReadNums(int unReadNums) {
        this.unReadNums = unReadNums;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getMessage() {
        if (!TextUtils.isEmpty(message)){
            return message.trim();
        }
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}