package de.gultsch.chat; import java.util.ArrayList; public class Conversation { private String name; private ArrayList msgs = new ArrayList(); public Conversation(String name) { this.name = name; } public ArrayList getLastMessages(int count, int offset) { msgs.add(new Message("this is my last message")); return msgs; } public String getName() { return this.name; } }