Package energy.eddie.api.agnostic
Class RawDataMessageFactory
java.lang.Object
energy.eddie.api.agnostic.RawDataMessageFactory
Factory for creating
RawDataMessage instances-
Method Summary
Modifier and TypeMethodDescriptionstatic RawDataMessagecreate(PermissionRequest permissionRequest, String rawPayload) Creates aRawDataMessagefrom the given permission request and raw payload.
-
Method Details
-
create
Creates aRawDataMessagefrom the given permission request and raw payload.All message fields except
timestampandrawPayloadare sourced from the permission request. The timestamp is always set to the current UTC time at the moment of the call.- Parameters:
permissionRequest- provides the permission, connection, data need, and data source metadatarawPayload- the raw data payload to include in the message- Returns:
- a new
RawDataMessagepopulated from the given arguments
-