Class ConcreteSimplePayloadDataSupplier
- java.lang.Object
-
- io.heraldprox.herald.sensor.payload.DefaultPayloadDataSupplier
-
- io.heraldprox.herald.sensor.payload.simple.ConcreteSimplePayloadDataSupplier
-
- All Implemented Interfaces:
SimplePayloadDataSupplier
,PayloadDataSupplier
public class ConcreteSimplePayloadDataSupplier extends DefaultPayloadDataSupplier implements SimplePayloadDataSupplier
-
-
Field Summary
Fields Modifier and Type Field Description static int
payloadLength
-
Constructor Summary
Constructors Constructor Description ConcreteSimplePayloadDataSupplier(UInt8 protocolAndVersion, UInt16 countryCode, UInt16 stateCode, SecretKey secretKey)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ContactIdentifier[]
contactIdentifiers(MatchingKey matchingKey)
static SecretKey
generateSecretKey()
java.util.List<PayloadData>
payload(Data data)
PayloadData
payload(PayloadTimestamp timestamp, Device device)
-
Methods inherited from class io.heraldprox.herald.sensor.payload.DefaultPayloadDataSupplier
legacyPayload
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.heraldprox.herald.sensor.PayloadDataSupplier
legacyPayload
-
-
-
-
Field Detail
-
payloadLength
public static final int payloadLength
- See Also:
- Constant Field Values
-
-
Method Detail
-
generateSecretKey
@NonNull public static SecretKey generateSecretKey()
-
contactIdentifiers
@NonNull public static ContactIdentifier[] contactIdentifiers(@NonNull MatchingKey matchingKey)
-
payload
@NonNull public PayloadData payload(@NonNull PayloadTimestamp timestamp, @Nullable Device device)
- Specified by:
payload
in interfacePayloadDataSupplier
-
payload
@NonNull public java.util.List<PayloadData> payload(@NonNull Data data)
- Specified by:
payload
in interfacePayloadDataSupplier
- Overrides:
payload
in classDefaultPayloadDataSupplier
-
-