Subversion Repositories SmartDukaan

Rev

Rev 25649 | Rev 25683 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
25649 tejbeer 1
package com.spice.profitmandi.common.model;
2
 
25651 tejbeer 3
import java.time.LocalDateTime;
4
import java.time.ZoneOffset;
5
 
25649 tejbeer 6
public class Notification {
7
	private String cid;
8
	private String title;
9
	private String type;
10
	private String message;
11
	private String imageUrl;
12
	private String url;
13
	private Boolean showImage;
14
	private long created;
25651 tejbeer 15
 
16
	public LocalDateTime getDate() {
17
		return LocalDateTime.ofEpochSecond(created/1000, 0, ZoneOffset.ofHoursMinutes(5, 30));
18
	}
25649 tejbeer 19
	private boolean expired;
20
	private boolean annoucement;
25651 tejbeer 21
	private Integer documentId;
22
	private String documentName;
25649 tejbeer 23
 
25651 tejbeer 24
	public String getDocumentName() {
25
		return documentName;
26
	}
27
 
28
	public void setDocumentName(String documentName) {
29
		this.documentName = documentName;
30
	}
31
 
32
	public Integer getDocumentId() {
33
		return documentId;
34
	}
35
 
36
	public void setDocumentId(Integer documentId) {
37
		this.documentId = documentId;
38
	}
39
 
25649 tejbeer 40
	public boolean isAnnoucement() {
41
		return annoucement;
42
	}
43
 
44
	public void setAnnoucement(boolean annoucement) {
45
		this.annoucement = annoucement;
46
	}
47
 
48
	public String getCid() {
49
		return cid;
50
	}
51
 
52
	public void setCid(String cid) {
53
		this.cid = cid;
54
	}
55
 
56
	public String getTitle() {
57
		return title;
58
	}
59
 
60
	public void setTitle(String title) {
61
		this.title = title;
62
	}
63
 
64
	public String getType() {
65
		return type;
66
	}
67
 
68
	public void setType(String type) {
69
		this.type = type;
70
	}
71
 
72
	public String getMessage() {
73
		return message;
74
	}
75
 
76
	public void setMessage(String message) {
77
		this.message = message;
78
	}
79
 
80
	public String getUrl() {
81
		return url;
82
	}
83
 
84
	public void setUrl(String url) {
85
		this.url = url;
86
	}
87
 
88
	public boolean isExpired() {
89
		return expired;
90
	}
91
 
92
	public String getImageUrl() {
93
		return imageUrl;
94
	}
95
 
96
	public void setImageUrl(String imageUrl) {
97
		this.imageUrl = imageUrl;
98
	}
99
 
100
	public Boolean getShowImage() {
101
		return showImage;
102
	}
103
 
104
	public void setExpired(boolean expired) {
105
		this.expired = expired;
106
	}
107
 
108
	public long getCreated() {
109
		return created;
110
	}
111
 
112
	public void setCreated(long created) {
113
		this.created = created;
114
	}
115
 
116
	public Boolean isShowImage() {
117
		return showImage;
118
	}
119
 
120
	public void setShowImage(Boolean showImage) {
121
		this.showImage = showImage;
122
	}
123
 
124
	@Override
125
	public String toString() {
126
		return "Notification [cid=" + cid + ", title=" + title + ", type=" + type + ", message=" + message
127
				+ ", imageUrl=" + imageUrl + ", url=" + url + ", showImage=" + showImage + ", created=" + created
25651 tejbeer 128
				+ ", expired=" + expired + ", annoucement=" + annoucement + ", documentId=" + documentId
129
				+ ", documentName=" + documentName + "]";
25649 tejbeer 130
	}
131
 
132
}