Class LpwanEncoderInputData
- java.lang.Object
-
- com.cumulocity.rest.representation.BaseResourceRepresentation
-
- com.cumulocity.microservice.customencoders.api.model.EncoderInputData
-
- com.cumulocity.microservice.lpwan.codec.encoder.model.LpwanEncoderInputData
-
- All Implemented Interfaces:
com.cumulocity.rest.representation.ResourceRepresentation
,Serializable
public class LpwanEncoderInputData extends EncoderInputData
The LpwanEncoderInputData class represents the format and content of the request coming in for encoding a device command.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
SOURCE_DEVICE_EUI_KEY
-
Constructor Summary
Constructors Constructor Description LpwanEncoderInputData(@NotBlank com.cumulocity.model.idtype.GId sourceDeviceId, @NotBlank String commandName, @Null String commandData, @NotNull Map<String,String> args)
Instantiates a new LpwanEncoderInputData.LpwanEncoderInputData(@NotBlank String sourceDeviceId, @NotBlank String sourceDeviceEui, @NotNull DeviceInfo sourceDeviceInfo, @NotBlank String commandName, @Null String commandData)
Instantiates a new LpwanEncoderInputData.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @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-
Methods inherited from class com.cumulocity.microservice.customencoders.api.model.EncoderInputData
fromMap
-
-
-
-
Field Detail
-
SOURCE_DEVICE_EUI_KEY
public static final String SOURCE_DEVICE_EUI_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LpwanEncoderInputData
public LpwanEncoderInputData(@NotBlank @NotBlank String sourceDeviceId, @NotBlank @NotBlank String sourceDeviceEui, @NotNull @NotNull DeviceInfo sourceDeviceInfo, @NotBlank @NotBlank String commandName, @Null @Null String commandData)
Instantiates a new LpwanEncoderInputData.- 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 and/or the supported commands of the devicecommandName
- the name of the command to be encodedcommandData
- the text of the command to be encoded
-
LpwanEncoderInputData
public LpwanEncoderInputData(@NotBlank @NotBlank com.cumulocity.model.idtype.GId sourceDeviceId, @NotBlank @NotBlank String commandName, @Null @Null String commandData, @NotNull @NotNull Map<String,String> args)
Instantiates a new LpwanEncoderInputData.- Parameters:
sourceDeviceId
- the managed object id of the devicecommandName
- the name of the command to be encodedcommandData
- the text of the command to be encodedargs
- 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
-
-