Add encrypted notification log storage foundation
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
package se.ajpanton.notificationlog.model
|
||||
|
||||
import java.util.UUID
|
||||
|
||||
/** A rendered-notification event, not the mutable notification itself. */
|
||||
data class NotificationLogEntry(
|
||||
val id: String = UUID.randomUUID().toString(),
|
||||
val recordedAtEpochMillis: Long,
|
||||
val packageName: String,
|
||||
val appName: String,
|
||||
val action: NotificationAction,
|
||||
val contents: String?,
|
||||
)
|
||||
|
||||
enum class NotificationAction {
|
||||
APPEARED,
|
||||
ALREADY_ACTIVE,
|
||||
EDITED,
|
||||
APP_CANCELLED,
|
||||
APP_CANCELLED_ALL,
|
||||
USER_DISMISSED,
|
||||
USER_DISMISSED_ALL,
|
||||
USER_CLICKED,
|
||||
LISTENER_DISMISSED,
|
||||
LISTENER_DISMISSED_ALL,
|
||||
SNOOZED,
|
||||
TIMED_OUT,
|
||||
CHANNEL_BANNED,
|
||||
CHANNEL_REMOVED,
|
||||
PACKAGE_BANNED,
|
||||
PACKAGE_CHANGED,
|
||||
PACKAGE_SUSPENDED,
|
||||
PROFILE_TURNED_OFF,
|
||||
USER_STOPPED,
|
||||
GROUP_SUMMARY_CANCELLED,
|
||||
GROUP_OPTIMIZED,
|
||||
UNAUTOBUNDLED,
|
||||
BUNDLE_DISMISSED,
|
||||
CLEAR_DATA,
|
||||
ASSISTANT_CANCELLED,
|
||||
LOCKDOWN,
|
||||
SYSTEM_ERROR,
|
||||
OTHER_REMOVAL,
|
||||
}
|
||||
Reference in New Issue
Block a user