X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fdatabase%2FPostReplyProvider.kt;h=4cd0d8208641c1456c47a1b5c1a41b792620b08f;hb=62ef0f7790f226019d56f93e12f64cef1e897f72;hp=57e8df75bfb3a763efe2d370da3b0767c904b883;hpb=d920774a69518c31b5e66d36b830bcf95a5ec237;p=Sone.git diff --git a/src/main/kotlin/net/pterodactylus/sone/database/PostReplyProvider.kt b/src/main/kotlin/net/pterodactylus/sone/database/PostReplyProvider.kt index 57e8df7..4cd0d82 100644 --- a/src/main/kotlin/net/pterodactylus/sone/database/PostReplyProvider.kt +++ b/src/main/kotlin/net/pterodactylus/sone/database/PostReplyProvider.kt @@ -1,5 +1,5 @@ /* - * Sone - PostReplyProvider.java - Copyright © 2013–2016 David Roden + * Sone - PostReplyProvider.kt - Copyright © 2013–2019 David Roden * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -17,15 +17,17 @@ package net.pterodactylus.sone.database -import com.google.common.base.Optional -import net.pterodactylus.sone.data.PostReply +import com.google.inject.* +import net.pterodactylus.sone.data.* +import net.pterodactylus.sone.database.memory.* /** * Interface for objects that can provide [PostReply]s. */ +@ImplementedBy(MemoryDatabase::class) interface PostReplyProvider { - fun getPostReply(id: String): Optional + fun getPostReply(id: String): PostReply? /** * Returns all replies for the given post, order ascending by time.