Search in sources :

Example 1 with RealmRoomMessage.makeUnreadMessage

use of net.iGap.realm.RealmRoomMessage.makeUnreadMessage in project iGap-Android by KianIranian-STDG.

the class FragmentChat method unreadLayoutMessage.

/**
 * make unread layout message
 */
private void unreadLayoutMessage() {
    int unreadMessageCount = unreadCount;
    if (unreadMessageCount > 0) {
        RealmRoomMessage unreadMessage = RealmRoomMessage.makeUnreadMessage(unreadMessageCount);
        mAdapter.add(0, new UnreadMessage(mAdapter, FragmentChat.this).setMessage(MessageObject.create(unreadMessage)).withIdentifier(SUID.id().get()));
        isShowLayoutUnreadMessage = true;
    }
}
Also used : UnreadMessage(net.iGap.adapter.items.chat.UnreadMessage) RealmRoomMessage.makeUnreadMessage(net.iGap.realm.RealmRoomMessage.makeUnreadMessage) RealmRoomMessage(net.iGap.realm.RealmRoomMessage) SuppressLint(android.annotation.SuppressLint)

Aggregations

SuppressLint (android.annotation.SuppressLint)1 UnreadMessage (net.iGap.adapter.items.chat.UnreadMessage)1 RealmRoomMessage (net.iGap.realm.RealmRoomMessage)1 RealmRoomMessage.makeUnreadMessage (net.iGap.realm.RealmRoomMessage.makeUnreadMessage)1