/** * Returns the direction of the transfer * * @return Direction * @see Direction * @throws RcsPersistentStorageException * @throws RcsGenericException */ public Direction getDirection() throws RcsPersistentStorageException, RcsGenericException { try { return Direction.valueOf(mTransferInf.getDirection()); } catch (Exception e) { RcsPersistentStorageException.assertException(e); throw new RcsGenericException(e); } }