Package in.cs699.tensors.delagram.entity
Class Memory
- java.lang.Object
-
- in.cs699.tensors.delagram.entity.Memory
-
public class Memory extends Object
A Java POJO that represents the object blueprint for a Memory.- Author:
- swaroop_nath
-
-
Constructor Summary
Constructors Constructor Description Memory()
-
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
getTimeStamp()
Getter for the time at which the memory was uploadedvoid
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
setTimeStamp(String timeStamp)
Setter for the time at which the memory was uploadedvoid
updateListOfComments(Comment commentMade)
A helper method to update the list of comments for the memory.void
updateListOfStars(String userID)
A helper method to update the list of stars for the 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. 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
-
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.
-
-