Class VCardManager

    • Method Detail

      • getVCard

        public AsyncResult<VCard> getVCard()
        Gets the vCard of the current user.
        Returns:
        The async result with the vCard.
      • getVCard

        public AsyncResult<VCard> getVCard​(Jid jid)
        Gets the vCard of another user.
        Parameters:
        jid - The user's JID.
        Returns:
        The async result of the vCard which may be null, if it does not exist.
      • setVCard

        public AsyncResult<Void> setVCard​(VCard vCard)
        Saves or updates a vCard.
        Parameters:
        vCard - The vCard.
        Returns:
        The async result.
      • getNamespace

        public final String getNamespace()
        Description copied from interface: ExtensionProtocol
        The protocol's main namespace. This is used to uniquely identify the extension protocol.
        Specified by:
        getNamespace in interface ExtensionProtocol
        Returns:
        The main namespace.