Subversion Repositories SmartDukaan

Rev

Rev 32929 | Go to most recent revision | 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.*;
4
import java.time.LocalDateTime;
5
import java.util.Objects;
6
 
7
@Entity
33585 ranu 8
@Table(name = "cs.agent_recordings",uniqueConstraints = {@UniqueConstraint(columnNames = "session_id")})
32929 amit.gupta 9
public class AgentRecording {
10
 
11
    @Id
12
    @GeneratedValue(strategy = GenerationType.IDENTITY)
33585 ranu 13
    private Long id;
32929 amit.gupta 14
 
33585 ranu 15
    @Column(name = "call_status")
16
    private String callStatus;
32929 amit.gupta 17
 
33585 ranu 18
    @Column(name = "sme_id")
19
    private int smeId;
32929 amit.gupta 20
 
33585 ranu 21
    @Column(name = "session_id", unique = true)
22
    private String sessionId;
32929 amit.gupta 23
 
33585 ranu 24
    @Column(name = "call_mode")
25
    private int callMode;
32929 amit.gupta 26
 
33585 ranu 27
    @Column(name = "agent_number")
28
    private String agentNumber;
32929 amit.gupta 29
 
33585 ranu 30
    @Column(name = "customer_number")
31
    private String customerNumber;
32929 amit.gupta 32
 
33585 ranu 33
    @Column(name = "custom_dtmf")
34
    private String customDtmf;
35
 
36
    @Column(name = "call_duration")
37
    private int callDuration;
38
 
39
    @Column(name = "optional_field")
40
    private String optionalField;
41
 
42
    @Column(name = "response_msg")
43
    private String responseMsg;
44
 
45
    @Column(name = "recording_file")
46
    private String recordingFile;
47
 
48
    @Column(name = "start_time")
49
    private LocalDateTime startTime;
50
 
51
    @Column(name = "end_time")
52
    private LocalDateTime endTime;
53
 
54
    @Column(name = "connected_duration")
55
    private int connectedDuration;
56
 
57
    @Column(name = "agent_leg_status")
58
    private int agentLegStatus;
59
 
60
    @Column(name = "customer_leg_status")
61
    private int customerLegStatus;
62
 
63
    public Long getId() {
32929 amit.gupta 64
        return id;
65
    }
66
 
33585 ranu 67
    public void setId(Long id) {
32929 amit.gupta 68
        this.id = id;
69
    }
70
 
33585 ranu 71
    public String getCallStatus() {
72
        return callStatus;
32929 amit.gupta 73
    }
74
 
33585 ranu 75
    public void setCallStatus(String callStatus) {
76
        this.callStatus = callStatus;
32929 amit.gupta 77
    }
78
 
33585 ranu 79
    public int getSmeId() {
80
        return smeId;
32929 amit.gupta 81
    }
82
 
33585 ranu 83
    public void setSmeId(int smeId) {
84
        this.smeId = smeId;
32929 amit.gupta 85
    }
86
 
33585 ranu 87
    public String getSessionId() {
88
        return sessionId;
32929 amit.gupta 89
    }
90
 
33585 ranu 91
    public void setSessionId(String sessionId) {
92
        this.sessionId = sessionId;
32929 amit.gupta 93
    }
94
 
33585 ranu 95
    public int getCallMode() {
96
        return callMode;
32929 amit.gupta 97
    }
98
 
33585 ranu 99
    public void setCallMode(int callMode) {
100
        this.callMode = callMode;
32929 amit.gupta 101
    }
102
 
33585 ranu 103
    public String getAgentNumber() {
104
        return agentNumber;
32929 amit.gupta 105
    }
106
 
33585 ranu 107
    public void setAgentNumber(String agentNumber) {
108
        this.agentNumber = agentNumber;
32929 amit.gupta 109
    }
110
 
33585 ranu 111
    public String getCustomerNumber() {
112
        return customerNumber;
113
    }
114
 
115
    public void setCustomerNumber(String customerNumber) {
116
        this.customerNumber = customerNumber;
117
    }
118
 
119
    public String getCustomDtmf() {
120
        return customDtmf;
121
    }
122
 
123
    public void setCustomDtmf(String customDtmf) {
124
        this.customDtmf = customDtmf;
125
    }
126
 
127
    public int getCallDuration() {
128
        return callDuration;
129
    }
130
 
131
    public void setCallDuration(int callDuration) {
132
        this.callDuration = callDuration;
133
    }
134
 
135
    public String getOptionalField() {
136
        return optionalField;
137
    }
138
 
139
    public void setOptionalField(String optionalField) {
140
        this.optionalField = optionalField;
141
    }
142
 
143
    public String getResponseMsg() {
144
        return responseMsg;
145
    }
146
 
147
    public void setResponseMsg(String responseMsg) {
148
        this.responseMsg = responseMsg;
149
    }
150
 
151
    public String getRecordingFile() {
152
        return recordingFile;
153
    }
154
 
155
    public void setRecordingFile(String recordingFile) {
156
        this.recordingFile = recordingFile;
157
    }
158
 
159
    public LocalDateTime getStartTime() {
160
        return startTime;
161
    }
162
 
163
    public void setStartTime(LocalDateTime startTime) {
164
        this.startTime = startTime;
165
    }
166
 
167
    public LocalDateTime getEndTime() {
168
        return endTime;
169
    }
170
 
171
    public void setEndTime(LocalDateTime endTime) {
172
        this.endTime = endTime;
173
    }
174
 
175
    public int getConnectedDuration() {
176
        return connectedDuration;
177
    }
178
 
179
    public void setConnectedDuration(int connectedDuration) {
180
        this.connectedDuration = connectedDuration;
181
    }
182
 
183
    public int getAgentLegStatus() {
184
        return agentLegStatus;
185
    }
186
 
187
    public void setAgentLegStatus(int agentLegStatus) {
188
        this.agentLegStatus = agentLegStatus;
189
    }
190
 
191
    public int getCustomerLegStatus() {
192
        return customerLegStatus;
193
    }
194
 
195
    public void setCustomerLegStatus(int customerLegStatus) {
196
        this.customerLegStatus = customerLegStatus;
197
    }
198
 
32929 amit.gupta 199
    @Override
33585 ranu 200
    public String toString() {
201
        return "AgentRecording{" +
202
                "id=" + id +
203
                ", callStatus='" + callStatus + '\'' +
204
                ", smeId=" + smeId +
205
                ", sessionId='" + sessionId + '\'' +
206
                ", callMode=" + callMode +
207
                ", agentNumber='" + agentNumber + '\'' +
208
                ", customerNumber='" + customerNumber + '\'' +
209
                ", customDtmf='" + customDtmf + '\'' +
210
                ", callDuration=" + callDuration +
211
                ", optionalField='" + optionalField + '\'' +
212
                ", responseMsg='" + responseMsg + '\'' +
213
                ", recordingFile='" + recordingFile + '\'' +
214
                ", startTime=" + startTime +
215
                ", endTime=" + endTime +
216
                ", connectedDuration=" + connectedDuration +
217
                ", agentLegStatus=" + agentLegStatus +
218
                ", customerLegStatus=" + customerLegStatus +
219
                '}';
220
    }
221
 
222
    @Override
32929 amit.gupta 223
    public boolean equals(Object o) {
224
        if (this == o) return true;
225
        if (o == null || getClass() != o.getClass()) return false;
226
        AgentRecording that = (AgentRecording) o;
33585 ranu 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);
32929 amit.gupta 228
    }
229
 
230
    @Override
231
    public int hashCode() {
33585 ranu 232
        return Objects.hash(id, callStatus, smeId, sessionId, callMode, agentNumber, customerNumber, customDtmf, callDuration, optionalField, responseMsg, recordingFile, startTime, endTime, connectedDuration, agentLegStatus, customerLegStatus);
32929 amit.gupta 233
    }
234
}