public boolean isBlocked(String address) { try { return mAdaptee.isBlocked(address); } catch (ImException e) { Log.e(TAG, e.getMessage()); return false; } }
public int deleteContactList(String name) { try { mAdaptee.deleteContactListAsync(name); } catch (ImException e) { return e.getImError().getCode(); } return ImErrorInfo.NO_ERROR; }
public int blockContact(String address) { try { mAdaptee.blockContactAsync(address); } catch (ImException e) { return e.getImError().getCode(); } return ImErrorInfo.NO_ERROR; }
public int createContactList(String name, List<Contact> contacts) { try { mAdaptee.createContactListAsync(name, contacts); } catch (ImException e) { return e.getImError().getCode(); } return ImErrorInfo.NO_ERROR; }
public int unBlockContact(String address) { try { mAdaptee.unblockContactAsync(address); } catch (ImException e) { Log.e(TAG, e.getMessage()); return e.getImError().getCode(); } return ImErrorInfo.NO_ERROR; }