Class UserNameDTO
- java.lang.Object
-
- idatt2106.group3.backend.Model.DTO.User.UserNameDTO
-
public class UserNameDTO extends java.lang.Object
DTO class that only sends minimal information about a user to frontend
-
-
Constructor Summary
Constructors Constructor Description UserNameDTO(long userId, java.lang.String forename, java.lang.String surname)
UserNameDTO(User user)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getForename()
java.lang.String
getSurname()
long
getUserId()
void
setForename(java.lang.String forename)
void
setSurname(java.lang.String surname)
void
setUserId(long userId)
java.lang.String
toString()
-
-
-
Constructor Detail
-
UserNameDTO
public UserNameDTO(long userId, java.lang.String forename, java.lang.String surname)
-
UserNameDTO
public UserNameDTO(User user)
-
-
Method Detail
-
getUserId
public long getUserId()
-
setUserId
public void setUserId(long userId)
-
getForename
public java.lang.String getForename()
-
setForename
public void setForename(java.lang.String forename)
-
getSurname
public java.lang.String getSurname()
-
setSurname
public void setSurname(java.lang.String surname)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-