Package com.lucimber.dbus.message
Class InboundMethodReturn
java.lang.Object
com.lucimber.dbus.message.InboundMethodReturn
- All Implemented Interfaces:
InboundMessage,InboundReply,Message
An inbound method return message.
- Since:
- 1.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for creatingInboundMethodReturninstances. -
Constructor Summary
ConstructorsConstructorDescriptionInboundMethodReturn(DBusUInt32 serial, DBusUInt32 replySerial, DBusString sender) Constructs a new instance with mandatory parameter.InboundMethodReturn(DBusUInt32 serial, DBusUInt32 replySerial, DBusString sender, DBusSignature signature, List<? extends DBusType> payload) Constructs a new instance with all parameter. -
Method Summary
Modifier and TypeMethodDescriptionGets the payload of this D-Bus message.Gets the serial number of the message this message is a reply to.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, waitMethods inherited from interface com.lucimber.dbus.message.InboundReply
getReplySerialMethods inherited from interface com.lucimber.dbus.message.Message
getPayload, getSerial, getSignature
-
Constructor Details
-
InboundMethodReturn
Constructs a new instance with mandatory parameter.- Parameters:
serial- the serial numberreplySerial- the reply serial numbersender- the origin of this method return
-
InboundMethodReturn
public InboundMethodReturn(DBusUInt32 serial, DBusUInt32 replySerial, DBusString sender, DBusSignature signature, List<? extends DBusType> payload) Constructs a new instance with all parameter.- Parameters:
serial- the serial numberreplySerial- the reply serial numbersender- the origin of this method returnsignature- optional; the signature of the message bodypayload- optional; the message body
-
-
Method Details
-
getSender
Description copied from interface:InboundMessageGets the sender of this inbound message.- Specified by:
getSenderin interfaceInboundMessage- Returns:
- a
DBusString
-
toString
-
getReplySerial
Gets the serial number of the message this message is a reply to.- Returns:
- The serial number as an
DBusUInt32.
-
getSerial
Description copied from interface:MessageGets the serial number of this D-Bus message.- Specified by:
getSerialin interfaceMessage- Returns:
- an
DBusUInt32
-
getPayload
Description copied from interface:MessageGets the payload of this D-Bus message.- Specified by:
getPayloadin interfaceMessage- Returns:
- a
ListofDBusTypes.
-
getSignature
Description copied from interface:MessageGets the signature of the payload.- Specified by:
getSignaturein interfaceMessage- Returns:
- an
OptionalofDBusSignature
-