#import <SimpleCommand.h>
Inherits Notifier, and ICommand-p.
Public Member Functions | |
| (void) | - execute: [implementation] |
| (void) | - sendNotification:body:type: [implementation] |
Static Public Member Functions | |
| (id) | + command |
ICommand implementation.
Your subclass should override the execute method where your business logic will handle the INotification.
| + (id) command |
Static Convenience Constructor.
| - (void) execute: | (id<INotification>) | notification | [implementation] |
Fulfill the use-case initiated by the given INotification.
In the Command Pattern, an application use-case typically begins with some user action, which results in an INotification being broadcast, which is handled by business logic in the execute method of an ICommand.
| notification | the INotification to handle. |
Reimplemented from < ICommand >.
| - (void) sendNotification: | (NSString *) | notificationName | ||
| body: | (id) | body | ||
| type: | (NSString *) | type | ||
[implementation] |
Create and send an INotification.
Keeps us from having to construct new INotification instances in our implementation code.
| notificationName | the name of the notiification to send | |
| body | the body of the notification | |
| type | the type of the notification |
Reimplemented from < INotifier >.
1.5.7.1