Esempio n. 1
0
 public boolean isBlocked(String address) {
   try {
     return mAdaptee.isBlocked(address);
   } catch (ImException e) {
     Log.e(TAG, e.getMessage());
     return false;
   }
 }
Esempio n. 2
0
  public int deleteContactList(String name) {
    try {
      mAdaptee.deleteContactListAsync(name);
    } catch (ImException e) {
      return e.getImError().getCode();
    }

    return ImErrorInfo.NO_ERROR;
  }
Esempio n. 3
0
  public int blockContact(String address) {
    try {
      mAdaptee.blockContactAsync(address);
    } catch (ImException e) {
      return e.getImError().getCode();
    }

    return ImErrorInfo.NO_ERROR;
  }
Esempio n. 4
0
  public int createContactList(String name, List<Contact> contacts) {
    try {
      mAdaptee.createContactListAsync(name, contacts);
    } catch (ImException e) {
      return e.getImError().getCode();
    }

    return ImErrorInfo.NO_ERROR;
  }
Esempio n. 5
0
  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;
  }