Class LpwanDecoderInputData
java.lang.Object
com.cumulocity.rest.representation.BaseResourceRepresentation
com.cumulocity.microservice.customdecoders.api.model.DecoderInputData
com.cumulocity.microservice.lpwan.codec.decoder.model.LpwanDecoderInputData
- All Implemented Interfaces:
com.cumulocity.rest.representation.ResourceRepresentation
,Serializable
The LpwanDecoderInputData class represents the format and content of the request coming in for decoding a device data.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionLpwanDecoderInputData
(@NotBlank String sourceDeviceId, @NotBlank String sourceDeviceEui, @NotNull DeviceInfo sourceDeviceInfo, @NotBlank String inputData, @Null Integer fport, @Null Long updateTime) Instantiates a new LpwanDecoderInputData.LpwanDecoderInputData
(@NotBlank String inputData, @NotNull com.cumulocity.model.idtype.GId sourceDeviceId, @NotNull Map<String, String> args) Instantiates a new LpwanDecoderInputData. -
Method Summary
Modifier and TypeMethodDescription@Null Integer
getFport()
Gets f-port.@NotBlank String
Gets the source device eui@NotNull DeviceInfo
Gets the source device info that contains the information about the device such as Manufacturer or model of the device@Null Long
Gets update time.Methods inherited from class com.cumulocity.microservice.customdecoders.api.model.DecoderInputData
equals, fromMap, hashCode
Methods inherited from class com.cumulocity.rest.representation.BaseResourceRepresentation
getSelf, getSelfDecoded, setSelf, toJSON, toString
-
Field Details
-
SOURCE_DEVICE_EUI_KEY
- See Also:
-
FPORT_KEY
- See Also:
-
UPDATE_TIME_KEY
- See Also:
-
-
Constructor Details
-
LpwanDecoderInputData
public LpwanDecoderInputData(@NotBlank @NotBlank String sourceDeviceId, @NotBlank @NotBlank String sourceDeviceEui, @NotNull @NotNull DeviceInfo sourceDeviceInfo, @NotBlank @NotBlank String inputData, @Null @Null Integer fport, @Null @Null Long updateTime) Instantiates a new LpwanDecoderInputData.- Parameters:
sourceDeviceId
- the managed object id of the devicesourceDeviceEui
- represents the eui of the devicesourceDeviceInfo
- contains the information about the device such as Manufacturer or model of the deviceinputData
- represents the actual payload data as a HEX stringfport
- represents the port number received as an inputupdateTime
- represents the Date and Time when the payload is sent
-
LpwanDecoderInputData
public LpwanDecoderInputData(@NotBlank @NotBlank String inputData, @NotNull @NotNull com.cumulocity.model.idtype.GId sourceDeviceId, @NotNull @NotNull Map<String, String> args) Instantiates a new LpwanDecoderInputData.- Parameters:
inputData
- represents the actual payload data as a HEX stringsourceDeviceId
- the managed object id of the deviceargs
- represents the properties
-
-
Method Details
-
getSourceDeviceEui
Gets the source device eui- Returns:
- the source device eui
-
getSourceDeviceInfo
Gets the source device info that contains the information about the device such as Manufacturer or model of the device- Returns:
- the source device info
-
getUpdateTime
Gets update time.- Returns:
- the update time
-
getFport
Gets f-port.- Returns:
- the f-port
-