Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
32923 ranu 1
package com.spice.profitmandi.dao.entity.cs;
2
 
3
import java.io.Serializable;
4
import java.time.LocalDateTime;
5
import java.util.Objects;
6
 
7
import javax.persistence.Column;
8
import javax.persistence.Entity;
9
import javax.persistence.GeneratedValue;
10
import javax.persistence.GenerationType;
11
import javax.persistence.Id;
12
import javax.persistence.Table;
13
 
14
/**
15
 * This class basically contains api details
16
 *
17
 * @author amit
18
 *
19
 */
20
 
21
@Entity
22
@Table(name = "cs.ticket_activity_media")
23
public class TicketActivityMedia implements Serializable {
24
 
25
    private static final long serialVersionUID = 1L;
26
 
27
    @Id
28
    @Column(name = "id", unique = true, updatable = false)
29
    @GeneratedValue(strategy = GenerationType.IDENTITY)
30
    private int id;
31
 
32
    @Column(name = "ticket_id")
33
    private int ticketId;
34
 
35
    @Column(name = "created_by")
36
    private int createdBy;
37
 
38
    @Column(name = "create_timestamp")
39
    private LocalDateTime createTimestamp;
40
 
41
    @Column(name = "duration")
42
    private int durationInSec;
43
 
44
    @Column(name = "mobile")
45
    private String mobile;
46
 
47
    @Column(name = "call_time")
48
    private LocalDateTime callTime;
49
 
50
    @Column(name = "media_url")
51
    private String mediaUrl;
52
 
53
    public int getTicketId() {
54
        return ticketId;
55
    }
56
 
57
    public void setTicketId(int ticketId) {
58
        this.ticketId = ticketId;
59
    }
60
 
61
 
62
    public String getMobile() {
63
        return mobile;
64
    }
65
 
66
    public void setMobile(String mobile) {
67
        this.mobile = mobile;
68
    }
69
 
70
 
71
    public String getMediaUrl() {return mediaUrl;}
72
 
73
    public void setMediaUrl(String mediaUrl) {this.mediaUrl = mediaUrl;}
74
 
75
 
76
    public int getDurationInSec() {
77
        return durationInSec;
78
    }
79
 
80
    public void setDurationInSec(int durationInSec) {
81
        this.durationInSec = durationInSec;
82
    }
83
 
84
 
85
    public LocalDateTime getCallTime() {
86
        return callTime;
87
    }
88
 
89
    public void setCallTime(LocalDateTime callTime) {
90
        this.callTime = callTime;
91
    }
92
 
93
 
94
    public int getCreatedBy() {
95
        return createdBy;
96
    }
97
 
98
    public void setCreatedBy(int createdBy) {this.createdBy = createdBy;}
99
 
100
 
101
    public LocalDateTime getCreateTimestamp() {
102
        return createTimestamp;
103
    }
104
 
105
    public void setCreateTimestamp(LocalDateTime createTimestamp) {
106
        this.createTimestamp = createTimestamp;
107
    }
108
 
109
 
110
 
111
    @Override
112
    public boolean equals(Object o) {
113
        if (this == o) return true;
114
        if (o == null || getClass() != o.getClass()) return false;
115
        TicketActivityMedia that = (TicketActivityMedia) o;
116
        return ticketId == that.ticketId && createdBy == that.createdBy && durationInSec == that.durationInSec && Objects.equals(createTimestamp, that.createTimestamp) && Objects.equals(mobile, that.mobile) && Objects.equals(callTime, that.callTime) && Objects.equals(mediaUrl, that.mediaUrl);
117
    }
118
 
119
    @Override
120
    public String toString() {
121
        return "TicketActivityMedia{" +
122
                ", ticketId=" + ticketId +
123
                ", createdBy=" + createdBy +
124
                ", createTimestamp=" + createTimestamp +
125
                ", durationInSec=" + durationInSec +
126
                ", mobile='" + mobile + '\'' +
127
                ", callTime='" + callTime + '\'' +
128
                ", mediaUrl='" + mediaUrl + '\'' +
129
                '}';
130
    }
131
 
132
    @Override
133
    public int hashCode() {
134
        return Objects.hash(id, ticketId, createdBy, createTimestamp, durationInSec, mobile, callTime, mediaUrl);
135
    }
136
 
137
 
138
}