Methods Summary |
---|
public int | addContact(java.lang.String address)
if (address == null) {
Log.e(RemoteImService.TAG, "Address can't be null!");
return ImErrorInfo.ILLEGAL_CONTACT_ADDRESS;
}
try {
mAdaptee.addContact(address);
} catch (IllegalArgumentException e) {
return ImErrorInfo.ILLEGAL_CONTACT_ADDRESS;
} catch (ImException e) {
return e.getImError().getCode();
}
return ImErrorInfo.NO_ERROR;
|
public com.android.im.engine.Address | getAddress()
return mAdaptee.getAddress();
|
public long | getDataBaseId()
return mDataBaseId;
|
public java.lang.String | getName()
return mAdaptee.getName();
|
public boolean | isDefault()
return mAdaptee.isDefault();
|
public int | removeContact(java.lang.String address)
Contact contact = mAdaptee.getContact(address);
if (contact == null) {
return ImErrorInfo.ILLEGAL_CONTACT_ADDRESS;
}
try {
mAdaptee.removeContact(contact);
} catch (ImException e) {
return e.getImError().getCode();
}
return ImErrorInfo.NO_ERROR;
|
public void | setDefault(boolean isDefault)
mAdaptee.setDefault(isDefault);
|
public void | setName(java.lang.String name)
if (name == null) {
Log.e(RemoteImService.TAG, "Name can't be null!");
return;
}
mAdaptee.setName(name);
|