Class MultiUserChat
public list<Packet> getPreviousMessages(int Amount){
list<Packet> messages = new List<Packet>();
//logic to obtain messages and add to list using int to get a specific amount of messages
return messages;
}
This would mainly be helpful to devs on android. When rotating the screen you lose the listview containing all previous messages. Leaving and rejoining the room will do this but you have to leave everytime the screen is rotated.
thoughts flow?