All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.com.sceyt.chatuikit.persistence.logicimpl.message.MessageLoadRangeUpdater.kt Maven / Gradle / Ivy

package com.sceyt.chatuikit.persistence.logicimpl.message

import com.sceyt.chatuikit.persistence.dao.LoadRangeDao

class MessageLoadRangeUpdater(
        private val loadRangeDao: LoadRangeDao
) {

    suspend fun updateLoadRange(messageId: Long, start: Long, end: Long, channelId: Long) {
        if (start > end) return
        loadRangeDao.updateLoadRanges(start = start, end = end, messageId = messageId, channelId = channelId)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy