Subversion Repositories SmartDukaan

Rev

Rev 33585 | Go to most recent revision | Details | 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
8
@Table(name = "cs.agent_recordings")
9
public class AgentRecording {
10
 
11
    @Id
12
    @Column(name = "id", unique = true, updatable = false)
13
    @GeneratedValue(strategy = GenerationType.IDENTITY)
14
    private int id;
15
 
16
    @Column
17
    private int agentId;
18
 
19
 
20
    @Column(name = "recording")
21
    private String recordingUrl;
22
 
23
    @Column
24
    private String mobileNumber;
25
 
26
    @Column
27
    private int durationInSec;
28
 
29
    @Column
30
    LocalDateTime talkEndTime;
31
 
32
    public int getId() {
33
        return id;
34
    }
35
 
36
    public void setId(int id) {
37
        this.id = id;
38
    }
39
 
40
    public int getAgentId() {
41
        return agentId;
42
    }
43
 
44
    public void setAgentId(int agentId) {
45
        this.agentId = agentId;
46
    }
47
 
48
    public String getRecordingUrl() {
49
        return recordingUrl;
50
    }
51
 
52
    public void setRecordingUrl(String recordingUrl) {
53
        this.recordingUrl = recordingUrl;
54
    }
55
 
56
    public String getMobileNumber() {
57
        return mobileNumber;
58
    }
59
 
60
    public void setMobileNumber(String mobileNumber) {
61
        this.mobileNumber = mobileNumber;
62
    }
63
 
64
    public int getDurationInSec() {
65
        return durationInSec;
66
    }
67
 
68
    public void setDurationInSec(int durationInSec) {
69
        this.durationInSec = durationInSec;
70
    }
71
 
72
    public LocalDateTime getTalkEndTime() {
73
        return talkEndTime;
74
    }
75
 
76
    public void setTalkEndTime(LocalDateTime talkEndTime) {
77
        this.talkEndTime = talkEndTime;
78
    }
79
 
80
    @Override
81
    public boolean equals(Object o) {
82
        if (this == o) return true;
83
        if (o == null || getClass() != o.getClass()) return false;
84
        AgentRecording that = (AgentRecording) o;
85
        return id == that.id && agentId == that.agentId && durationInSec == that.durationInSec && Objects.equals(recordingUrl, that.recordingUrl) && Objects.equals(mobileNumber, that.mobileNumber) && Objects.equals(talkEndTime, that.talkEndTime);
86
    }
87
 
88
    @Override
89
    public int hashCode() {
90
        return Objects.hash(id, agentId, recordingUrl, mobileNumber, durationInSec, talkEndTime);
91
    }
92
 
93
    @Override
94
    public String toString() {
95
        return "AgentRecording{" +
96
                "id=" + id +
97
                ", agentId=" + agentId +
98
                ", recordingUrl='" + recordingUrl + '\'' +
99
                ", mobileNumber='" + mobileNumber + '\'' +
100
                ", durationInSec=" + durationInSec +
101
                ", talkEndTime=" + talkEndTime +
102
                '}';
103
    }
104
}