Skip to content

Commit

Permalink
Added m117 notification channel
Browse files Browse the repository at this point in the history
  • Loading branch information
Clon1998 committed Dec 12, 2022
1 parent 5028de7 commit 7e97ef0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/data/model/hive/machine.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ class Machine extends HiveObject {

String get statusUpdatedChannelKey => '$uuid-statusUpdates';

String get m117ChannelKey => '$uuid-m117';

String get printProgressChannelKey => '$uuid-progressUpdates';

Machine({
Expand Down
7 changes: 7 additions & 0 deletions lib/service/notification_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,13 @@ class NotificationService {
channelGroupKey: machine.uuid,
importance: NotificationImportance.Max,
defaultColor: brownish.shade500),
NotificationChannel(
channelKey: machine.m117ChannelKey,
channelName: 'User M117 Notifications - ${machine.name}',
channelDescription: 'Notifications issued by M117 with prefix "\$MR\$:".',
channelGroupKey: machine.uuid,
importance: NotificationImportance.Max,
defaultColor: brownish.shade500),
NotificationChannel(
channelKey: machine.printProgressChannelKey,
channelName: 'Print Progress Updates - ${machine.name}',
Expand Down

0 comments on commit 7e97ef0

Please sign in to comment.