Subversion Repositories SmartDukaan

Rev

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

Rev 25651 Rev 25683
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;
3
import java.time.LocalDateTime;
4
import java.time.ZoneOffset;
4
import java.time.ZoneOffset;
5
 
5
 
-
 
6
import com.spice.profitmandi.common.enumuration.MessageType;
-
 
7
 
6
public class Notification {
8
public class Notification {
7
	private String cid;
9
	private String cid;
8
	private String title;
10
	private String title;
9
	private String type;
11
	private String type;
10
	private String message;
12
	private String message;
11
	private String imageUrl;
13
	private String imageUrl;
12
	private String url;
14
	private String url;
13
	private Boolean showImage;
15
	private Boolean showImage;
14
	private long created;
16
	private long created;
15
	
17
 
16
	public LocalDateTime getDate() {
18
	public LocalDateTime getDate() {
17
		return LocalDateTime.ofEpochSecond(created/1000, 0, ZoneOffset.ofHoursMinutes(5, 30));
19
		return LocalDateTime.ofEpochSecond(created / 1000, 0, ZoneOffset.ofHoursMinutes(5, 30));
18
	}
20
	}
-
 
21
 
19
	private boolean expired;
22
	private boolean expired;
-
 
23
 
20
	private boolean annoucement;
24
	private MessageType messageType;
-
 
25
 
21
	private Integer documentId;
26
	private Integer documentId;
22
	private String documentName;
27
	private String documentName;
23
 
28
 
-
 
29
	public MessageType getMessageType() {
-
 
30
		return messageType;
-
 
31
	}
-
 
32
 
-
 
33
	public void setMessageType(MessageType messageType) {
-
 
34
		this.messageType = messageType;
-
 
35
	}
-
 
36
 
24
	public String getDocumentName() {
37
	public String getDocumentName() {
25
		return documentName;
38
		return documentName;
26
	}
39
	}
27
 
40
 
28
	public void setDocumentName(String documentName) {
41
	public void setDocumentName(String documentName) {
Line 35... Line 48...
35
 
48
 
36
	public void setDocumentId(Integer documentId) {
49
	public void setDocumentId(Integer documentId) {
37
		this.documentId = documentId;
50
		this.documentId = documentId;
38
	}
51
	}
39
 
52
 
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() {
53
	public String getCid() {
49
		return cid;
54
		return cid;
50
	}
55
	}
51
 
56
 
52
	public void setCid(String cid) {
57
	public void setCid(String cid) {
Line 119... Line 124...
119
 
124
 
120
	public void setShowImage(Boolean showImage) {
125
	public void setShowImage(Boolean showImage) {
121
		this.showImage = showImage;
126
		this.showImage = showImage;
122
	}
127
	}
123
 
128
 
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
-
 
128
				+ ", expired=" + expired + ", annoucement=" + annoucement + ", documentId=" + documentId
-
 
129
				+ ", documentName=" + documentName + "]";
-
 
130
	}
-
 
131
 
-
 
132
}
129
}
133
130