package io.videtur.ignis.model;

import com.google.firebase.auth.FirebaseUser;

import java.util.Map;

@SuppressWarnings("unused")
public class User {

    private String mName;
    private String mEmail;
    private String mPhotoUrl;
    private long mLastOnline;
    private Map<String, Object> connections;
    private Map<String, Object> chats;
    private Map<String, Object> unread;

    public User() {
    }

    public User(FirebaseUser firebaseUser) {
        mName = firebaseUser.getDisplayName();
        mEmail = firebaseUser.getEmail();
        if (firebaseUser.getPhotoUrl() != null) {
            mPhotoUrl = firebaseUser.getPhotoUrl().toString();
        }
    }

    public String getName() {
        return mName;
    }

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

    public String getEmail() {
        return mEmail;
    }

    public void setEmail(String mEmail) {
        this.mEmail = mEmail;
    }

    public String getPhotoUrl() {
        return mPhotoUrl;
    }

    public void setPhotoUrl(String mPhotoUrl) {
        this.mPhotoUrl = mPhotoUrl;
    }

    public long getLastOnline() {
        return mLastOnline;
    }

    public void setLastOnline(long mLastOnline) {
        this.mLastOnline = mLastOnline;
    }

    public Map<String, Object> getConnections() {
        return connections;
    }

    public void setConnections(Map<String, Object> connections) {
        this.connections = connections;
    }

    public Map<String, Object> getChats() {
        return chats;
    }

    public void setChats(Map<String, Object> chats) {
        this.chats = chats;
    }

    public Map<String, Object> getUnread() {
        return unread;
    }

    public void setUnread(Map<String, Object> unread) {
        this.unread = unread;
    }
}

package io.videtur.ignis.model;

import com.google.firebase.auth.FirebaseUser;

import java.util.Map;

@SuppressWarnings("unused")
public class User {

    private String name;
    private String email;
    private String photoUrl;
    private long lastOnline;
    private Map<String, Object> connections;
    private Map<String, Object> chats;
    private Map<String, Object> unread;

    public User() {
    }

    public User(FirebaseUser firebaseUser) {
        name = firebaseUser.getDisplayName();
        email = firebaseUser.getEmail();
        if (firebaseUser.getPhotoUrl() != null) {
            photoUrl = firebaseUser.getPhotoUrl().toString();
        }
    }

    public String getName() {
        return name;
    }

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

    public String getEmail() {
        return email;
    }

    public void setEmail(String mEmail) {
        this.email = mEmail;
    }

    public String getPhotoUrl() {
        return photoUrl;
    }

    public void setPhotoUrl(String mPhotoUrl) {
        this.photoUrl = mPhotoUrl;
    }

    public long getLastOnline() {
        return lastOnline;
    }

    public void setLastOnline(long mLastOnline) {
        this.lastOnline = mLastOnline;
    }

    public Map<String, Object> getConnections() {
        return connections;
    }

    public void setConnections(Map<String, Object> connections) {
        this.connections = connections;
    }

    public Map<String, Object> getChats() {
        return chats;
    }

    public void setChats(Map<String, Object> chats) {
        this.chats = chats;
    }

    public Map<String, Object> getUnread() {
        return unread;
    }

    public void setUnread(Map<String, Object> unread) {
        this.unread = unread;
    }
}

Make User attribute names consistent