com.dukascopy.api
Interface IMessage

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

public interface IMessage

Represents message sent from server to client application


Nested Class Summary
static class IMessage.Type
          Type of the message
 
Method Summary
 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
 IMessage.Type getType()
          Returns type of the message
 

Method Detail

getType

IMessage.Type getType()
Returns type of the message

Returns:
type of the message

getContent

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


Copyright © 2011. All Rights Reserved.