Add test for guice creation of image loader
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / core / ImageLoader.kt
1 package net.pterodactylus.sone.core
2
3 import com.google.inject.ImplementedBy
4
5 /**
6  * Component that loads images and supplies information about them.
7  */
8 @ImplementedBy(DefaultImageLoader::class)
9 interface ImageLoader {
10
11         fun toLoadedImage(link: String): LoadedImage?
12
13 }
14
15 data class LoadedImage(val link: String, val mimeType: String, val width: Int, val height: Int)