🎨 Add Sone.allImages accessor
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / data / Sone.kt
index 46ff336..34403a1 100644 (file)
@@ -55,3 +55,7 @@ val imageCountComparator: Comparator<Sone> =
 val Sone.allAlbums: List<Album>
        get() =
                rootAlbum.albums.flatMap(Album::allAlbums)
+
+val Sone.allImages: Collection<Image>
+       get() =
+               rootAlbum.allImages