Package in.cs699.tensors.delagram.entity
Class User
- java.lang.Object
-
- in.cs699.tensors.delagram.entity.User
-
public class User extends Object
A Java POJO to represent a User in the application.- Author:
- swaroop_nath, mayankkakad
-
-
Constructor Summary
Constructors Constructor Description User()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBio()
Getter for the biography of the userList<String>
getCircle()
Getter for the user ids in the circle of the userString
getDisplayPicRepresentation()
Getter for the base-64 representation of the imageString
getEmailId()
Getter for the email id of the userString
getName()
Getter for the name of the userString
getPassword()
Getter for a dummy password for the userList<Memory>
getUploadedMemories()
Getter for the list of memories uploaded by the userString
getUserId()
Getter for the id of the userboolean
isVerified()
Getter for the isVerified fieldvoid
setBio(String bio)
Setter for the biography of the uservoid
setCircle(List<String> circle)
Setter for the user ids in the circle of the uservoid
setDisplayPicRepresentation(String displayPicRepresentation)
Setter for the base-64 representation of the imagevoid
setEmailId(String emailId)
Setter for the email id of the uservoid
setName(String name)
Setter for the name of the uservoid
setPassword(String password)
Setter for a dummy password for the uservoid
setUploadedMemories(List<Memory> uploadedMemories)
Setter for the list of memories uploaded by the uservoid
setUserId(String userId)
Setter for the id of the uservoid
setVerified(boolean isVerified)
Setter for the isVerified fieldvoid
updateCircleWithUser(String newUserID)
A helper method to update the circle for the user.void
updateMemoryList(Memory memory)
A helper method to update the list of memories for the user.void
updateMemoryObjectAtIndex(Memory newMemory, int index)
A helper method to update a particular memory for the user.
-
-
-
Method Detail
-
getUserId
public String getUserId()
Getter for the id of the user- Returns:
- Returns the id of the user
-
setUserId
public void setUserId(String userId)
Setter for the id of the user- Parameters:
userId
- The id of the user
-
getEmailId
public String getEmailId()
Getter for the email id of the user- Returns:
- The email id
-
setEmailId
public void setEmailId(String emailId)
Setter for the email id of the user- Parameters:
emailId
- The email id
-
getName
public String getName()
Getter for the name of the user- Returns:
- Returns the name
-
setName
public void setName(String name)
Setter for the name of the user- Parameters:
name
- The name of the user
-
getDisplayPicRepresentation
public String getDisplayPicRepresentation()
Getter for the base-64 representation of the image- Returns:
- Returns a base-64 string
-
setDisplayPicRepresentation
public void setDisplayPicRepresentation(String displayPicRepresentation)
Setter for the base-64 representation of the image- Parameters:
displayPicRepresentation
- The base-64 string
-
getBio
public String getBio()
Getter for the biography of the user- Returns:
- Returns the biography
-
setBio
public void setBio(String bio)
Setter for the biography of the user- Parameters:
bio
- The biography of the user
-
getCircle
public List<String> getCircle()
Getter for the user ids in the circle of the user- Returns:
- Returns a list of user ids
-
setCircle
public void setCircle(List<String> circle)
Setter for the user ids in the circle of the user- Parameters:
circle
- A list of user ids
-
getUploadedMemories
public List<Memory> getUploadedMemories()
Getter for the list of memories uploaded by the user- Returns:
- Returns a list of memories
-
setUploadedMemories
public void setUploadedMemories(List<Memory> uploadedMemories)
Setter for the list of memories uploaded by the user- Parameters:
uploadedMemories
- A list of memories
-
getPassword
public String getPassword()
Getter for a dummy password for the user- Returns:
- Returns the dummy password
-
setPassword
public void setPassword(String password)
Setter for a dummy password for the user- Parameters:
password
- A dummy password
-
updateMemoryList
public void updateMemoryList(Memory memory)
A helper method to update the list of memories for the user.- Parameters:
memory
- The newly uploaded memory.
-
isVerified
public boolean isVerified()
Getter for the isVerified field- Returns:
- Returns a boolean value
-
setVerified
public void setVerified(boolean isVerified)
Setter for the isVerified field- Parameters:
isVerified
- A boolean value
-
updateMemoryObjectAtIndex
public void updateMemoryObjectAtIndex(Memory newMemory, int index)
A helper method to update a particular memory for the user.- Parameters:
newMemory
- The new updated memory.index
- The index of the memory, in the original list.
-
updateCircleWithUser
public void updateCircleWithUser(String newUserID)
A helper method to update the circle for the user.- Parameters:
newUserID
- The id of the new user to be added in the circle.
-
-