diff options
Diffstat (limited to 'common/commands')
-rw-r--r-- | common/commands/notification.fbs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/common/commands/notification.fbs b/common/commands/notification.fbs index 8750ff5..c82fad3 100644 --- a/common/commands/notification.fbs +++ b/common/commands/notification.fbs | |||
@@ -1,13 +1,10 @@ | |||
1 | namespace Sink.Commands; | 1 | namespace Sink.Commands; |
2 | 2 | ||
3 | enum NotificationType : byte { Shutdown = 1, Status, Warning, Progress, Inspection, RevisionUpdate } | ||
4 | enum NotificationCode : byte { Success = 0, Failure = 1, UserCode } | ||
5 | |||
6 | table Notification { | 3 | table Notification { |
7 | type: NotificationType = Status; | 4 | type: int = 0; //See notification.h |
8 | identifier: string; //An identifier that links back to the something related to the notification (e.g. an entity id or a command id) | 5 | identifier: string; //An identifier that links back to the something related to the notification (e.g. an entity id or a command id) |
9 | message: string; | 6 | message: string; |
10 | code: int = 0; //Of type NotificationCode | 7 | code: int = 0; //See notification.h |
11 | } | 8 | } |
12 | 9 | ||
13 | root_type Notification; | 10 | root_type Notification; |