Package com.lucimber.dbus.message
Class InboundSignal
java.lang.Object
com.lucimber.dbus.message.InboundSignal
- All Implemented Interfaces:
InboundMessage
,Message
An inbound signal message.
- Since:
- 1.0
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionInboundSignal
(DBusUInt32 serial, DBusString sender, DBusObjectPath path, DBusString iface, DBusString member) Constructs a new instance with mandatory parameter.InboundSignal
(DBusUInt32 serial, DBusString sender, DBusObjectPath path, DBusString iface, DBusString member, DBusSignature signature, List<? extends DBusType> payload) Constructs a new instance with all parameter. -
Method Summary
Modifier and TypeMethodDescriptionGets the name of the interface, to which this signal belongs.Gets the name of this signal.Gets the object path of this signal.Gets the payload of this D-Bus message.Gets the sender of this inbound message.Gets the serial number of this D-Bus message.Gets the signature of the payload.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.lucimber.dbus.message.Message
getPayload, getSerial, getSignature
-
Constructor Details
-
InboundSignal
public InboundSignal(DBusUInt32 serial, DBusString sender, DBusObjectPath path, DBusString iface, DBusString member) Constructs a new instance with mandatory parameter.- Parameters:
serial
- the serial numbersender
- the sender of this signalpath
- the object pathiface
- the name of the D-Bus interfacemember
- the name of this signal
-
InboundSignal
public InboundSignal(DBusUInt32 serial, DBusString sender, DBusObjectPath path, DBusString iface, DBusString member, DBusSignature signature, List<? extends DBusType> payload) Constructs a new instance with all parameter.- Parameters:
serial
- the serial numbersender
- the sender of this signalpath
- the object pathiface
- the name of the D-Bus interfacemember
- the name of this signalsignature
- optional; the signature of the message bodypayload
- optional; the message body
-
-
Method Details
-
getSender
Description copied from interface:InboundMessage
Gets the sender of this inbound message.- Specified by:
getSender
in interfaceInboundMessage
- Returns:
- a
DBusString
-
toString
-
getObjectPath
Gets the object path of this signal.- Returns:
- The path as an
DBusObjectPath
.
-
getMember
Gets the name of this signal.- Returns:
- a
DBusString
-
getInterfaceName
Gets the name of the interface, to which this signal belongs.- Returns:
- a
DBusString
-
getSerial
Description copied from interface:Message
Gets the serial number of this D-Bus message.- Specified by:
getSerial
in interfaceMessage
- Returns:
- an
DBusUInt32
-
getPayload
Description copied from interface:Message
Gets the payload of this D-Bus message.- Specified by:
getPayload
in interfaceMessage
- Returns:
- a
List
ofDBusType
s.
-
getSignature
Description copied from interface:Message
Gets the signature of the payload.- Specified by:
getSignature
in interfaceMessage
- Returns:
- an
Optional
ofDBusSignature
-