Class NotificationImpl
java.lang.Object
ch.tocco.nice2.notificationcenter.impl.NotificationImpl
- All Implemented Interfaces:
Notification
- Direct Known Subclasses:
NotificationWithProgressImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.notificationcenter.api.Notification
Notification.NotificationType
-
Field Summary
Modifier and TypeFieldDescriptionprotected final PrimaryKey
protected final NotificationServiceImpl
Fields inherited from interface ch.tocco.nice2.notificationcenter.api.Notification
ACTION_NAME_KEY, CANCELLED_MESSAGE_KEY, FAILED_MESSAGE_KEY, FAILED_TITLE_KEY, FINISHED_MESSAGE_KEY, SCHEDULING_MESSAGE_KEY, STARTING_MESSAGE_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
amendMessage
(String amendMessage) getKey()
loadEntity
(Context context) void
setTaskExecution
(String taskId) void
updateMessage
(String newMessage) void
void
updateResult
(ResultBean result) void
updateTitle
(String newTitle)
-
Field Details
-
service
-
key
-
-
Constructor Details
-
NotificationImpl
-
-
Method Details
-
loadEntity
- Specified by:
loadEntity
in interfaceNotification
-
updateTitle
- Specified by:
updateTitle
in interfaceNotification
-
amendMessage
- Specified by:
amendMessage
in interfaceNotification
-
updateMessage
- Specified by:
updateMessage
in interfaceNotification
-
updateNotificationType
- Specified by:
updateNotificationType
in interfaceNotification
-
updateResult
- Specified by:
updateResult
in interfaceNotification
-
setTaskExecution
- Specified by:
setTaskExecution
in interfaceNotification
-
getKey
- Specified by:
getKey
in interfaceNotification
-