Confirmed users
483
edits
(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: | ||
* 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: | ||
* 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. | ||