Class Feed


  • public class Feed
    extends Object
    A Java POJO to represent the feed object.
    Author:
    swaroop_nath
    • Constructor Detail

      • Feed

        public Feed()
        The default constructor
      • Feed

        public Feed​(String userId,
                    String name,
                    Memory memory)
        Feed is a class that wraps Memory and user details. This parametrized constructor helps in quickly setting up the feed object.
        Parameters:
        userId - The id of the user who uploaded this memory
        name - The name of the user who uploaded the memory
        memory - The memory itself. Refer Memory for more details
    • Method Detail

      • getUserId

        public String getUserId()
        Getter for the user id
        Returns:
        Returns the user id who uploaded the memory
      • setUserId

        public void setUserId​(String userId)
        Setter for the user id
        Parameters:
        userId - The user id who uploaded the memory corresponding to the feed
      • getName

        public String getName()
        Getter for the name of the user
        Returns:
        The name of the user who uploaded the memory
      • setName

        public void setName​(String name)
        Setter for the name of the user
        Parameters:
        name - The name of the user who uploaded the memory
      • 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