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)
SubscriberInterface
rootLoaded
in interface SubscriberInterface
root
- the rootpublic void loadSentMessages()
SubscriberInterface
loadSentMessages
in interface SubscriberInterface
public void loadReceivedMessages()
SubscriberInterface
loadReceivedMessages
in interface SubscriberInterface
public void deleteMessage(String id)
SubscriberInterface
deleteMessage
in interface SubscriberInterface
id
- the idpublic void markAsReadMessage(String id, boolean isRead)
SubscriberInterface
markAsReadMessage
in interface SubscriberInterface
id
- the idisRead
- the is readpublic void updatePrevieMessage(MessageModel message)
SubscriberInterface
updatePrevieMessage
in interface SubscriberInterface
message
- the messagepublic void createNewMessage(HashMap<String,String> hashAttachs)
SubscriberInterface
createNewMessage
in interface SubscriberInterface
hashAttachs
- the hash attachspublic void forwardMessage(String fromLogin, String subject, List<String> listToLogin, Date date, HashMap<String,String> hashAttachs, String textMessage)
SubscriberInterface
forwardMessage
in interface SubscriberInterface
fromLogin
- 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)
SubscriberInterface
replyMessage
in interface SubscriberInterface
fromLogin
- the from loginsubject
- the subjectlistContactsLogin
- the list contacts logindate
- the datetextMessage
- the text messageCopyright © 2016. All Rights Reserved.