Class Memory


  • public class Memory
    extends Object
    A Java POJO that represents the object blueprint for a Memory.
    Author:
    swaroop_nath
    • Constructor Detail

      • Memory

        public Memory()
    • Method Detail

      • getMemId

        public String getMemId()
        Getter for the id of the memory
        Returns:
        Returns the id of the memory wrapped by this feed object
      • setMemId

        public void setMemId​(String memId)
        Setter for the id of the memory
        Parameters:
        memId - The id of the memory wrapped by this feed object
      • getMemCaption

        public String getMemCaption()
        Getter for the caption of the memory
        Returns:
        Returns the caption of the memory wrapped by this feed object
      • setMemCaption

        public void setMemCaption​(String memCaption)
        Setter for the caption of the memory
        Parameters:
        memCaption - Returns the caption of the memory wrapped by this feed object
      • getTimeStamp

        public String getTimeStamp()
        Getter for the time at which the memory was uploaded
        Returns:
        Returns the stringified version of the time. Refer EnvironmentConfigurer for the format
      • setTimeStamp

        public void setTimeStamp​(String timeStamp)
        Setter for the time at which the memory was uploaded
        Parameters:
        timeStamp - The stringified version of the time. Refer EnvironmentConfigurer for the format
      • getListOfStars

        public List<String> getListOfStars()
        Getter for the list of user ids who starred this memory
        Returns:
        The list of user ids who starred this memory
      • setListOfStars

        public void setListOfStars​(List<String> listOfStars)
        Setter for the list of user ids who starred the memory
        Parameters:
        listOfStars - The list of user ids who starred this memory
      • getComments

        public List<Comment> getComments()
        Getter for the list of comments in the memory
        Returns:
        The list of comment objects. Refer Comment
      • setComments

        public void setComments​(List<Comment> comments)
        Setter for the list of comments in the memory
        Parameters:
        comments - The list of comment objects. Refer Comment
      • getImageURI

        public String getImageURI()
        Getter for the image base-64 string
        Returns:
        The base-64 representation of the image
      • setImageURI

        public void setImageURI​(String imageURI)
        Setter for the image base-64 string
        Parameters:
        imageURI - The base-64 representation of the image
      • updateListOfStars

        public void updateListOfStars​(String userID)
        A helper method to update the list of stars for the memory.
        Parameters:
        userID - The user who added a star.
      • updateListOfComments

        public void updateListOfComments​(Comment commentMade)
        A helper method to update the list of comments for the memory.
        Parameters:
        commentMade - The new comment added.