Confirmed users
716
edits
(bold key notations to make them more apparently symbolic) |
|||
| Line 16: | Line 16: | ||
interface ContactsManager | interface ContactsManager | ||
{ | { | ||
DOMRequest find(in ContactFindOptions options); | |||
DOMRequest clear(); | |||
DOMRequest save(in Contact contact); // Success value is id? Or new Contact? | |||
DOMRequest remove(in Contact contact); | |||
}; | }; | ||
| Line 29: | Line 27: | ||
attribute DOMString filterOp; // e.g. "contains" | attribute DOMString filterOp; // e.g. "contains" | ||
attribute DOMString[] filterBy; // e.g. "givenName" | attribute DOMString[] filterBy; // e.g. "givenName" | ||
}; | }; | ||
| Line 74: | Line 67: | ||
}; | }; | ||
[Constructor(ContactProperties)] | |||
interface Contact : ContactProperties | |||
interface Contact : | |||
{ | { | ||
readonly attribute DOMString id; | readonly attribute DOMString id; | ||
readonly attribute Date published; | readonly attribute Date published; | ||
readonly attribute Date updated; | readonly attribute Date updated; | ||
Contact clone(); // Do we need this function? "new Contact(oldContact)" should just work | |||
}; | }; | ||