blob: cec96a3550cbad2ce53ef5763047a2a1158a2c42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;
}
}
|