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
The LpwanEncoderInputData class represents the format and content of the request coming in for encoding a device command.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionLpwanEncoderInputData
(@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
Modifier and TypeMethodDescription@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 deviceMethods inherited from class com.cumulocity.microservice.customencoders.api.model.EncoderInputData
fromMap
Methods inherited from class com.cumulocity.rest.representation.BaseResourceRepresentation
getSelf, getSelfDecoded, setSelf, toJSON, toString
-
Field Details
-
SOURCE_DEVICE_EUI_KEY
- See Also:
-
-
Constructor Details
-
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 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
-