WebAPI/ContactsAPI: Difference between revisions

Jump to navigation Jump to search
add interface ContactEmail per Gaia Contacts UI v1 requirement, make its (and others') 'type' into an array to handle primary/favorite/PREF type as well as home, work. consistent with vCard/hCard
(add interface ContactEmail per Gaia Contacts UI v1 requirement, make its (and others') 'type' into an array to handle primary/favorite/PREF type as well as home, work. consistent with vCard/hCard)
Line 49: Line 49:
   interface ContactTelephone : nsISupports
   interface ContactTelephone : nsISupports
   {
   {
     attribute DOMString type;  // may change to DOMString[] based on research     
     attribute DOMString[] type;  // for primary/favorite (use:"PREF"), "home", "work", etc.
     attribute DOMString number;
    attribute DOMString value;
  };
 
  interface ContactEmail : nsISupports
  {
    attribute DOMString[] type;  // for primary/favorite (use:"PREF"), "home", "work", etc.
     attribute DOMString value;
   };
   };


   interface ContactAddress {
   interface ContactAddress {
             attribute DOMString             type; // may change to DOMString[] based on research
             attribute DOMString[]            type; // for primary/favorite (use:"PREF"), "home", "work", etc.
             attribute DOMString              streetAddress;
             attribute DOMString              streetAddress;
             attribute DOMString              locality;
             attribute DOMString              locality;
Line 70: Line 76:
             attribute DOMString[]            honorificSuffix;
             attribute DOMString[]            honorificSuffix;
             attribute DOMString[]            nickname;
             attribute DOMString[]            nickname;
             attribute DOMString[]           email;
             attribute ContactEmail[]         email;
             attribute DOMString[]            photo;
             attribute DOMString[]            photo;
             attribute DOMString[]            url;
             attribute DOMString[]            url;
Line 149: Line 155:
* add interface ContactTelephone
* add interface ContactTelephone
** done
** done
 
* add interface Email with type for Email (similar to ContactTelephone)
* add interface Email
** done
* add type for Email (similar to ContactTelephone)


=== Priority 2 feature requests ===
=== Priority 2 feature requests ===
canmove, Confirmed users
2,887

edits

Navigation menu