25 namespace catapult {
namespace model {
47 return static_cast<NotificationType>(
48 static_cast<uint32_t>(channel) << 24 |
49 static_cast<uint32_t>(facility) << 16 |
54 #define DEFINE_NOTIFICATION_TYPE(CHANNEL, FACILITY, DESCRIPTION, CODE) \
55 constexpr auto FACILITY##_##DESCRIPTION##_Notification = model::MakeNotificationType( \
56 (model::NotificationChannel::CHANNEL), \
57 (model::FacilityCode::FACILITY), \
72 type = static_cast<NotificationType>(
85 #define DEFINE_CORE_NOTIFICATION(DESCRIPTION, CODE, CHANNEL) DEFINE_NOTIFICATION_TYPE(CHANNEL, Core, DESCRIPTION, CODE)
126 #undef DEFINE_CORE_NOTIFICATION