Search in sources :

Example 6 with SetSpecialDaysRequest

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

the class SetSpecialDaysRequestFactory method fromParameterMap.

public static SetSpecialDaysRequest fromParameterMap(final Map<String, String> requestParameters) {
    final SetSpecialDaysRequest setSpecialDaysRequest = new SetSpecialDaysRequest();
    setSpecialDaysRequest.setDeviceIdentification(requestParameters.get(PlatformSmartmeteringKeys.KEY_DEVICE_IDENTIFICATION));
    setSpecialDaysRequest.setSpecialDaysRequestData(fetchSpecialDays());
    return setSpecialDaysRequest;
}
Also used : SetSpecialDaysRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.SetSpecialDaysRequest)

Aggregations

SetSpecialDaysRequest (org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.SetSpecialDaysRequest)6 Test (org.junit.jupiter.api.Test)4 SpecialDaysRequestData (org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.SpecialDaysRequestData)4 SpecialDaysRequest (org.opensmartgridplatform.domain.core.valueobjects.smartmetering.SpecialDaysRequest)3 SpecialDay (org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.SpecialDay)2 When (io.cucumber.java.en.When)1 SetSpecialDaysAsyncResponse (org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.SetSpecialDaysAsyncResponse)1