PlaguPoster/posts/src/commonMain/kotlin/repo/ReadPostsRepo.kt

13 lines
475 B
Kotlin
Raw Normal View History

2022-08-18 12:59:05 +00:00
package dev.inmo.plaguposter.posts.repo
2022-09-09 11:27:11 +00:00
import com.soywiz.klock.DateTime
2022-08-18 12:59:05 +00:00
import dev.inmo.micro_utils.repos.ReadCRUDRepo
import dev.inmo.plaguposter.posts.models.*
2022-08-20 16:26:38 +00:00
import dev.inmo.tgbotapi.types.ChatId
import dev.inmo.tgbotapi.types.MessageIdentifier
2022-08-18 12:59:05 +00:00
2022-08-20 16:26:38 +00:00
interface ReadPostsRepo : ReadCRUDRepo<RegisteredPost, PostId> {
suspend fun getIdByChatAndMessage(chatId: ChatId, messageId: MessageIdentifier): PostId?
2022-09-09 11:27:11 +00:00
suspend fun getPostCreationTime(postId: PostId): DateTime?
2022-08-20 16:26:38 +00:00
}