Send a INotification.
Convenience method to prevent having to construct new notification instances in our implementation code.
The name of the notification to send.
Optionalbody: anyOptional data associated with the notification.
Optionaltype: stringOptional type of the notification.
INotifierThe interface definition for a PureMVCNotifier.MacroCommand,Command,MediatorandProxyall have a need to sendNotifications.The
INotifierinterface provides a common method calledsendNotificationthat relieves implementation code of the necessity to actually constructNotifications.The
Notifierclass, which all the above-mentioned classes extend, also provides an initialized reference to theFacadeSingleton, which is required for the convenience method for sendingNotifications, but also eases implementation as these classes have frequentFacadeinteractions and usually require access to the facade anyway.INotifier