public class MessagesApplicationSubscriber extends Object implements SubscriberInterface
| Constructor and Description |
|---|
MessagesApplicationSubscriber(MessagesApplicationController msgController)
Instantiates a new messages application subscriber.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createNewMessage(HashMap<String,String> hashAttachs)
Creates the new message.
|
void |
deleteMessage(String id)
Delete message.
|
void |
forwardMessage(String fromLogin,
String subject,
List<String> listToLogin,
Date date,
HashMap<String,String> hashAttachs,
String textMessage)
Forward message.
|
void |
loadReceivedMessages()
Load received messages.
|
void |
loadSentMessages()
Load sent messages.
|
void |
markAsReadMessage(String id,
boolean isRead)
Mark as read message.
|
void |
replyMessage(String fromLogin,
String subject,
List<String> listContactsLogin,
Date date,
String textMessage)
Reply message.
|
void |
rootLoaded(FileModel root)
Root loaded.
|
void |
updatePrevieMessage(MessageModel message)
Update previe message.
|
public MessagesApplicationSubscriber(MessagesApplicationController msgController)
msgController - the msg controllerpublic void rootLoaded(FileModel root)
SubscriberInterfacerootLoaded in interface SubscriberInterfaceroot - the rootpublic void loadSentMessages()
SubscriberInterfaceloadSentMessages in interface SubscriberInterfacepublic void loadReceivedMessages()
SubscriberInterfaceloadReceivedMessages in interface SubscriberInterfacepublic void deleteMessage(String id)
SubscriberInterfacedeleteMessage in interface SubscriberInterfaceid - the idpublic void markAsReadMessage(String id, boolean isRead)
SubscriberInterfacemarkAsReadMessage in interface SubscriberInterfaceid - the idisRead - the is readpublic void updatePrevieMessage(MessageModel message)
SubscriberInterfaceupdatePrevieMessage in interface SubscriberInterfacemessage - the messagepublic void createNewMessage(HashMap<String,String> hashAttachs)
SubscriberInterfacecreateNewMessage in interface SubscriberInterfacehashAttachs - the hash attachspublic void forwardMessage(String fromLogin, String subject, List<String> listToLogin, Date date, HashMap<String,String> hashAttachs, String textMessage)
SubscriberInterfaceforwardMessage in interface SubscriberInterfacefromLogin - the from loginsubject - the subjectlistToLogin - the list contacts logindate - the datehashAttachs - the hash attachstextMessage - the text messagepublic void replyMessage(String fromLogin, String subject, List<String> listContactsLogin, Date date, String textMessage)
SubscriberInterfacereplyMessage in interface SubscriberInterfacefromLogin - the from loginsubject - the subjectlistContactsLogin - the list contacts logindate - the datetextMessage - the text messageCopyright © 2015. All Rights Reserved.