You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
597 B
20 lines
597 B
package com.keylesspalace.tusky.components.notifications
|
|
|
|
import android.content.Context
|
|
import com.keylesspalace.tusky.db.AccountEntity
|
|
import com.keylesspalace.tusky.entity.Notification
|
|
|
|
/**
|
|
* Shows notifications.
|
|
*/
|
|
interface Notifier {
|
|
fun show(notification: Notification, account: AccountEntity, isFirstInBatch: Boolean)
|
|
}
|
|
|
|
class SystemNotifier(
|
|
private val context: Context
|
|
) : Notifier {
|
|
override fun show(notification: Notification, account: AccountEntity, isFirstInBatch: Boolean) {
|
|
NotificationHelper.make(context, notification, account, isFirstInBatch)
|
|
}
|
|
} |