Search in sources :

Example 1 with GetMetaNotificationActionHandler

use of com.willshex.blogwt.server.api.notification.action.GetMetaNotificationActionHandler in project blogwt by billy1380.

the class NotificationJsonServlet method processAction.

@Override
protected String processAction(String action, JsonObject request) {
    String output = "null";
    if ("UpdateMetaNotification".equals(action)) {
        UpdateMetaNotificationRequest input = new UpdateMetaNotificationRequest();
        input.fromJson(request);
        output = new UpdateMetaNotificationActionHandler().handle(input).toString();
    } else if ("AddMetaNotification".equals(action)) {
        AddMetaNotificationRequest input = new AddMetaNotificationRequest();
        input.fromJson(request);
        output = new AddMetaNotificationActionHandler().handle(input).toString();
    } else if ("GetMetaNotification".equals(action)) {
        GetMetaNotificationRequest input = new GetMetaNotificationRequest();
        input.fromJson(request);
        output = new GetMetaNotificationActionHandler().handle(input).toString();
    } else if ("GetNotifications".equals(action)) {
        GetNotificationsRequest input = new GetNotificationsRequest();
        input.fromJson(request);
        output = new GetNotificationsActionHandler().handle(input).toString();
    } else if ("GetMetaNotifications".equals(action)) {
        GetMetaNotificationsRequest input = new GetMetaNotificationsRequest();
        input.fromJson(request);
        output = new GetMetaNotificationsActionHandler().handle(input).toString();
    } else if ("GetNotificationSettings".equals(action)) {
        GetNotificationSettingsRequest input = new GetNotificationSettingsRequest();
        input.fromJson(request);
        output = new GetNotificationSettingsActionHandler().handle(input).toString();
    } else if ("SendAdhocNotification".equals(action)) {
        SendAdhocNotificationRequest input = new SendAdhocNotificationRequest();
        input.fromJson(request);
        output = new SendAdhocNotificationActionHandler().handle(input).toString();
    } else if ("UpdateNotificationSettings".equals(action)) {
        UpdateNotificationSettingsRequest input = new UpdateNotificationSettingsRequest();
        input.fromJson(request);
        output = new UpdateNotificationSettingsActionHandler().handle(input).toString();
    } else if ("SetPushToken".equals(action)) {
        SetPushTokenRequest input = new SetPushTokenRequest();
        input.fromJson(request);
        output = new SetPushTokenActionHandler().handle(input).toString();
    }
    return output;
}
Also used : GetNotificationSettingsActionHandler(com.willshex.blogwt.server.api.notification.action.GetNotificationSettingsActionHandler) UpdateNotificationSettingsActionHandler(com.willshex.blogwt.server.api.notification.action.UpdateNotificationSettingsActionHandler) UpdateMetaNotificationActionHandler(com.willshex.blogwt.server.api.notification.action.UpdateMetaNotificationActionHandler) GetMetaNotificationsRequest(com.willshex.blogwt.shared.api.notification.call.GetMetaNotificationsRequest) GetMetaNotificationActionHandler(com.willshex.blogwt.server.api.notification.action.GetMetaNotificationActionHandler) AddMetaNotificationActionHandler(com.willshex.blogwt.server.api.notification.action.AddMetaNotificationActionHandler) GetMetaNotificationRequest(com.willshex.blogwt.shared.api.notification.call.GetMetaNotificationRequest) UpdateMetaNotificationRequest(com.willshex.blogwt.shared.api.notification.call.UpdateMetaNotificationRequest) SendAdhocNotificationActionHandler(com.willshex.blogwt.server.api.notification.action.SendAdhocNotificationActionHandler) GetNotificationsActionHandler(com.willshex.blogwt.server.api.notification.action.GetNotificationsActionHandler) GetMetaNotificationsActionHandler(com.willshex.blogwt.server.api.notification.action.GetMetaNotificationsActionHandler) GetNotificationSettingsRequest(com.willshex.blogwt.shared.api.notification.call.GetNotificationSettingsRequest) GetNotificationsRequest(com.willshex.blogwt.shared.api.notification.call.GetNotificationsRequest) SetPushTokenActionHandler(com.willshex.blogwt.server.api.notification.action.SetPushTokenActionHandler) UpdateNotificationSettingsRequest(com.willshex.blogwt.shared.api.notification.call.UpdateNotificationSettingsRequest) AddMetaNotificationRequest(com.willshex.blogwt.shared.api.notification.call.AddMetaNotificationRequest) SendAdhocNotificationRequest(com.willshex.blogwt.shared.api.notification.call.SendAdhocNotificationRequest) SetPushTokenRequest(com.willshex.blogwt.shared.api.notification.call.SetPushTokenRequest)

Aggregations

AddMetaNotificationActionHandler (com.willshex.blogwt.server.api.notification.action.AddMetaNotificationActionHandler)1 GetMetaNotificationActionHandler (com.willshex.blogwt.server.api.notification.action.GetMetaNotificationActionHandler)1 GetMetaNotificationsActionHandler (com.willshex.blogwt.server.api.notification.action.GetMetaNotificationsActionHandler)1 GetNotificationSettingsActionHandler (com.willshex.blogwt.server.api.notification.action.GetNotificationSettingsActionHandler)1 GetNotificationsActionHandler (com.willshex.blogwt.server.api.notification.action.GetNotificationsActionHandler)1 SendAdhocNotificationActionHandler (com.willshex.blogwt.server.api.notification.action.SendAdhocNotificationActionHandler)1 SetPushTokenActionHandler (com.willshex.blogwt.server.api.notification.action.SetPushTokenActionHandler)1 UpdateMetaNotificationActionHandler (com.willshex.blogwt.server.api.notification.action.UpdateMetaNotificationActionHandler)1 UpdateNotificationSettingsActionHandler (com.willshex.blogwt.server.api.notification.action.UpdateNotificationSettingsActionHandler)1 AddMetaNotificationRequest (com.willshex.blogwt.shared.api.notification.call.AddMetaNotificationRequest)1 GetMetaNotificationRequest (com.willshex.blogwt.shared.api.notification.call.GetMetaNotificationRequest)1 GetMetaNotificationsRequest (com.willshex.blogwt.shared.api.notification.call.GetMetaNotificationsRequest)1 GetNotificationSettingsRequest (com.willshex.blogwt.shared.api.notification.call.GetNotificationSettingsRequest)1 GetNotificationsRequest (com.willshex.blogwt.shared.api.notification.call.GetNotificationsRequest)1 SendAdhocNotificationRequest (com.willshex.blogwt.shared.api.notification.call.SendAdhocNotificationRequest)1 SetPushTokenRequest (com.willshex.blogwt.shared.api.notification.call.SetPushTokenRequest)1 UpdateMetaNotificationRequest (com.willshex.blogwt.shared.api.notification.call.UpdateMetaNotificationRequest)1 UpdateNotificationSettingsRequest (com.willshex.blogwt.shared.api.notification.call.UpdateNotificationSettingsRequest)1