@Override protected void updateValues(ConversationState rawObj) { isLoaded.change(rawObj.isLoaded()); isEmpty.change(rawObj.isEmpty()); ownReadDate.change(rawObj.getInReadDate()); ownSendDate.change(rawObj.getOutSendDate()); readDate.change(rawObj.getOutReadDate()); receiveDate.change(rawObj.getOutReceiveDate()); }
public long getLastReadMessageDate() { return Math.max(ownReadDate.get(), ownSendDate.get()); }