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
public class LpwanDecoderInputData extends DecoderInputData
The LpwanDecoderInputData class represents the format and content of the request coming in for decoding a device data.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
FPORT_KEY
static String
SOURCE_DEVICE_EUI_KEY
static String
UPDATE_TIME_KEY
-
Constructor Summary
Constructors Constructor Description LpwanDecoderInputData(@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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Null Integer
getFport()
Gets f-port.@NotBlank String
getSourceDeviceEui()
Gets the source device eui@NotNull DeviceInfo
getSourceDeviceInfo()
Gets the source device info that contains the information about the device such as Manufacturer or model of the device@Null Long
getUpdateTime()
Gets update time.-
Methods inherited from class com.cumulocity.microservice.customdecoders.api.model.DecoderInputData
equals, fromMap, hashCode
-
-
-
-
Field Detail
-
SOURCE_DEVICE_EUI_KEY
public static final String SOURCE_DEVICE_EUI_KEY
- See Also:
- Constant Field Values
-
FPORT_KEY
public static final String FPORT_KEY
- See Also:
- Constant Field Values
-
UPDATE_TIME_KEY
public static final String UPDATE_TIME_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 Detail
-
getSourceDeviceEui
@NotBlank public @NotBlank String getSourceDeviceEui()
Gets the source device eui- Returns:
- the source device eui
-
getSourceDeviceInfo
@NotNull public @NotNull DeviceInfo 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
@Null public @Null Long getUpdateTime()
Gets update time.- Returns:
- the update time
-
getFport
@Null public @Null Integer getFport()
Gets f-port.- Returns:
- the f-port
-
-