public void dequeueOneToOneFileTransfer(String fileTransferId,ContactId contact,MmContent file,MmContent fileIcon){
  long timestamp=System.currentTimeMillis();
  long timestampSent=timestamp;
  FileTransferProtocol ftProtocol=getFileTransferProtocolForOneToOneFileTransfer(contact);
  if (ftProtocol == null) {
    throw new ServerApiGenericException("No valid file transfer protocol could be determined for dequeueing file with fileTransferId '" + fileTransferId + "'!");
  }
  FileSharingSession session=mImService.createFileTransferSession(fileTransferId,contact,file,fileIcon,timestamp,ftProtocol);
  OneToOneFileTransferImpl oneToOneFileTransfer=getOrCreateOneToOneFileTransfer(fileTransferId);
  session.addListener(oneToOneFileTransfer);
  setOneToOneFileTransferStateAndTimestamp(fileTransferId,contact,State.INITIATING,timestamp,timestampSent);
  session.startSession();
}

public void dequeueOneToOneFileTransfer ( String fileTransferId , ContactId contact , MmContent file , MmContent fileIcon ) { long timestamp = System . currentTimeMillis ( ) ; long timestampSent = timestamp ; FileTransferProtocol ftProtocol = getFileTransferProtocolForOneToOneFileTransfer ( contact ) ; if ( ftProtocol == null ) { throw new ServerApiGenericException ( "No valid file transfer protocol could be determined for dequeueing file with fileTransferId '" + fileTransferId + "'!" ) ; } FileSharingSession session = mImService . createFileTransferSession ( fileTransferId , contact , file , fileIcon , timestamp , ftProtocol ) ; OneToOneFileTransferImpl oneToOneFileTransfer = getOrCreateOneToOneFileTransfer ( fileTransferId ) ; session . addListener ( oneToOneFileTransfer ) ; setOneToOneFileTransferStateAndTimestamp ( fileTransferId , contact , State . INITIATING , timestamp , timestampSent ) ; session . startSession ( ) ; }
dequeue one - to - one file transfer
