Subversion Repositories SmartDukaan

Rev

Rev 35686 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
35679 ranu 1
package com.spice.profitmandi.dao.entity.cs;
2
 
3
import javax.persistence.*;
4
import java.time.LocalDate;
5
import java.time.LocalTime;
6
import java.util.Objects;
7
 
8
@Entity
9
@Table(name = "cs.agent_call_log", uniqueConstraints = {@UniqueConstraint(columnNames = "call_uuid")})
10
public class AgentCallLog {
11
 
12
    @Id
13
    @GeneratedValue(strategy = GenerationType.IDENTITY)
14
    private Long id;
15
 
16
    @Column(name = "call_date")
17
    private LocalDate callDate;
18
 
19
    @Column(name = "call_time")
20
    private LocalTime callTime;
21
 
22
    @Column(name = "call_status")
23
    private String callStatus;
24
 
25
    @Column(name = "call_duration")
26
    private String callDuration;
27
 
28
    @Column(name = "caller_id")
29
    private String callerId;
30
 
31
    @Column(name = "customer_number")
32
    private String customerNumber;
33
 
34
    @Column(name = "agent_number")
35
    private String agentNumber;
36
 
37
    @Column(name = "call_uuid", unique = true)
38
    private String callUuid;
39
 
40
    @Column(name = "recording_url")
41
    private String recordingUrl;
42
 
43
    @Column(name = "call_transfer_duration")
44
    private String callTransferDuration;
45
 
46
    @Column(name = "customer_status")
47
    private String customerStatus;
48
 
49
    @Column(name = "sip_id")
50
    private String sipId;
51
 
52
    public Long getId() {
53
        return id;
54
    }
55
 
56
    public void setId(Long id) {
57
        this.id = id;
58
    }
59
 
60
    public LocalDate getCallDate() {
61
        return callDate;
62
    }
63
 
64
    public void setCallDate(LocalDate callDate) {
65
        this.callDate = callDate;
66
    }
67
 
68
    public LocalTime getCallTime() {
69
        return callTime;
70
    }
71
 
72
    public void setCallTime(LocalTime callTime) {
73
        this.callTime = callTime;
74
    }
75
 
76
    public String getCallStatus() {
77
        return callStatus;
78
    }
79
 
80
    public void setCallStatus(String callStatus) {
81
        this.callStatus = callStatus;
82
    }
83
 
84
    public String getCallDuration() {
85
        return callDuration;
86
    }
87
 
88
    public void setCallDuration(String callDuration) {
89
        this.callDuration = callDuration;
90
    }
91
 
92
    public String getCallerId() {
93
        return callerId;
94
    }
95
 
96
    public void setCallerId(String callerId) {
97
        this.callerId = callerId;
98
    }
99
 
100
    public String getCustomerNumber() {
101
        return customerNumber;
102
    }
103
 
104
    public void setCustomerNumber(String customerNumber) {
105
        this.customerNumber = customerNumber;
106
    }
107
 
108
    public String getAgentNumber() {
109
        return agentNumber;
110
    }
111
 
112
    public void setAgentNumber(String agentNumber) {
113
        this.agentNumber = agentNumber;
114
    }
115
 
116
    public String getCallUuid() {
117
        return callUuid;
118
    }
119
 
120
    public void setCallUuid(String callUuid) {
121
        this.callUuid = callUuid;
122
    }
123
 
124
    public String getRecordingUrl() {
125
        return recordingUrl;
126
    }
127
 
128
    public void setRecordingUrl(String recordingUrl) {
129
        this.recordingUrl = recordingUrl;
130
    }
131
 
132
    public String getCallTransferDuration() {
133
        return callTransferDuration;
134
    }
135
 
136
    public void setCallTransferDuration(String callTransferDuration) {
137
        this.callTransferDuration = callTransferDuration;
138
    }
139
 
140
    public String getCustomerStatus() {
141
        return customerStatus;
142
    }
143
 
144
    public void setCustomerStatus(String customerStatus) {
145
        this.customerStatus = customerStatus;
146
    }
147
 
148
    public String getSipId() {
149
        return sipId;
150
    }
151
 
152
    public void setSipId(String sipId) {
153
        this.sipId = sipId;
154
    }
155
 
156
    @Override
157
    public String toString() {
158
        return "AgentCallLog{" +
159
                "id=" + id +
160
                ", callDate=" + callDate +
161
                ", callTime=" + callTime +
162
                ", callStatus='" + callStatus + '\'' +
163
                ", callDuration='" + callDuration + '\'' +
164
                ", callerId='" + callerId + '\'' +
165
                ", customerNumber='" + customerNumber + '\'' +
166
                ", agentNumber='" + agentNumber + '\'' +
167
                ", callUuid='" + callUuid + '\'' +
168
                ", recordingUrl='" + recordingUrl + '\'' +
169
                ", callTransferDuration='" + callTransferDuration + '\'' +
170
                ", customerStatus='" + customerStatus + '\'' +
171
                ", sipId='" + sipId + '\'' +
172
                '}';
173
    }
174
 
175
    @Override
176
    public boolean equals(Object o) {
177
        if (this == o) return true;
178
        if (o == null || getClass() != o.getClass()) return false;
179
        AgentCallLog that = (AgentCallLog) o;
180
        return Objects.equals(id, that.id) &&
181
                Objects.equals(callDate, that.callDate) &&
182
                Objects.equals(callTime, that.callTime) &&
183
                Objects.equals(callStatus, that.callStatus) &&
184
                Objects.equals(callDuration, that.callDuration) &&
185
                Objects.equals(callerId, that.callerId) &&
186
                Objects.equals(customerNumber, that.customerNumber) &&
187
                Objects.equals(agentNumber, that.agentNumber) &&
188
                Objects.equals(callUuid, that.callUuid) &&
189
                Objects.equals(recordingUrl, that.recordingUrl) &&
190
                Objects.equals(callTransferDuration, that.callTransferDuration) &&
191
                Objects.equals(customerStatus, that.customerStatus) &&
192
                Objects.equals(sipId, that.sipId);
193
    }
194
 
195
    @Override
196
    public int hashCode() {
197
        return Objects.hash(id, callDate, callTime, callStatus, callDuration, callerId, customerNumber,
198
                agentNumber, callUuid, recordingUrl, callTransferDuration, customerStatus, sipId);
199
    }
200
}