WebAPI/WebSMS: Difference between revisions

Jump to navigation Jump to search
(add Tread*As)
Line 26: Line 26:
     SMSRequest      getMessage(in long id);                  // request.result == SMSMessage
     SMSRequest      getMessage(in long id);                  // request.result == SMSMessage
     SMSRequest      getMessages(in SMSFilter filter, bool reverse); // request.result == SMSIterator
     SMSRequest      getMessages(in SMSFilter filter, bool reverse); // request.result == SMSIterator
    SMSRequest      markMessageRead(long id, boolean aValue); // request.result == boolean
   };
   };


Line 48: Line 49:
     readonly attribute DOMString body;
     readonly attribute DOMString body;
     readonly attribute Date      timestamp;
     readonly attribute Date      timestamp;
    readonly attribute boolean  read;
   };
   };


Comments:
Comments:
* ''unread'' property was considered but it requires a read/write ability so it will be added later
* 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. We could merge them to .number if that seems necessary.


Line 61: Line 62:
     [TreatNullAs=EmptyString, TreatUndefinedAs=EmptyString]
     [TreatNullAs=EmptyString, TreatUndefinedAs=EmptyString]
     DOMString?  delivery; // whether "sent" or "received"
     DOMString?  delivery; // whether "sent" or "received"
    boolean?    read;
   };
   };


Comments:
Comments:
* ''unread'' property has been removed because it has been removed from SmsMessage.
* When we will have MMS support, we would have to add a .type property to allow looking for SMS or MMS.
* When we will have MMS support, we would have to add a .type property to allow looking for SMS or MMS.
* For the moment, there is no way to filter according to the content of a message because we didn't find a nice way to do it. This could be added later though.
* For the moment, there is no way to filter according to the content of a message because we didn't find a nice way to do it. This could be added later though.
Confirmed users
483

edits

Navigation menu