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>

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

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

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

Kind Regards,


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

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 14:53:41 UTC