const char *const CC_PAYLOAD_LNAME = "lname";
const char *const CC_PAYLOAD_RESULT = "result";
const char *const CC_PAYLOAD_COMMAND = "command";
+const char *const CC_PAYLOAD_NOTIFICATION = "notification";
}
}
if (params) {
notification->add(params);
}
- message->set("notification", notification);
+ message->set(isc::cc::CC_PAYLOAD_NOTIFICATION, notification);
groupSendMsg(message, isc::cc::CC_GROUP_NOTIFICATION_PREFIX + group,
isc::cc::CC_INSTANCE_WILDCARD,
isc::cc::CC_TO_WILDCARD, false);
notification = [event_name]
if params is not None:
notification.append(params)
- self._session.group_sendmsg({'notification': notification},
+ self._session.group_sendmsg({CC_PAYLOAD_NOTIFICATION: notification},
CC_GROUP_NOTIFICATION_PREFIX +
notification_group,
instance=CC_INSTANCE_WILDCARD,