| Line 1... |
Line 1... |
| 1 |
package com.spice.profitmandi.dao.entity.cs;
|
1 |
package com.spice.profitmandi.dao.entity.cs;
|
| 2 |
|
2 |
|
| 3 |
import javax.persistence.*;
|
3 |
import javax.persistence.*;
|
| - |
|
4 |
import java.time.LocalDate;
|
| 4 |
import java.time.LocalDateTime;
|
5 |
import java.time.LocalDateTime;
|
| 5 |
import java.util.Objects;
|
6 |
import java.util.Objects;
|
| 6 |
|
7 |
|
| 7 |
@Entity
|
8 |
@Entity
|
| 8 |
@Table(name = "cs.agent_recordings",uniqueConstraints = {@UniqueConstraint(columnNames = "session_id")})
|
9 |
@Table(name = "cs.agent_recordings",uniqueConstraints = {@UniqueConstraint(columnNames = "session_id")})
|
| Line 58... |
Line 59... |
| 58 |
private int agentLegStatus;
|
59 |
private int agentLegStatus;
|
| 59 |
|
60 |
|
| 60 |
@Column(name = "customer_leg_status")
|
61 |
@Column(name = "customer_leg_status")
|
| 61 |
private int customerLegStatus;
|
62 |
private int customerLegStatus;
|
| 62 |
|
63 |
|
| - |
|
64 |
@Column(name = "call_date")
|
| - |
|
65 |
private LocalDate callDate;
|
| - |
|
66 |
|
| - |
|
67 |
@Column(name = "customer_status")
|
| - |
|
68 |
private String customerStatus;
|
| - |
|
69 |
|
| - |
|
70 |
@Column(name = "call_uuid")
|
| - |
|
71 |
private String callUuid;
|
| - |
|
72 |
|
| 63 |
public Long getId() {
|
73 |
public Long getId() {
|
| 64 |
return id;
|
74 |
return id;
|
| 65 |
}
|
75 |
}
|
| 66 |
|
76 |
|
| 67 |
public void setId(Long id) {
|
77 |
public void setId(Long id) {
|
| Line 194... |
Line 204... |
| 194 |
|
204 |
|
| 195 |
public void setCustomerLegStatus(int customerLegStatus) {
|
205 |
public void setCustomerLegStatus(int customerLegStatus) {
|
| 196 |
this.customerLegStatus = customerLegStatus;
|
206 |
this.customerLegStatus = customerLegStatus;
|
| 197 |
}
|
207 |
}
|
| 198 |
|
208 |
|
| - |
|
209 |
public LocalDate getCallDate() {
|
| - |
|
210 |
return callDate;
|
| - |
|
211 |
}
|
| - |
|
212 |
|
| - |
|
213 |
public void setCallDate(LocalDate callDate) {
|
| - |
|
214 |
this.callDate = callDate;
|
| - |
|
215 |
}
|
| - |
|
216 |
|
| - |
|
217 |
public String getCustomerStatus() {
|
| - |
|
218 |
return customerStatus;
|
| - |
|
219 |
}
|
| - |
|
220 |
|
| - |
|
221 |
public void setCustomerStatus(String customerStatus) {
|
| - |
|
222 |
this.customerStatus = customerStatus;
|
| - |
|
223 |
}
|
| - |
|
224 |
|
| - |
|
225 |
public String getCallUuid() {
|
| - |
|
226 |
return callUuid;
|
| - |
|
227 |
}
|
| - |
|
228 |
|
| - |
|
229 |
public void setCallUuid(String callUuid) {
|
| - |
|
230 |
this.callUuid = callUuid;
|
| - |
|
231 |
}
|
| - |
|
232 |
|
| 199 |
@Override
|
233 |
@Override
|
| 200 |
public String toString() {
|
234 |
public String toString() {
|
| 201 |
return "AgentRecording{" +
|
235 |
return "AgentRecording{" +
|
| 202 |
"id=" + id +
|
236 |
"id=" + id +
|
| 203 |
", callStatus='" + callStatus + '\'' +
|
237 |
", callStatus='" + callStatus + '\'' +
|
| Line 214... |
Line 248... |
| 214 |
", startTime=" + startTime +
|
248 |
", startTime=" + startTime +
|
| 215 |
", endTime=" + endTime +
|
249 |
", endTime=" + endTime +
|
| 216 |
", connectedDuration=" + connectedDuration +
|
250 |
", connectedDuration=" + connectedDuration +
|
| 217 |
", agentLegStatus=" + agentLegStatus +
|
251 |
", agentLegStatus=" + agentLegStatus +
|
| 218 |
", customerLegStatus=" + customerLegStatus +
|
252 |
", customerLegStatus=" + customerLegStatus +
|
| - |
|
253 |
", callDate=" + callDate +
|
| - |
|
254 |
", customerStatus='" + customerStatus + '\'' +
|
| - |
|
255 |
", callUuid='" + callUuid + '\'' +
|
| 219 |
'}';
|
256 |
'}';
|
| 220 |
}
|
257 |
}
|
| 221 |
|
258 |
|
| 222 |
@Override
|
259 |
@Override
|
| 223 |
public boolean equals(Object o) {
|
260 |
public boolean equals(Object o) {
|
| 224 |
if (this == o) return true;
|
261 |
if (this == o) return true;
|
| 225 |
if (o == null || getClass() != o.getClass()) return false;
|
262 |
if (o == null || getClass() != o.getClass()) return false;
|
| 226 |
AgentRecording that = (AgentRecording) o;
|
263 |
AgentRecording that = (AgentRecording) o;
|
| 227 |
return smeId == that.smeId && callMode == that.callMode && callDuration == that.callDuration && connectedDuration == that.connectedDuration && agentLegStatus == that.agentLegStatus && customerLegStatus == that.customerLegStatus && Objects.equals(id, that.id) && Objects.equals(callStatus, that.callStatus) && Objects.equals(sessionId, that.sessionId) && Objects.equals(agentNumber, that.agentNumber) && Objects.equals(customerNumber, that.customerNumber) && Objects.equals(customDtmf, that.customDtmf) && Objects.equals(optionalField, that.optionalField) && Objects.equals(responseMsg, that.responseMsg) && Objects.equals(recordingFile, that.recordingFile) && Objects.equals(startTime, that.startTime) && Objects.equals(endTime, that.endTime);
|
264 |
return smeId == that.smeId && callMode == that.callMode && callDuration == that.callDuration && connectedDuration == that.connectedDuration && agentLegStatus == that.agentLegStatus && customerLegStatus == that.customerLegStatus && Objects.equals(id, that.id) && Objects.equals(callStatus, that.callStatus) && Objects.equals(sessionId, that.sessionId) && Objects.equals(agentNumber, that.agentNumber) && Objects.equals(customerNumber, that.customerNumber) && Objects.equals(customDtmf, that.customDtmf) && Objects.equals(optionalField, that.optionalField) && Objects.equals(responseMsg, that.responseMsg) && Objects.equals(recordingFile, that.recordingFile) && Objects.equals(startTime, that.startTime) && Objects.equals(endTime, that.endTime) && Objects.equals(callDate, that.callDate) && Objects.equals(customerStatus, that.customerStatus) && Objects.equals(callUuid, that.callUuid);
|
| 228 |
}
|
265 |
}
|
| 229 |
|
266 |
|
| 230 |
@Override
|
267 |
@Override
|
| 231 |
public int hashCode() {
|
268 |
public int hashCode() {
|
| 232 |
return Objects.hash(id, callStatus, smeId, sessionId, callMode, agentNumber, customerNumber, customDtmf, callDuration, optionalField, responseMsg, recordingFile, startTime, endTime, connectedDuration, agentLegStatus, customerLegStatus);
|
269 |
return Objects.hash(id, callStatus, smeId, sessionId, callMode, agentNumber, customerNumber, customDtmf, callDuration, optionalField, responseMsg, recordingFile, startTime, endTime, connectedDuration, agentLegStatus, customerLegStatus, callDate, customerStatus, callUuid);
|
| 233 |
}
|
270 |
}
|
| 234 |
}
|
271 |
}
|