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

separate storage interface #89

@zolkis

Description

@zolkis

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);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions