41 lines
974 B
Java
41 lines
974 B
Java
package SuMoC.backend.security.dtos;
|
|
|
|
import SuMoC.backend.security.enums.RegistrationStatus;
|
|
import SuMoC.backend.user.dtos.UserDTO;
|
|
import org.springframework.lang.Nullable;
|
|
|
|
public class RegistrationResponseDTO {
|
|
@Nullable
|
|
private UserDTO userDTO;
|
|
@Nullable
|
|
private String jwt;
|
|
private RegistrationStatus status;
|
|
|
|
public RegistrationResponseDTO(@Nullable UserDTO userDTO, String jwt, RegistrationStatus status) {
|
|
this.userDTO = userDTO;
|
|
this.jwt = jwt;
|
|
this.status = status;
|
|
}
|
|
|
|
@Nullable
|
|
public UserDTO getUserDTO() {
|
|
return userDTO;
|
|
}
|
|
|
|
public void setUserDTO(@Nullable UserDTO userDTO) {
|
|
this.userDTO = userDTO;
|
|
}
|
|
|
|
public String getJwt() {
|
|
return jwt;
|
|
}
|
|
|
|
public void setJwt(String jwt) {
|
|
this.jwt = jwt;
|
|
}
|
|
|
|
public RegistrationStatus getStatus() { return status; }
|
|
|
|
public void setStatus(RegistrationStatus status) { this.status = status; }
|
|
}
|