it.dtt.ca.event
Class NewMessageEvent

java.lang.Object
  extended by it.dtt.ca.event.CAEvent
      extended by it.dtt.ca.event.NewMessageEvent

public class NewMessageEvent
extends CAEvent

Notifies that a new message arrived. Messages can be read getting the message history from the SmartCard class.


Field Summary
 
Fields inherited from class it.dtt.ca.event.CAEvent
CA_ACCESS_EVENT, CA_PRODUCT_EVENT, HISTORY_UPDATE_EVENT, NEW_MESSAGE_EVENT, PIN_REQUEST_EVENT, RECHARGE_EVENT, SLOT_EVENT, SMART_CARD_STATUS_EVENT
 
Constructor Summary
protected NewMessageEvent(CAManager caManager, Message message)
          Create a NewMessageEvent instance.
 
Method Summary
 Message getNewMessage()
          Get the new message.
 int getType()
          Returns the type of event that's arrived.
 
Methods inherited from class it.dtt.ca.event.CAEvent
getData, getDescription, getPrivateData, getSource, setPrivateData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NewMessageEvent

protected NewMessageEvent(CAManager caManager,
                          Message message)
Create a NewMessageEvent instance.

Parameters:
caManager - the CaManger
message - the new message
Method Detail

getNewMessage

public Message getNewMessage()
Get the new message.

Returns:
the new message.

getType

public int getType()
Returns the type of event that's arrived.

Specified by:
getType in class CAEvent
Returns:
type of event.
See Also:
CAEvent.NEW_MESSAGE_EVENT