🎨 Replace Plugin containers with Kotlin versions
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / core / SoneComparison.kt
1 package net.pterodactylus.sone.core
2
3 import net.pterodactylus.sone.data.*
4
5 class SoneComparison(private val oldSone: Sone, private val newSone: Sone) {
6
7         val newPosts: Collection<Post> get() = newSone.posts - oldSone.posts
8         val removedPosts: Collection<Post> get() = oldSone.posts - newSone.posts
9         val newPostReplies: Collection<PostReply> get() = newSone.replies - oldSone.replies
10         val removedPostReplies: Collection<PostReply> get() = oldSone.replies - newSone.replies
11
12 }