com.meiglobal.ebds.api
Class Message

java.lang.Object
  extended by com.meiglobal.ebds.api.Message

public class Message
extends java.lang.Object

This is a wrapper class for a message. Contains details on the message.


Constructor Summary
Message(byte[] payload, boolean isSynchronous, java.lang.String description, boolean noReplyExpected)
          Default constructor.
 
Method Summary
 java.lang.String getDescription()
          Getter for the message's description.
 byte[] getPayload()
          Getter for the message's payload.
 boolean isNoReplyExpected()
          Getter for the reply expected field.
 boolean isSynchronous()
          Getter for synchronous.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Message

public Message(byte[] payload,
               boolean isSynchronous,
               java.lang.String description,
               boolean noReplyExpected)
Default constructor.

Parameters:
payload - The message payload.
isSynchronous - True if the message was synchronous.
description - Description of the message.
noReplyExpected - True if there is no reply expected from the device. Such as a soft reset message.
Method Detail

isSynchronous

public boolean isSynchronous()
Getter for synchronous.

Returns:
True if synchronous.

getPayload

public byte[] getPayload()
Getter for the message's payload.

Returns:
The message's payload.

getDescription

public java.lang.String getDescription()
Getter for the message's description.

Returns:
The message's description.

isNoReplyExpected

public boolean isNoReplyExpected()
Getter for the reply expected field.

Returns:
True if the message does NOT expect a reply.