@Deprecated public void requestContactCapabilities(ContactId contact) throws RcsServiceNotRegisteredException, RcsServiceNotAvailableException, RcsGenericException {
  if (mApi == null) {
    throw new RcsServiceNotAvailableException();
  }
  try {
    List<ContactId> listOfContacts=new ArrayList<>();
    listOfContacts.add(contact);
    mApi.requestContactCapabilities2(listOfContacts);
  }
 catch (  Exception e) {
    RcsIllegalArgumentException.assertException(e);
    RcsServiceNotRegisteredException.assertException(e);
    throw new RcsGenericException(e);
  }
}

@ Deprecated public void requestContactCapabilities ( ContactId contact ) throws RcsServiceNotRegisteredException , RcsServiceNotAvailableException , RcsGenericException { if ( mApi == null ) { throw new RcsServiceNotAvailableException ( ) ; } try { List < ContactId > listOfContacts = new ArrayList < > ( ) ; listOfContacts . add ( contact ) ; mApi . requestContactCapabilities2 ( listOfContacts ) ; } catch ( Exception e ) { RcsIllegalArgumentException . assertException ( e ) ; RcsServiceNotRegisteredException . assertException ( e ) ; throw new RcsGenericException ( e ) ; } }
requests capabilities to a remote contact . this method initiates in background a new capability request to the remote contact by sending a sip options . the result of the capability request is sent asynchronously via callback method of the capabilities listener . the parameter contact supports the following formats : msisdn in national or international format , sip address , sip - uri or tel - uri . if the format of the contact is not supported an exception is thrown . the result of the capability refresh request is provided to all the clients that have registered the listener for this event .
