| | |
| | | import com.pollex.pam.enums.ContactStatusEnum; |
| | | |
| | | import java.time.Instant; |
| | | import java.time.temporal.ChronoUnit; |
| | | import java.util.List; |
| | | |
| | | public class ConsultantDTO { |
| | |
| | | private Float avgScore; |
| | | private ContactStatusEnum contactStatus; |
| | | private Instant updateTime; |
| | | private String role; |
| | | private String seniority; |
| | | |
| | | public boolean isNewConsultant() { |
| | | return newConsultant; |
| | | } |
| | | |
| | | public void setNewConsultant(boolean newConsultant) { |
| | | this.newConsultant = newConsultant; |
| | | if(updateTime != null){ |
| | | Instant nowTimestamp = Instant.now(); |
| | | return ChronoUnit.DAYS.between(updateTime, nowTimestamp) < 3; |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | public String getAgentNo() { |
| | |
| | | this.updateTime = updateTime; |
| | | } |
| | | |
| | | public String getRole() { |
| | | return role; |
| | | } |
| | | |
| | | public void setRole(String role) { |
| | | this.role = role; |
| | | } |
| | | |
| | | public String getSeniority() { |
| | | return seniority; |
| | | } |
| | |
| | | public void setSeniority(String seniority) { |
| | | this.seniority = seniority; |
| | | } |
| | | |
| | | public void setNewConsultant(boolean newConsultant) { |
| | | this.newConsultant = newConsultant; |
| | | } |
| | | } |