summaryrefslogtreecommitdiffstats
path: root/common/commands/notification.fbs
blob: 5c810cf40e0d2a33959160fafb19dee4a81bc146 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
namespace Akonadi2;

enum NotificationType : byte { Shutdown = 1, Status, Warning, Progress, Inspection }
enum NotificationCode : byte { Success = 0, Failure = 1, UserCode }

table Notification {
    type: NotificationType = Status;
    identifier: string; //An identifier that links back to the something related to the notification (e.g. an entity id or a command id)
    message: string;
    code: int = 0; //Of type NotificationCode
}

root_type Notification;