public Optional < ContactTokenDetails > getContact ( String e164number ) throws IOException { String contactToken = createDirectoryServerToken ( e164number , true ) ; ContactTokenDetails contactTokenDetails = this . pushServiceSocket . getContactTokenDetails ( contactToken ) ; if ( contactTokenDetails != null ) { contactTokenDetails . setNumber ( e164number ) ; } return Optional . fromNullable ( contactTokenDetails ) ; }
Checks whether a contact is currently registered with the server .