Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
32405 jai.hind 1
package com.spice.profitmandi.dao.entity.whatsapp;
2
 
3
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
4
 
5
import javax.persistence.*;
6
import java.time.LocalDateTime;
7
 
8
@Entity
9
@Table(name = "fofo.whatsapp_messages")
10
public class WhatsappMessage {
11
    @Id
12
    @Column
13
    @GeneratedValue(strategy = GenerationType.IDENTITY)
14
    private int id;
15
    @Column(name = "created_timestamp")
16
    private LocalDateTime createdTimestamp;
17
    private String externalId;
18
    private String destAddr;
19
    @Column(name = "sent")
20
    private String sent;
21
    @Column(name = "delivered")
22
    private String delivered;
23
    @Column(name = "`read`")
24
    private String read;
25
    @Column(name = "failed")
26
    private String failed;
27
 
28
    public WhatsappMessage() {
29
        super();
30
    }
31
 
32
    public WhatsappMessage(int id, LocalDateTime createdTimestamp, String externalId, String destAddr, String sent, String delivered, String read, String failed, int failedCount) {
33
        this.id = id;
34
        this.createdTimestamp = createdTimestamp;
35
        this.externalId = externalId;
36
        this.destAddr = destAddr;
37
        this.sent = sent;
38
        this.delivered = delivered;
39
        this.read = read;
40
        this.failed = failed;
41
    }
42
 
43
    public int getId() {
44
        return id;
45
    }
46
 
47
    public void setId(int id) {
48
        this.id = id;
49
    }
50
 
51
    public LocalDateTime getCreatedTimestamp() {
52
        return createdTimestamp;
53
    }
54
 
55
    public void setCreatedTimestamp(LocalDateTime createdTimestamp) {
56
        this.createdTimestamp = createdTimestamp;
57
    }
58
 
59
    public String getExternalId() {
60
        return externalId;
61
    }
62
 
63
    public void setExternalId(String externalId) {
64
        this.externalId = externalId;
65
    }
66
 
67
    public String getDestAddr() {
68
        return destAddr;
69
    }
70
 
71
    public void setDestAddr(String destAddr) {
72
        this.destAddr = destAddr;
73
    }
74
 
75
    public String getSent() {
76
        return sent;
77
    }
78
 
79
    public void setSent(String sent) {
80
        this.sent = sent;
81
    }
82
 
83
    public String getDelivered() {
84
        return delivered;
85
    }
86
 
87
    public void setDelivered(String delivered) {
88
        this.delivered = delivered;
89
    }
90
 
91
    public String getRead() {
92
        return read;
93
    }
94
 
95
    public void setRead(String read) {
96
        this.read = read;
97
    }
98
 
99
    public String getFailed() {
100
        return failed;
101
    }
102
 
103
    public void setFailed(String failed) {
104
        this.failed = failed;
105
    }
106
}