Subversion Repositories SmartDukaan

Rev

Rev 32923 | Details | Compare with Previous | 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
 
32940 ranu 32
    @Column(name = "activity_id")
33
    private int activityId;
32923 ranu 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
 
32940 ranu 53
    public int getId() {
54
        return id;
32923 ranu 55
    }
56
 
32940 ranu 57
    public void setId(int id) {
58
        this.id = id;
32923 ranu 59
    }
60
 
32940 ranu 61
    public int getActivityId() {
62
        return activityId;
63
    }
32923 ranu 64
 
32940 ranu 65
    public void setActivityId(int activityId) {
66
        this.activityId = activityId;
67
    }
68
 
69
 
32923 ranu 70
    public String getMobile() {
71
        return mobile;
72
    }
73
 
74
    public void setMobile(String mobile) {
75
        this.mobile = mobile;
76
    }
77
 
78
 
79
    public String getMediaUrl() {return mediaUrl;}
80
 
81
    public void setMediaUrl(String mediaUrl) {this.mediaUrl = mediaUrl;}
82
 
83
 
84
    public int getDurationInSec() {
85
        return durationInSec;
86
    }
87
 
88
    public void setDurationInSec(int durationInSec) {
89
        this.durationInSec = durationInSec;
90
    }
91
 
92
 
93
    public LocalDateTime getCallTime() {
94
        return callTime;
95
    }
96
 
97
    public void setCallTime(LocalDateTime callTime) {
98
        this.callTime = callTime;
99
    }
100
 
101
 
102
    public int getCreatedBy() {
103
        return createdBy;
104
    }
105
 
106
    public void setCreatedBy(int createdBy) {this.createdBy = createdBy;}
107
 
108
 
109
    public LocalDateTime getCreateTimestamp() {
110
        return createTimestamp;
111
    }
112
 
113
    public void setCreateTimestamp(LocalDateTime createTimestamp) {
114
        this.createTimestamp = createTimestamp;
115
    }
116
 
117
 
118
 
119
    @Override
120
    public boolean equals(Object o) {
121
        if (this == o) return true;
122
        if (o == null || getClass() != o.getClass()) return false;
123
        TicketActivityMedia that = (TicketActivityMedia) o;
32940 ranu 124
        return activityId == that.activityId && 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);
32923 ranu 125
    }
126
 
127
    @Override
128
    public String toString() {
129
        return "TicketActivityMedia{" +
32940 ranu 130
                ", activityId=" + activityId +
32923 ranu 131
                ", createdBy=" + createdBy +
132
                ", createTimestamp=" + createTimestamp +
133
                ", durationInSec=" + durationInSec +
134
                ", mobile='" + mobile + '\'' +
135
                ", callTime='" + callTime + '\'' +
136
                ", mediaUrl='" + mediaUrl + '\'' +
137
                '}';
138
    }
139
 
140
    @Override
141
    public int hashCode() {
32940 ranu 142
        return Objects.hash(id, activityId, createdBy, createTimestamp, durationInSec, mobile, callTime, mediaUrl);
32923 ranu 143
    }
144
 
145
 
146
}