Search in sources :

Example 1 with ResumeScheduleAsyncRequest

use of org.opensmartgridplatform.adapter.ws.schema.publiclighting.adhocmanagement.ResumeScheduleAsyncRequest in project open-smart-grid-platform by OSGP.

the class ResumeScheduleSteps method getResponseWithCorrelationUID.

private ResumeScheduleResponse getResponseWithCorrelationUID(final String deviceIdentification, final String correlationUID) throws InterruptedException, SoapFaultClientException {
    final ResumeScheduleAsyncRequest request = new ResumeScheduleAsyncRequest();
    final AsyncRequest asyncRequest = new AsyncRequest();
    asyncRequest.setDeviceId(deviceIdentification);
    asyncRequest.setCorrelationUid(correlationUID);
    request.setAsyncRequest(asyncRequest);
    return Wait.untilAndReturn(() -> {
        final ResumeScheduleResponse retval = this.client.getResumeScheduleResponse(request);
        assertThat(retval).isNotNull();
        return retval;
    });
}
Also used : ResumeScheduleAsyncRequest(org.opensmartgridplatform.adapter.ws.schema.publiclighting.adhocmanagement.ResumeScheduleAsyncRequest) AsyncRequest(org.opensmartgridplatform.adapter.ws.schema.publiclighting.common.AsyncRequest) ResumeScheduleAsyncRequest(org.opensmartgridplatform.adapter.ws.schema.publiclighting.adhocmanagement.ResumeScheduleAsyncRequest) ResumeScheduleResponse(org.opensmartgridplatform.adapter.ws.schema.publiclighting.adhocmanagement.ResumeScheduleResponse)

Aggregations

ResumeScheduleAsyncRequest (org.opensmartgridplatform.adapter.ws.schema.publiclighting.adhocmanagement.ResumeScheduleAsyncRequest)1 ResumeScheduleResponse (org.opensmartgridplatform.adapter.ws.schema.publiclighting.adhocmanagement.ResumeScheduleResponse)1 AsyncRequest (org.opensmartgridplatform.adapter.ws.schema.publiclighting.common.AsyncRequest)1