* @see LinkedContactInfoProvider#requestFields(String,
* LinkedContactCallback, int)
*/
public void requestFields(final String contactID,
final LinkedContactCallback adapter, final int fields) {
final LinkableContact contact =
ContactListScreen.getUserForID(contactID);
if ((fields & LinkedContactInfoProvider.AVAILABILITY) != 0) {
adapter.setAvailability(LinkedContactInfoProvider.AVAILABILITY_ONLINE);
}
if ((fields & LinkedContactInfoProvider.STATUS) != 0) {
adapter.setStatusString("<Sample contact status>");
}
if ((fields & LinkedContactInfoProvider.USER_NAME) != 0) {
adapter.setUserName(contact.toString());
}
}