Search in sources :

Example 1 with GetPushNotificationAlarmAsyncRequest

use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.GetPushNotificationAlarmAsyncRequest in project open-smart-grid-platform by OSGP.

the class SmartMeteringConfigurationClient method getPushNotificationAlarm.

public GetPushNotificationAlarmResponse getPushNotificationAlarm() throws WebServiceSecurityException {
    final Notification notification = this.waitForNotification(NotificationType.PUSH_NOTIFICATION_ALARM);
    final GetPushNotificationAlarmAsyncRequest request = new GetPushNotificationAlarmAsyncRequest();
    request.setCorrelationUid(notification.getCorrelationUid());
    request.setDeviceIdentification(notification.getDeviceIdentification());
    return (GetPushNotificationAlarmResponse) this.getTemplate().marshalSendAndReceive(request);
}
Also used : GetPushNotificationAlarmResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.GetPushNotificationAlarmResponse) GetPushNotificationAlarmAsyncRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.GetPushNotificationAlarmAsyncRequest) Notification(org.opensmartgridplatform.adapter.ws.schema.smartmetering.notification.Notification)

Aggregations

GetPushNotificationAlarmAsyncRequest (org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.GetPushNotificationAlarmAsyncRequest)1 GetPushNotificationAlarmResponse (org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.GetPushNotificationAlarmResponse)1 Notification (org.opensmartgridplatform.adapter.ws.schema.smartmetering.notification.Notification)1