package eu.friedcutlet.yokan.services.notifications internal object NoNotifications : NotificationService { override fun supported(): Boolean = false override fun notify(payload: NotificationPayload) = Unit override fun cancel(channel: NotificationChannel, tag: String?) = Unit } internal class RecordingNotifications : NotificationService { val posted = mutableListOf() val cancelled = mutableListOf>() var permissionRequests = 0 override fun supported() = true override fun requestPermission() { permissionRequests++ } override fun notify(payload: NotificationPayload) { posted += payload } override fun cancel(channel: NotificationChannel, tag: String?) { cancelled += channel to tag } }