com.dukascopy.api
Interface IMessage

All Known Subinterfaces:
ICalendarMessage, IConnectionStatusMessage, IInstrumentStatusMessage, INewsMessage, IStopLossLevelChangedMessage, IStrategyBroadcastMessage, IWithdrawalMessage

public interface IMessage

Represents message sent from server to client application


Nested Class Summary
static class IMessage.Reason
          Reason of message.
static class IMessage.Type
          Type of the message
 
Method Summary
 java.lang.String getContent()
          Returns textual content
 long getCreationTime()
          Returns time when message was created.
 IOrder getOrder()
          Returns IOrder linked with this message or null if there is no related order
 java.util.Set<IMessage.Reason> getReasons()
          Returns a set of message's reasons.
 IMessage.Type getType()
          Returns type of the message
 

Method Detail

getType

IMessage.Type getType()
Returns type of the message

Returns:
type of the message

getReasons

java.util.Set<IMessage.Reason> getReasons()
Returns a set of message's reasons. Never null.

Returns:
either set of reasons or empty set if there are no specific ones.

getContent

java.lang.String getContent()
Returns textual content

Returns:
string content of given message

getOrder

IOrder getOrder()
Returns IOrder linked with this message or null if there is no related order

Returns:
IOrder linked with this message. Can be null

getCreationTime

long getCreationTime()
Returns time when message was created. If it was created on server then returns exact time when it was created on server

Returns:
time when message was created