コード例 #1
0
  /**
   * A new file transfer invitation has been received
   *
   * @param session File transfer session
   * @param isGroup is group file transfer
   */
  public void handleFileTransferInvitation(FileSharingSession session, boolean isGroup) {
    if (logger.isActivated()) {
      logger.debug("Handle event file transfer invitation");
    }

    // Broadcast the invitation
    messagingApi.receiveFileTransferInvitation(session, isGroup);
  }
コード例 #2
0
  /**
   * A new file transfer invitation has been received and creating a chat session
   *
   * @param session File transfer session
   * @param chatSession Group chat session
   */
  public void handleGroupFileTransferInvitation(
      FileSharingSession session, TerminatingAdhocGroupChatSession chatSession) {
    if (logger.isActivated()) {
      logger.debug("Handle event file transfer invitation from an existing group chat session");
    }

    // Broadcast the invitation
    messagingApi.receiveFileTransferInvitation(session, chatSession);
  }
コード例 #3
0
  /**
   * A new file transfer invitation has been received
   *
   * @param session File transfer session
   * @param chatSession Chat session
   */
  public void handle1to1FileTransferInvitation(
      FileSharingSession session, OneOneChatSession chatSession) {
    if (logger.isActivated()) {
      logger.debug("Handle event file transfer invitation from an existing 1-1 chat session");
    }

    // Broadcast the invitation
    messagingApi.receiveFileTransferInvitation(session, chatSession);
  }