ImpsUserAddresspublic class ImpsUserAddress extends ImpsAddress
Constructors Summary |
---|
public ImpsUserAddress()Default Constructor. Required by AddressParcelHelper.
| public ImpsUserAddress(String full, boolean verify)
super(full, verify);
if(verify && (mUser == null || mResource != null)) {
throw new IllegalArgumentException();
}
| public ImpsUserAddress(String full)
this(full, false);
| public ImpsUserAddress(String user, String domain)
super(user, null, domain);
|
Methods Summary |
---|
public com.android.im.engine.ImEntity | getEntity(ImpsConnection connection)
ContactListManager manager = connection.getContactListManager();
for(ContactList list : manager.getContactLists()) {
Contact contact = list.getContact(this);
if(contact != null) {
return contact;
}
}
//TODO: add to a stranger list?
return new Contact(this, this.getUser());
| public java.lang.String | getScreenName()
return mUser;
| public PrimitiveElement | toPrimitiveElement()
PrimitiveElement user = new PrimitiveElement(ImpsTags.User);
user.addChild(ImpsTags.UserID, getFullName());
return user;
|
|