This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Description
For modularity and being more future-proof I propose to change the specification in the following way:
- Messaging should be MessagingManager
- separate storage interface
MessagingManager implements MessagingStorage;
interface MessagingManager {
readonly attribute SmsManager sms;
readonly attribute MmsManager mms;
};
Then,
interface MessagingStorage {
Promise findMessages (MessagingFilter filter, FilterOptions options);
Promise findConversations (DOMString groupBy, MessagingFilter filter, FilterOptions options);
Promise getMessage (DOMString messageID);
Promise deleteMessage (DOMString messageID);
Promise deleteConversation (DOMString conversationID);
Promise markMessageRead (DOMString messageID, boolean value, optional boolean sendReadReport = false);
Promise markConversationRead (DOMString conversationID, boolean value, optional boolean sendReadReport = false);
}