The User Contact Information REST API returns, amongst other things, the Gravatar URL associated with the user. This URL is explicitly calculated and added in the ContactInformationResource class. XX-5552[1] now adds this info to the UserPhonebook REST API. Here again, the Gravatar URL has to be explicitly calculated and added in the UserPhonebookSearchResource class. I propose abstracting this away to the AddressBookEntry class. Add a string attribute m_avatar to AddressBookEntry, and anytime we set an user email (AddressBookEntry.setEmailAddress), we calculate and set the m_avatar attribute as well.
One major change this would bring is that the <avatar> element will now be a child element of <contact-information>. Consumers of the Contact Information API (/my/contact-information) would have to update their code to take this into account. Opinions? Arjun [1] http://track.sipfoundry.org/browse/XX-5552 _______________________________________________ sipx-dev mailing list [email protected] List Archive: http://list.sipfoundry.org/archive/sipx-dev Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev sipXecs IP PBX -- http://www.sipfoundry.org/
