Subversion Repositories SmartDukaan

Rev

Rev 25683 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 25683 Rev 29942
Line 1... Line 1...
1
package com.spice.profitmandi.common.model;
1
package com.spice.profitmandi.common.model;
2
 
2
 
-
 
3
import com.spice.profitmandi.common.enumuration.MessageType;
-
 
4
 
3
import java.time.LocalDateTime;
5
import java.time.LocalDateTime;
4
import java.time.ZoneOffset;
6
import java.time.ZoneOffset;
5
 
-
 
6
import com.spice.profitmandi.common.enumuration.MessageType;
7
import java.util.Objects;
7
 
8
 
8
public class Notification {
9
public class Notification {
9
	private String cid;
10
	private String cid;
10
	private String title;
11
	private String title;
11
	private String type;
12
	private String type;
12
	private String message;
13
	private String message;
13
	private String imageUrl;
14
	private String imageUrl;
14
	private String url;
15
	private String url;
15
	private Boolean showImage;
16
	private Boolean showImage;
-
 
17
	private String htmlUrl;
16
	private long created;
18
	private long created;
17
 
19
 
18
	public LocalDateTime getDate() {
20
	public LocalDateTime getDate() {
19
		return LocalDateTime.ofEpochSecond(created / 1000, 0, ZoneOffset.ofHoursMinutes(5, 30));
21
		return LocalDateTime.ofEpochSecond(created / 1000, 0, ZoneOffset.ofHoursMinutes(5, 30));
20
	}
22
	}
Line 60... Line 62...
60
 
62
 
61
	public String getTitle() {
63
	public String getTitle() {
62
		return title;
64
		return title;
63
	}
65
	}
64
 
66
 
-
 
67
	@Override
-
 
68
	public boolean equals(Object o) {
-
 
69
		if (this == o) return true;
-
 
70
		if (o == null || getClass() != o.getClass()) return false;
-
 
71
		Notification that = (Notification) o;
-
 
72
		return created == that.created && expired == that.expired && Objects.equals(cid, that.cid) && Objects.equals(title, that.title) && Objects.equals(type, that.type) && Objects.equals(message, that.message) && Objects.equals(imageUrl, that.imageUrl) && Objects.equals(url, that.url) && Objects.equals(showImage, that.showImage) && Objects.equals(htmlUrl, that.htmlUrl) && messageType == that.messageType && Objects.equals(documentId, that.documentId) && Objects.equals(documentName, that.documentName);
-
 
73
	}
-
 
74
 
-
 
75
	@Override
-
 
76
	public int hashCode() {
-
 
77
		return Objects.hash(cid, title, type, message, imageUrl, url, showImage, htmlUrl, created, expired, messageType, documentId, documentName);
-
 
78
	}
-
 
79
 
-
 
80
	public String getHtmlUrl() {
-
 
81
		return htmlUrl;
-
 
82
	}
-
 
83
 
-
 
84
	public void setHtmlUrl(String htmlUrl) {
-
 
85
		this.htmlUrl = htmlUrl;
-
 
86
	}
-
 
87
 
65
	public void setTitle(String title) {
88
	public void setTitle(String title) {
66
		this.title = title;
89
		this.title = title;
67
	}
90
	}
68
 
91
 
69
	public String getType() {
92
	public String getType() {