// Path: src/main/java/de/robertschuette/octochat/chats/Chat.java
// public abstract class Chat extends Region {
//     /**
//      * Returns a icon which indicates the chat.
//      *
//      * @return the icon path in a File object
//      */
//     public File getIcon() {
//         return new File(Util.getResourcesPath()+"/img/octo.png");
//     }
// 
//     /**
//      * Returns the actual settings of the chat.
//      *
//      * @return the chat settings
//      */
//     abstract public ChatSettings getChatSettings();
// }


import de.robertschuette.octochat.chats.Chat;
package de.robertschuette.octochat.model;


/**
 * This object stores all information about a
 * specific chat.
 *
 * @author Robert Schütte
 */
public class ChatData {
    private Chat chat;
    private String userId;
    private String userName;
    private String lastMessage;
    private String lastMessageTime;
    private boolean lastMessageUnread;
    private boolean isOnline;

    /**
     * Constructor to create a new chat data object.
     *
     * @param chat set the chat
     * @param userId id of the user
     * @param userName name of the user
     */
// Path: src/main/java/de/robertschuette/octochat/chats/Chat.java
// public abstract class Chat extends Region {
//     /**
//      * Returns a icon which indicates the chat.
//      *
//      * @return the icon path in a File object
//      */
//     public File getIcon() {
//         return new File(Util.getResourcesPath()+"/img/octo.png");
//     }
// 
//     /**
//      * Returns the actual settings of the chat.
//      *
//      * @return the chat settings
//      */
//     abstract public ChatSettings getChatSettings();
// }


// Path: src/main/java/de/robertschuette/octochat/model/ChatData.java
import de.robertschuette.octochat.chats.Chat;

package de.robertschuette.octochat.model;


/**
 * This object stores all information about a
 * specific chat.
 *
 * @author Robert Schütte
 */
public class ChatData {
    private Chat chat;
    private String userId;
    private String userName;
    private String lastMessage;
    private String lastMessageTime;
    private boolean lastMessageUnread;
    private boolean isOnline;

    /**
     * Constructor to create a new chat data object.
     *
     * @param chat set the chat
     * @param userId id of the user
     * @param userName name of the user
     */
    public ChatData(Chat chat, String userId, String userName) {