
package com.offcn.im.demo.bean;

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

import java.io.Serializable;
import java.util.Objects;

import org.greenrobot.greendao.annotation.Generated;

@Entity
public class UserBean implements Serializable {
    private static final long serialVersionUID = 2L;
    
    @Id(autoincrement = true)
    private Long id;

    private String user_id;
    private String name;
    private String username;
    private String avatar;
    private String avatar_color;
    private String type;
    private String token;
    private String remark;

    private String group_id;
    private String group_name;

    public UserBean() {
    }

    public UserBean(String user_id, String name, String avatar) {
        this.user_id = user_id;
        this.name = name;
        this.avatar = avatar;
    }

    public UserBean(String user_id, String name, String avatar, String token) {
        this.user_id = user_id;
        this.name = name;
        this.avatar = avatar;
        this.token = token;
    }

    @Generated(hash = 1773158533)
    public UserBean(Long id, String user_id, String name, String username,
            String avatar, String avatar_color, String type, String token,
            String remark, String group_id, String group_name) {
        this.id = id;
        this.user_id = user_id;
        this.name = name;
        this.username = username;
        this.avatar = avatar;
        this.avatar_color = avatar_color;
        this.type = type;
        this.token = token;
        this.remark = remark;
        this.group_id = group_id;
        this.group_name = group_name;
    }

    public String getGroup_id() {
        return group_id;
    }

    public void setGroup_id(String group_id) {
        this.group_id = group_id;
    }

    public String getGroup_name() {
        return group_name;
    }

    public void setGroup_name(String group_name) {
        this.group_name = group_name;
    }

    public String getUser_id() {
        return this.user_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUsername() {
        return this.username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getAvatar() {
        return this.avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getToken() {
        return this.token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }


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

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

    public String getAvatar_color() {
        return this.avatar_color;
    }

    public void setAvatar_color(String avatar_color) {
        this.avatar_color = avatar_color;
    }

    public String getType() {
        return this.type;
    }

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

    @Override
    public String toString() {
        return "UserBean{" +
                "id=" + id +
                ", user_id='" + user_id + '\'' +
                ", name='" + name + '\'' +
                ", username='" + username + '\'' +
                ", avatar='" + avatar + '\'' +
                ", avatar_color='" + avatar_color + '\'' +
                ", type='" + type + '\'' +
                ", token='" + token + '\'' +
                ", remark='" + remark + '\'' +
                ", group_id='" + group_id + '\'' +
                ", group_name='" + group_name + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UserBean userBean = (UserBean) o;
        return user_id.equals(userBean.user_id);
    }

    @Override
    public int hashCode() {
        return Objects.hash(user_id);
    }
}
