Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

separate storage interface #89

Open
zolkis opened this issue Nov 8, 2013 · 1 comment
Open

separate storage interface #89

zolkis opened this issue Nov 8, 2013 · 1 comment

Comments

@zolkis
Copy link
Contributor

zolkis commented Nov 8, 2013

For modularity and being more future-proof I propose to change the specification in the following way:

  1. Messaging should be MessagingManager
  2. 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);
}
@zolkis
Copy link
Contributor Author

zolkis commented Nov 8, 2013

@efullea if you think this is OK, I can do the editing, once I update the Telephony spec.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant