W3C home > Mailing lists > Public > public-device-apis@w3.org > December 2009

[contacts] Extending the Contacts.create() method

From: <richard.tibbett@orange-ftgroup.com>
Date: Mon, 21 Dec 2009 18:32:27 +0100
Message-ID: <355A518BC0575547B2A3D6773AAF8EEF7764F2@ftrdmel1>
To: <public-device-apis@w3.org>
Hi,

Just documenting some thoughts on improving the Contacts.create(...)
method [1] to allow for additional contact attributes to be specified at
object creation.

The method could be overloaded as follows:

interface Contacts {
    Contact   create (in DOMString name);
    Contact   create (in ContactProperties options);
    // ... Other methods
};

Or it could be extended with optional additional contact attributes as
follows:

interface Contacts {
    Contact   create (in DOMString name, in optional ContactProperties
options);
    // ... other methods
};

Any feedback on the best approach, or whether the current simple
create(...) method [1] is sufficient is welcome :-)

Kind Regards,

Richard

[1] http://dev.w3.org/2009/dap/contacts/#widl-Contacts-create
Received on Monday, 21 December 2009 17:32:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:14:03 GMT