diff options
author | Daniel Gultsch <daniel.gultsch@rwth-aachen.de> | 2014-01-24 02:04:05 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel.gultsch@rwth-aachen.de> | 2014-01-24 02:04:05 +0100 |
commit | 35f8ab58f4b6f97f02031b056d2a5f6f993672cf (patch) | |
tree | f3b9cda64e6e08337a44588a564d5194fe8b3225 /src/de/gultsch/chat/Conversation.java |
inital commit
Diffstat (limited to 'src/de/gultsch/chat/Conversation.java')
-rw-r--r-- | src/de/gultsch/chat/Conversation.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/de/gultsch/chat/Conversation.java b/src/de/gultsch/chat/Conversation.java new file mode 100644 index 00000000..cec96a35 --- /dev/null +++ b/src/de/gultsch/chat/Conversation.java @@ -0,0 +1,21 @@ +package de.gultsch.chat; + +import java.util.ArrayList; + + +public class Conversation { + private String name; + private ArrayList<Message> msgs = new ArrayList<Message>(); + + public Conversation(String name) { + this.name = name; + } + + public ArrayList<Message> getLastMessages(int count, int offset) { + msgs.add(new Message("this is my last message")); + return msgs; + } + public String getName() { + return this.name; + } +} |