Class UserResponseDTO<T>
java.lang.Object
callofproject.dev.authentication.dto.UserResponseDTO<T>
- Type Parameters:
T
- the type of the object to be transferred
Data Transfer Object for a user response.
It is used to transfer data between the client and the server.
-
Constructor Summary
ConstructorsConstructorDescriptionUserResponseDTO
(boolean success) Constructor for the UserResponseDTO class.UserResponseDTO
(boolean success, String token, String refreshToken) Constructor for the UserResponseDTO class.UserResponseDTO
(boolean success, String token, String refreshToken, T object) Constructor for the UserResponseDTO class.UserResponseDTO
(boolean success, T object) Constructor for the UserResponseDTO class. -
Method Summary
-
Constructor Details
-
UserResponseDTO
Constructor for the UserResponseDTO class. It is used to create an instance of the class with all fields set to their default values. -
UserResponseDTO
Constructor for the UserResponseDTO class. It is used to create an instance of the class with all fields set to their default values. -
UserResponseDTO
public UserResponseDTO(boolean success) Constructor for the UserResponseDTO class. It is used to create an instance of the class with all fields set to their default values. -
UserResponseDTO
Constructor for the UserResponseDTO class. It is used to create an instance of the class with all fields set to their default values.
-
-
Method Details
-
isSuccess
public boolean isSuccess()Checks if the operation was successful.- Returns:
- True if the operation was successful, false otherwise.
-
getToken
Gets the authentication token.- Returns:
- The authentication token.
-
getRefreshToken
Gets the refresh token.- Returns:
- The refresh token.
-
getObject
Gets the object contained in the response message.- Returns:
- The object contained in the response message.
-