Package in.cs699.tensors.delagram.entity
Class Feed
- java.lang.Object
-
- in.cs699.tensors.delagram.entity.Feed
-
public class Feed extends Object
A Java POJO to represent the feed object.- Author:
- swaroop_nath
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Comment>getComments()Getter for the list of comments in the memoryStringgetImageURI()Getter for the image base-64 stringList<String>getListOfStars()Getter for the list of user ids who starred this memoryStringgetMemCaption()Getter for the caption of the memoryStringgetMemId()Getter for the id of the memoryStringgetName()Getter for the name of the userStringgetTimeStamp()Getter for the time at which the memory was uploadedStringgetUserId()Getter for the user idvoidsetComments(List<Comment> comments)Setter for the list of comments in the memoryvoidsetImageURI(String imageURI)Setter for the image base-64 stringvoidsetListOfStars(List<String> listOfStars)Setter for the list of user ids who starred the memoryvoidsetMemCaption(String memCaption)Setter for the caption of the memoryvoidsetMemId(String memId)Setter for the id of the memoryvoidsetName(String name)Setter for the name of the uservoidsetTimeStamp(String timeStamp)Setter for the time at which the memory was uploadedvoidsetUserId(String userId)Setter for the user id
-
-
-
Constructor Detail
-
Feed
public Feed()
The default constructor
-
Feed
public Feed(String userId, String name, Memory memory)
Feed is a class that wrapsMemoryand user details. This parametrized constructor helps in quickly setting up the feed object.- Parameters:
userId- The id of the user who uploaded this memoryname- The name of the user who uploaded the memorymemory- The memory itself. ReferMemoryfor 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
EnvironmentConfigurerfor 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. ReferEnvironmentConfigurerfor 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. ReferComment
-
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
-
-