Subversion Repositories SmartDukaan

Rev

Rev 25649 | Rev 25683 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 25649 Rev 25651
Line 1... Line 1...
1
package com.spice.profitmandi.common.model;
1
package com.spice.profitmandi.common.model;
2
 
2
 
-
 
3
import java.time.LocalDateTime;
-
 
4
import java.time.ZoneOffset;
-
 
5
 
3
public class Notification {
6
public class Notification {
4
	private String cid;
7
	private String cid;
5
	private String title;
8
	private String title;
6
	private String type;
9
	private String type;
7
	private String message;
10
	private String message;
8
	private String imageUrl;
11
	private String imageUrl;
9
	private String url;
12
	private String url;
10
	private Boolean showImage;
13
	private Boolean showImage;
11
	private long created;
14
	private long created;
-
 
15
	
-
 
16
	public LocalDateTime getDate() {
-
 
17
		return LocalDateTime.ofEpochSecond(created/1000, 0, ZoneOffset.ofHoursMinutes(5, 30));
-
 
18
	}
12
	private boolean expired;
19
	private boolean expired;
13
	private boolean annoucement;
20
	private boolean annoucement;
-
 
21
	private Integer documentId;
-
 
22
	private String documentName;
-
 
23
 
-
 
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
	}
14
 
39
 
15
	public boolean isAnnoucement() {
40
	public boolean isAnnoucement() {
16
		return annoucement;
41
		return annoucement;
17
	}
42
	}
18
 
43
 
Line 98... Line 123...
98
 
123
 
99
	@Override
124
	@Override
100
	public String toString() {
125
	public String toString() {
101
		return "Notification [cid=" + cid + ", title=" + title + ", type=" + type + ", message=" + message
126
		return "Notification [cid=" + cid + ", title=" + title + ", type=" + type + ", message=" + message
102
				+ ", imageUrl=" + imageUrl + ", url=" + url + ", showImage=" + showImage + ", created=" + created
127
				+ ", imageUrl=" + imageUrl + ", url=" + url + ", showImage=" + showImage + ", created=" + created
103
				+ ", expired=" + expired + ", annoucement=" + annoucement + "]";
128
				+ ", expired=" + expired + ", annoucement=" + annoucement + ", documentId=" + documentId
-
 
129
				+ ", documentName=" + documentName + "]";
104
	}
130
	}
105
 
131
 
106
}
132
}
107
133