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 memoryString
getImageURI()
Getter for the image base-64 stringList<String>
getListOfStars()
Getter for the list of user ids who starred this memoryString
getMemCaption()
Getter for the caption of the memoryString
getMemId()
Getter for the id of the memoryString
getName()
Getter for the name of the userString
getTimeStamp()
Getter for the time at which the memory was uploadedString
getUserId()
Getter for the user idvoid
setComments(List<Comment> comments)
Setter for the list of comments in the memoryvoid
setImageURI(String imageURI)
Setter for the image base-64 stringvoid
setListOfStars(List<String> listOfStars)
Setter for the list of user ids who starred the memoryvoid
setMemCaption(String memCaption)
Setter for the caption of the memoryvoid
setMemId(String memId)
Setter for the id of the memoryvoid
setName(String name)
Setter for the name of the uservoid
setTimeStamp(String timeStamp)
Setter for the time at which the memory was uploadedvoid
setUserId(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 wrapsMemory
and 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. ReferMemory
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. ReferEnvironmentConfigurer
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. 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
-
-