public class MockNotificationListener extends Object implements INotificationListener
INotificationListener| Constructor and Description |
|---|
MockNotificationListener() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
listenAndConsume(MockActionListenerEnum actionListener,
Notification notification)
Listens and consumes a notification
|
void |
onCreateNotification(Notification notification)
Something to do when a notification is created
|
void |
onDeleteDemand(String strDemandId,
String strDemandTypeId)
Something to do on notification when a demand is deleted
|
void |
onUpdateNotification(Notification notification)
Something to do when a notification is updated
|
public void onCreateNotification(Notification notification)
onCreateNotification in interface INotificationListenernotification - the created notificationpublic void onUpdateNotification(Notification notification)
onUpdateNotification in interface INotificationListenernotification - the updated notificationpublic void onDeleteDemand(String strDemandId, String strDemandTypeId)
onDeleteDemand in interface INotificationListenerstrDemandId - the demand idstrDemandTypeId - the demand type idpublic boolean listenAndConsume(MockActionListenerEnum actionListener, Notification notification)
actionListener - the action to performnotification - the notificationtrue if the treatment is successful, false otherwiseCopyright © 2019 City of Paris. All rights reserved.