public class OCastRawDeviceLayer
Represents an OCast device layer containing a raw message (i.e. the data property of message is a String).
| Constructor and Description |
|---|
OCastRawDeviceLayer(java.lang.String source,
java.lang.String destination,
OCastRawDeviceLayer.Type type,
OCastRawDeviceLayer.Status status,
long identifier,
OCastRawApplicationLayer message)
Creates an instance of
class OCastRawDeviceLayer. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDestination()
The component to which the message is sent to.
|
long |
getIdentifier()
The message identifier.
|
OCastRawApplicationLayer |
getMessage()
The raw message to send.
|
java.lang.String |
getSource()
The component which sends the message.
|
OCastRawDeviceLayer.Status |
getStatus()
The device layer transport status.
|
OCastRawDeviceLayer.Type |
getType()
The type of message.
|
public OCastRawDeviceLayer(@Nullable
java.lang.String source,
@Nullable
java.lang.String destination,
@NotNull
OCastRawDeviceLayer.Type type,
@Nullable
OCastRawDeviceLayer.Status status,
long identifier,
@NotNull
OCastRawApplicationLayer message)
Creates an instance of class OCastRawDeviceLayer.
source - The component which sends the message.destination - The component to which the message is sent to.type - The type of message.status - The device layer transport status. Equals to null for commands and events.identifier - The message identifier.message - The raw message to send.class OCastRawDeviceLayer@Nullable public java.lang.String getSource()
The component which sends the message.
@Nullable public java.lang.String getDestination()
The component to which the message is sent to.
@NotNull public OCastRawDeviceLayer.Type getType()
The type of message.
@Nullable public OCastRawDeviceLayer.Status getStatus()
The device layer transport status.
Equals to null for commands and events.
public long getIdentifier()
The message identifier.
@NotNull public OCastRawApplicationLayer getMessage()
The raw message to send.