Class RawDataMessageFactory

java.lang.Object
energy.eddie.api.agnostic.RawDataMessageFactory

public final class RawDataMessageFactory extends Object
Factory for creating RawDataMessage instances
  • Method Details

    • create

      public static RawDataMessage create(PermissionRequest permissionRequest, String rawPayload)
      Creates a RawDataMessage from the given permission request and raw payload.

      All message fields except timestamp and rawPayload are 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 metadata
      rawPayload - the raw data payload to include in the message
      Returns:
      a new RawDataMessage populated from the given arguments