NotificationHandler#

class wattson.hosts.ccx.app_gateway.handlers.notification_handler.NotificationHandler(app_gateway: AppGatewayClient)#

Bases: ABC

Methods

__init__

handle

Attempts to handle the given notification.

set_priority

Attributes

priority

__init__(app_gateway: AppGatewayClient)#
handle(notification: AppGatewayNotification) bool#

Attempts to handle the given notification. If it is handled, True should be returned. If it is not handled, False should be returned.

Parameters:

notification (AppGatewayNotification) – The received AppGatewayNotification

Returns:

Whether the notification has been handled

Return type:

bool