package pwc.taxtech.atms.dpo; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Date; public class UserDto { @JsonProperty("ID") private String id; private String userName; private String email; private String password; private Integer loginType; private Integer status; private Date expirationDate; private Date createTime; private Date updateTime; private Boolean isAdmin; private Date passwordUpdateTime; private Integer attemptTimes; private Date lockedTime; @JsonProperty("organizationID") private String organizationId; private String organizationName; private Boolean isSuperAdmin; public String getId() { return id; } public void setId(String id) { id = id; } public String getUserName() { return userName; } public void setUserName(String userName) { this.userName = userName; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public Integer getLoginType() { return loginType; } public void setLoginType(Integer loginType) { this.loginType = loginType; } public Integer getStatus() { return status; } public void setStatus(Integer status) { this.status = status; } public Date getExpirationDate() { return expirationDate; } public void setExpirationDate(Date expirationDate) { this.expirationDate = expirationDate; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } public Date getUpdateTime() { return updateTime; } public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; } public Boolean getIsAdmin() { return isAdmin; } public void setIsAdmin(Boolean isAdmin) { this.isAdmin = isAdmin; } public Date getPasswordUpdateTime() { return passwordUpdateTime; } public void setPasswordUpdateTime(Date passwordUpdateTime) { this.passwordUpdateTime = passwordUpdateTime; } public Integer getAttemptTimes() { return attemptTimes; } public void setAttemptTimes(Integer attemptTimes) { this.attemptTimes = attemptTimes; } public Date getLockedTime() { return lockedTime; } public void setLockedTime(Date lockedTime) { this.lockedTime = lockedTime; } public String getOrganizationId() { return organizationId; } public void setOrganizationId(String organizationId) { this.organizationId = organizationId; } public String getOrganizationName() { return organizationName; } public void setOrganizationName(String organizationName) { this.organizationName = organizationName; } public Boolean getIsSuperAdmin() { return isSuperAdmin; } public void setIsSuperAdmin(Boolean isSuperAdmin) { this.isSuperAdmin = isSuperAdmin; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((id == null) ? 0 : id.hashCode()); result = prime * result + ((attemptTimes == null) ? 0 : attemptTimes.hashCode()); result = prime * result + ((createTime == null) ? 0 : createTime.hashCode()); result = prime * result + ((email == null) ? 0 : email.hashCode()); result = prime * result + ((expirationDate == null) ? 0 : expirationDate.hashCode()); result = prime * result + ((isAdmin == null) ? 0 : isAdmin.hashCode()); result = prime * result + ((isSuperAdmin == null) ? 0 : isSuperAdmin.hashCode()); result = prime * result + ((lockedTime == null) ? 0 : lockedTime.hashCode()); result = prime * result + ((loginType == null) ? 0 : loginType.hashCode()); result = prime * result + ((organizationId == null) ? 0 : organizationId.hashCode()); result = prime * result + ((organizationName == null) ? 0 : organizationName.hashCode()); result = prime * result + ((password == null) ? 0 : password.hashCode()); result = prime * result + ((passwordUpdateTime == null) ? 0 : passwordUpdateTime.hashCode()); result = prime * result + ((status == null) ? 0 : status.hashCode()); result = prime * result + ((updateTime == null) ? 0 : updateTime.hashCode()); result = prime * result + ((userName == null) ? 0 : userName.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; UserDto other = (UserDto) obj; if (id == null) { if (other.id != null) return false; } else if (!id.equals(other.id)) return false; if (attemptTimes == null) { if (other.attemptTimes != null) return false; } else if (!attemptTimes.equals(other.attemptTimes)) return false; if (createTime == null) { if (other.createTime != null) return false; } else if (!createTime.equals(other.createTime)) return false; if (email == null) { if (other.email != null) return false; } else if (!email.equals(other.email)) return false; if (expirationDate == null) { if (other.expirationDate != null) return false; } else if (!expirationDate.equals(other.expirationDate)) return false; if (isAdmin == null) { if (other.isAdmin != null) return false; } else if (!isAdmin.equals(other.isAdmin)) return false; if (isSuperAdmin == null) { if (other.isSuperAdmin != null) return false; } else if (!isSuperAdmin.equals(other.isSuperAdmin)) return false; if (lockedTime == null) { if (other.lockedTime != null) return false; } else if (!lockedTime.equals(other.lockedTime)) return false; if (loginType == null) { if (other.loginType != null) return false; } else if (!loginType.equals(other.loginType)) return false; if (organizationId == null) { if (other.organizationId != null) return false; } else if (!organizationId.equals(other.organizationId)) return false; if (organizationName == null) { if (other.organizationName != null) return false; } else if (!organizationName.equals(other.organizationName)) return false; if (password == null) { if (other.password != null) return false; } else if (!password.equals(other.password)) return false; if (passwordUpdateTime == null) { if (other.passwordUpdateTime != null) return false; } else if (!passwordUpdateTime.equals(other.passwordUpdateTime)) return false; if (status == null) { if (other.status != null) return false; } else if (!status.equals(other.status)) return false; if (updateTime == null) { if (other.updateTime != null) return false; } else if (!updateTime.equals(other.updateTime)) return false; if (userName == null) { if (other.userName != null) return false; } else if (!userName.equals(other.userName)) return false; return true; } }