Class Invite

    • Constructor Detail

      • Invite

        public Invite​(Jid to)
        Creates an 'invite' element.
        Parameters:
        to - The invitee, who will receive the invitation.
      • Invite

        public Invite​(Jid to,
                      String reason)
        Creates an invite element with a reason.
        Parameters:
        to - The invitee, who will receive the invitation.
        reason - The reason.
      • Invite

        public Invite​(Jid to,
                      String reason,
                      String thread)
        Creates an 'invite' element with a reason and a 'continue' element.
        Parameters:
        to - The invitee, who will receive the invitation.
        reason - The reason.
        thread - The thread to continue.
    • Method Detail

      • getReason

        public String getReason()
        Gets the reason for the invitation.
        Returns:
        The reason.
      • getFrom

        public Jid getFrom()
        Gets the inviter.
        Returns:
        The inviter.
      • getTo

        public Jid getTo()
        Gets the invitee.
        Returns:
        The invitee.
      • isContinue

        public boolean isContinue()
        Indicates, whether a previous one-to-one chat session is continued.
        Returns:
        True, if a previous one-to-one chat session is continued.
        See Also:
        getThread()
      • getThread

        public String getThread()
        Gets the thread of the previous one-to-one chat session.
        Returns:
        The thread of the previous one-to-one chat session (if any) or null.
        See Also:
        isContinue()