Subversion Repositories SmartDukaan

Rev

Rev 33585 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
32929 amit.gupta 1
package com.spice.profitmandi.dao.entity.cs;
2
 
3
import javax.persistence.*;
34530 ranu 4
import java.time.LocalDate;
32929 amit.gupta 5
import java.time.LocalDateTime;
6
import java.util.Objects;
7
 
8
@Entity
33585 ranu 9
@Table(name = "cs.agent_recordings",uniqueConstraints = {@UniqueConstraint(columnNames = "session_id")})
32929 amit.gupta 10
public class AgentRecording {
11
 
12
    @Id
13
    @GeneratedValue(strategy = GenerationType.IDENTITY)
33585 ranu 14
    private Long id;
32929 amit.gupta 15
 
33585 ranu 16
    @Column(name = "call_status")
17
    private String callStatus;
32929 amit.gupta 18
 
33585 ranu 19
    @Column(name = "sme_id")
20
    private int smeId;
32929 amit.gupta 21
 
33585 ranu 22
    @Column(name = "session_id", unique = true)
23
    private String sessionId;
32929 amit.gupta 24
 
33585 ranu 25
    @Column(name = "call_mode")
26
    private int callMode;
32929 amit.gupta 27
 
33585 ranu 28
    @Column(name = "agent_number")
29
    private String agentNumber;
32929 amit.gupta 30
 
33585 ranu 31
    @Column(name = "customer_number")
32
    private String customerNumber;
32929 amit.gupta 33
 
33585 ranu 34
    @Column(name = "custom_dtmf")
35
    private String customDtmf;
36
 
37
    @Column(name = "call_duration")
38
    private int callDuration;
39
 
40
    @Column(name = "optional_field")
41
    private String optionalField;
42
 
43
    @Column(name = "response_msg")
44
    private String responseMsg;
45
 
46
    @Column(name = "recording_file")
47
    private String recordingFile;
48
 
49
    @Column(name = "start_time")
50
    private LocalDateTime startTime;
51
 
52
    @Column(name = "end_time")
53
    private LocalDateTime endTime;
54
 
55
    @Column(name = "connected_duration")
56
    private int connectedDuration;
57
 
58
    @Column(name = "agent_leg_status")
59
    private int agentLegStatus;
60
 
61
    @Column(name = "customer_leg_status")
62
    private int customerLegStatus;
63
 
34530 ranu 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
 
33585 ranu 73
    public Long getId() {
32929 amit.gupta 74
        return id;
75
    }
76
 
33585 ranu 77
    public void setId(Long id) {
32929 amit.gupta 78
        this.id = id;
79
    }
80
 
33585 ranu 81
    public String getCallStatus() {
82
        return callStatus;
32929 amit.gupta 83
    }
84
 
33585 ranu 85
    public void setCallStatus(String callStatus) {
86
        this.callStatus = callStatus;
32929 amit.gupta 87
    }
88
 
33585 ranu 89
    public int getSmeId() {
90
        return smeId;
32929 amit.gupta 91
    }
92
 
33585 ranu 93
    public void setSmeId(int smeId) {
94
        this.smeId = smeId;
32929 amit.gupta 95
    }
96
 
33585 ranu 97
    public String getSessionId() {
98
        return sessionId;
32929 amit.gupta 99
    }
100
 
33585 ranu 101
    public void setSessionId(String sessionId) {
102
        this.sessionId = sessionId;
32929 amit.gupta 103
    }
104
 
33585 ranu 105
    public int getCallMode() {
106
        return callMode;
32929 amit.gupta 107
    }
108
 
33585 ranu 109
    public void setCallMode(int callMode) {
110
        this.callMode = callMode;
32929 amit.gupta 111
    }
112
 
33585 ranu 113
    public String getAgentNumber() {
114
        return agentNumber;
32929 amit.gupta 115
    }
116
 
33585 ranu 117
    public void setAgentNumber(String agentNumber) {
118
        this.agentNumber = agentNumber;
32929 amit.gupta 119
    }
120
 
33585 ranu 121
    public String getCustomerNumber() {
122
        return customerNumber;
123
    }
124
 
125
    public void setCustomerNumber(String customerNumber) {
126
        this.customerNumber = customerNumber;
127
    }
128
 
129
    public String getCustomDtmf() {
130
        return customDtmf;
131
    }
132
 
133
    public void setCustomDtmf(String customDtmf) {
134
        this.customDtmf = customDtmf;
135
    }
136
 
137
    public int getCallDuration() {
138
        return callDuration;
139
    }
140
 
141
    public void setCallDuration(int callDuration) {
142
        this.callDuration = callDuration;
143
    }
144
 
145
    public String getOptionalField() {
146
        return optionalField;
147
    }
148
 
149
    public void setOptionalField(String optionalField) {
150
        this.optionalField = optionalField;
151
    }
152
 
153
    public String getResponseMsg() {
154
        return responseMsg;
155
    }
156
 
157
    public void setResponseMsg(String responseMsg) {
158
        this.responseMsg = responseMsg;
159
    }
160
 
161
    public String getRecordingFile() {
162
        return recordingFile;
163
    }
164
 
165
    public void setRecordingFile(String recordingFile) {
166
        this.recordingFile = recordingFile;
167
    }
168
 
169
    public LocalDateTime getStartTime() {
170
        return startTime;
171
    }
172
 
173
    public void setStartTime(LocalDateTime startTime) {
174
        this.startTime = startTime;
175
    }
176
 
177
    public LocalDateTime getEndTime() {
178
        return endTime;
179
    }
180
 
181
    public void setEndTime(LocalDateTime endTime) {
182
        this.endTime = endTime;
183
    }
184
 
185
    public int getConnectedDuration() {
186
        return connectedDuration;
187
    }
188
 
189
    public void setConnectedDuration(int connectedDuration) {
190
        this.connectedDuration = connectedDuration;
191
    }
192
 
193
    public int getAgentLegStatus() {
194
        return agentLegStatus;
195
    }
196
 
197
    public void setAgentLegStatus(int agentLegStatus) {
198
        this.agentLegStatus = agentLegStatus;
199
    }
200
 
201
    public int getCustomerLegStatus() {
202
        return customerLegStatus;
203
    }
204
 
205
    public void setCustomerLegStatus(int customerLegStatus) {
206
        this.customerLegStatus = customerLegStatus;
207
    }
208
 
34530 ranu 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
 
32929 amit.gupta 233
    @Override
33585 ranu 234
    public String toString() {
235
        return "AgentRecording{" +
236
                "id=" + id +
237
                ", callStatus='" + callStatus + '\'' +
238
                ", smeId=" + smeId +
239
                ", sessionId='" + sessionId + '\'' +
240
                ", callMode=" + callMode +
241
                ", agentNumber='" + agentNumber + '\'' +
242
                ", customerNumber='" + customerNumber + '\'' +
243
                ", customDtmf='" + customDtmf + '\'' +
244
                ", callDuration=" + callDuration +
245
                ", optionalField='" + optionalField + '\'' +
246
                ", responseMsg='" + responseMsg + '\'' +
247
                ", recordingFile='" + recordingFile + '\'' +
248
                ", startTime=" + startTime +
249
                ", endTime=" + endTime +
250
                ", connectedDuration=" + connectedDuration +
251
                ", agentLegStatus=" + agentLegStatus +
252
                ", customerLegStatus=" + customerLegStatus +
34530 ranu 253
                ", callDate=" + callDate +
254
                ", customerStatus='" + customerStatus + '\'' +
255
                ", callUuid='" + callUuid + '\'' +
33585 ranu 256
                '}';
257
    }
258
 
259
    @Override
32929 amit.gupta 260
    public boolean equals(Object o) {
261
        if (this == o) return true;
262
        if (o == null || getClass() != o.getClass()) return false;
263
        AgentRecording that = (AgentRecording) o;
34530 ranu 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);
32929 amit.gupta 265
    }
266
 
267
    @Override
268
    public int hashCode() {
34530 ranu 269
        return Objects.hash(id, callStatus, smeId, sessionId, callMode, agentNumber, customerNumber, customDtmf, callDuration, optionalField, responseMsg, recordingFile, startTime, endTime, connectedDuration, agentLegStatus, customerLegStatus, callDate, customerStatus, callUuid);
32929 amit.gupta 270
    }
271
}