WebAPI/WebSMS: Difference between revisions

Jump to navigation Jump to search
→‎Proposed API: various changes in SmsFilter
(→‎Proposed API: add SmsMessage.delivery and update comments)
(→‎Proposed API: various changes in SmsFilter)
Line 52: Line 52:


Comments:
Comments:
* We have .sender and .receiver because someone can have multiple number or change numbers. We could merge them to .number if that seems necessary.
* We have .sender and .receiver because someone can have multiple number or change numbers.<br>
We could merge them to .number if that seems necessary.


   interface SmsFilter {
   interface SmsFilter {
     Date             startDate;
     Date?        startDate;
     Date             endDate;
     Date?        endDate;
     DOMString[]     numbers;
     DOMString[]? numbers;
     DOMString       body;
     DOMString?  delivery; // whether "sent" or "received"
     boolean         unread;
     boolean?    unread;
    DOMString?  body;
   };
   };


Comments:
Comments:
* Add a ''type'' field that could be SMS or MMS;
* Add a ''type'' field that could be SMS or MMS;
* Maybe add a ''status'' field that could be SENT or RECEIVED?
* Can we make the ''body'' field better to allow AND/OR operations?
* Can we make the ''body'' field better to allow AND/OR operations?


Confirmed users
368

edits

Navigation menu