Skip to content

Commit

Permalink
add toString() to DTOs
Browse files Browse the repository at this point in the history
  • Loading branch information
stokito committed Nov 3, 2024
1 parent 0c2aff4 commit c927c9d
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,5 +191,14 @@ public String getSourceAddress() {
public Date getExpires() {
return this.expires;
}

@Override
public String toString() {
return "ResetRequest{" +
"userId='" + userId + '\'' +
", sourceAddress='" + sourceAddress + '\'' +
", expires=" + expires +
'}';
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -421,5 +421,31 @@ public List<ResetRequest> getResetRequests() {
return this.resetRequests;
}

@Override
public String toString() {
return "Dto{" +
"notSupported=" + notSupported +
", enabled=" + enabled +
", server='" + server + '\'' +
", serverError='" + serverError + '\'' +
", senderName='" + senderName + '\'' +
", senderNameError='" + senderNameError + '\'' +
", senderAddress='" + senderAddress + '\'' +
", senderAddressError='" + senderAddressError + '\'' +
", subject='" + subject + '\'' +
", subjectError='" + subjectError + '\'' +
", body='" + body + '\'' +
", bodyError='" + bodyError + '\'' +
", expiryCount='" + expiryCount + '\'' +
", expiryPeriod='" + expiryPeriod + '\'' +
", expiryError='" + expiryError + '\'' +
", minLength='" + minLength + '\'' +
", minLengthError='" + minLengthError + '\'' +
", maxLength='" + maxLength + '\'' +
", maxLengthError='" + maxLengthError + '\'' +
", valid=" + valid +
", resetRequests=" + resetRequests +
'}';
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -197,5 +197,13 @@ public boolean isValid() {
return this.valid;
}

@Override
public String toString() {
return "Form{" +
"userId='" + userId + '\'' +
", token='" + token + '\'' +
", valid=" + valid +
'}';
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,16 @@ public void setEmailSent(boolean emailSent) {
this.emailSent = emailSent;
}

@Override
public String toString() {
return "Form{" +
"enabled=" + enabled +
", user='" + user + '\'' +
", userError='" + userError + '\'' +
", emailSent=" + emailSent +
", valid=" + valid +
'}';
}
}

}

0 comments on commit c927c9d

Please sign in to comment.