Subversion Repositories SmartDukaan

Rev

Rev 25649 | Rev 25683 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.common.model;

import java.time.LocalDateTime;
import java.time.ZoneOffset;

public class Notification {
        private String cid;
        private String title;
        private String type;
        private String message;
        private String imageUrl;
        private String url;
        private Boolean showImage;
        private long created;
        
        public LocalDateTime getDate() {
                return LocalDateTime.ofEpochSecond(created/1000, 0, ZoneOffset.ofHoursMinutes(5, 30));
        }
        private boolean expired;
        private boolean annoucement;
        private Integer documentId;
        private String documentName;

        public String getDocumentName() {
                return documentName;
        }

        public void setDocumentName(String documentName) {
                this.documentName = documentName;
        }

        public Integer getDocumentId() {
                return documentId;
        }

        public void setDocumentId(Integer documentId) {
                this.documentId = documentId;
        }

        public boolean isAnnoucement() {
                return annoucement;
        }

        public void setAnnoucement(boolean annoucement) {
                this.annoucement = annoucement;
        }

        public String getCid() {
                return cid;
        }

        public void setCid(String cid) {
                this.cid = cid;
        }

        public String getTitle() {
                return title;
        }

        public void setTitle(String title) {
                this.title = title;
        }

        public String getType() {
                return type;
        }

        public void setType(String type) {
                this.type = type;
        }

        public String getMessage() {
                return message;
        }

        public void setMessage(String message) {
                this.message = message;
        }

        public String getUrl() {
                return url;
        }

        public void setUrl(String url) {
                this.url = url;
        }

        public boolean isExpired() {
                return expired;
        }

        public String getImageUrl() {
                return imageUrl;
        }

        public void setImageUrl(String imageUrl) {
                this.imageUrl = imageUrl;
        }

        public Boolean getShowImage() {
                return showImage;
        }

        public void setExpired(boolean expired) {
                this.expired = expired;
        }

        public long getCreated() {
                return created;
        }

        public void setCreated(long created) {
                this.created = created;
        }

        public Boolean isShowImage() {
                return showImage;
        }

        public void setShowImage(Boolean showImage) {
                this.showImage = showImage;
        }

        @Override
        public String toString() {
                return "Notification [cid=" + cid + ", title=" + title + ", type=" + type + ", message=" + message
                                + ", imageUrl=" + imageUrl + ", url=" + url + ", showImage=" + showImage + ", created=" + created
                                + ", expired=" + expired + ", annoucement=" + annoucement + ", documentId=" + documentId
                                + ", documentName=" + documentName + "]";
        }

}