use of me.perrycate.groupmeutils.data.Message in project groupme-utils by TheGuyWithTheFace.
the class MessageIterator method loadMessages.
// Pops the next set of messages out of storage. If no messages are
// avilable, returns an empty array.
private Message[] loadMessages() {
if (storage.isEmpty()) {
return new Message[0];
}
Object o = ByteConverter.bytesToObject(storage.removeFirst());
GroupMessages gm = (GroupMessages) o;
return gm.getMessages();
}
Aggregations