X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fdatabase%2FImageProvider.kt;fp=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fdatabase%2FImageProvider.kt;h=987c52f3af05989ef44f22a71940dbeb39154d0c;hb=53dc7c16657d8a4ceec7a14e806ab6247bac30ab;hp=0000000000000000000000000000000000000000;hpb=4a74200598acbc920892740918d2d2637c80fd1f;p=Sone.git
diff --git a/src/main/kotlin/net/pterodactylus/sone/database/ImageProvider.kt b/src/main/kotlin/net/pterodactylus/sone/database/ImageProvider.kt
new file mode 100644
index 0000000..987c52f
--- /dev/null
+++ b/src/main/kotlin/net/pterodactylus/sone/database/ImageProvider.kt
@@ -0,0 +1,31 @@
+/*
+ * Sone - ImageProvider.java - Copyright © 2013â2016 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+package net.pterodactylus.sone.database
+
+import net.pterodactylus.sone.data.Image
+
+import com.google.common.base.Optional
+
+/**
+ * Provides [Image]s.
+ */
+interface ImageProvider {
+
+ fun getImage(imageId: String): Optional
+
+}