| | |
| | | |
| | | public class CustomerFavoriteConsultantDTO { |
| | | |
| | | @JsonProperty("new") |
| | | private boolean newConsultant; |
| | | private String agentNo; |
| | | private String name; |
| | | private String img; |
| | |
| | | private ContactStatusEnum contactStatus; |
| | | private Instant createTime; |
| | | private Instant updateTime; |
| | | private Instant customerViewTime; |
| | | private String role; |
| | | private String seniority; |
| | | private List<AppointmentCustomerViewDTO> appointments; |
| | | |
| | | public boolean isNewConsultant() { |
| | | if(createTime != null){ |
| | | Instant nowTimestamp = Instant.now(); |
| | | return ChronoUnit.DAYS.between(createTime, nowTimestamp) < 3; |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | public String getAgentNo() { |
| | | return agentNo; |
| | |
| | | this.updateTime = updateTime; |
| | | } |
| | | |
| | | public Instant getCustomerViewTime() { |
| | | return customerViewTime; |
| | | } |
| | | |
| | | public void setCustomerViewTime(Instant customerViewTime) { |
| | | this.customerViewTime = customerViewTime; |
| | | } |
| | | |
| | | public String getRole() { |
| | | return role; |
| | | } |
| | |
| | | |
| | | public void setSeniority(String seniority) { |
| | | this.seniority = seniority; |
| | | } |
| | | |
| | | public void setNewConsultant(boolean newConsultant) { |
| | | this.newConsultant = newConsultant; |
| | | } |
| | | |
| | | public List<AppointmentCustomerViewDTO> getAppointments() { |