Class CommentFirebaseManager

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addComment​(java.lang.String commentText, java.lang.String username, java.lang.String qrString, java.lang.String userFirstName, java.lang.String userLastName, OnCommentAddListener listener)
      Adds a new comment to a QR code.
      void getComment​(java.lang.String commentId, OnCommentLoadedListener listener)
      Get Comment object for given comment id.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CommentFirebaseManager

        public CommentFirebaseManager()
    • Method Detail

      • getComment

        public void getComment​(java.lang.String commentId,
                               OnCommentLoadedListener listener)
        Get Comment object for given comment id.
        Parameters:
        commentId - The id of the comment.
        listener - The listener to be called when the Comment is loaded or load fails.
      • addComment

        public void addComment​(java.lang.String commentText,
                               java.lang.String username,
                               java.lang.String qrString,
                               java.lang.String userFirstName,
                               java.lang.String userLastName,
                               OnCommentAddListener listener)
        Adds a new comment to a QR code.
        Parameters:
        commentText - The text content of the comment.
        username - The username of the user who wrote the comment.
        qrString - The hash of the QR code that the comment is being added to.
        userFirstName - The first name of the user who wrote the comment.
        userLastName - The last name of the user who wrote the comment.
        listener - An OnCommentAddListener object that will be notified when the comment is added.