Subversion Repositories SmartDukaan

Rev

Rev 25374 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.dao.model;

import com.spice.profitmandi.common.model.LinkedEntity;

import java.time.LocalDateTime;
import java.util.List;

public class SimpleCampaignParams {
        public String getType() {
                return type;
        }

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

        private String message;
        private String title;
        private String type;
        private String imageUrl;
        private Boolean showImage;
        private String url;

        private LocalDateTime expireTimestamp;

    // ── Pop-up only ───────────────────────────────────────────────
    private String buttonLabel;
    private Boolean showCta;
    private Boolean showClose;
    private String showOnPage;           // "any" or a specific page identifier
    private Integer autoCloseSeconds;    // null = until partner closes it
    private String frequencyCap;         // ONCE_PER_PARTNER / ALWAYS
    private LocalDateTime liveFrom;
    private LocalDateTime liveUntil;

    // ── Story only ────────────────────────────────────────────────
    private List<String> storyCards;     // multi-image carousel URLs
    private String postInCategory;       // shelf identifier
    private Integer playDurationSeconds; // default 5
    private String expiresAfterPolicy;   // FIXED_HOURS / ON_DATE

    // ── Push multi-image (in addition to single imageUrl for backward compat) ──
    private List<String> images;

    // ── Shared: attached scheme / offer / product for deep-linking on tap ─
    private List<LinkedEntity> linkedEntities;

        public SimpleCampaignParams(String message, String title, String type, String imageUrl, String url,
                        Boolean showImage, LocalDateTime expireTimestamp) {
                super();
                this.message = message;
                this.title = title;
                this.type = type;
                this.imageUrl = imageUrl;
                this.url = url;
                this.showImage = showImage;
                this.expireTimestamp = expireTimestamp;
        }

        public SimpleCampaignParams() {
                super();
        }

        @Override
        public String toString() {
                return "SimpleCampaignParams [message=" + message + ", title=" + title + ", type=" + type + ", imageUrl="
                                + imageUrl + ", showImage=" + showImage + ", url=" + url + ", expireTimestamp=" + expireTimestamp + "]";
        }

        public String getUrl() {
                return url;
        }

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

        public Boolean getShowImage() {
                return showImage;
        }

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

        public String getMessage() {
                return message;
        }

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

        public String getTitle() {
                return title;
        }

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

        public String getImageUrl() {
                return imageUrl;
        }

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

        public LocalDateTime getExpireTimestamp() {
                return expireTimestamp;
        }

        public void setExpireTimestamp(LocalDateTime expireTimestamp) {
                this.expireTimestamp = expireTimestamp;
        }

    public String getButtonLabel() {
        return buttonLabel;
    }

    public void setButtonLabel(String buttonLabel) {
        this.buttonLabel = buttonLabel;
    }

    public Boolean getShowCta() {
        return showCta;
    }

    public void setShowCta(Boolean showCta) {
        this.showCta = showCta;
    }

    public Boolean getShowClose() {
        return showClose;
    }

    public void setShowClose(Boolean showClose) {
        this.showClose = showClose;
    }

    public String getShowOnPage() {
        return showOnPage;
    }

    public void setShowOnPage(String showOnPage) {
        this.showOnPage = showOnPage;
    }

    public Integer getAutoCloseSeconds() {
        return autoCloseSeconds;
    }

    public void setAutoCloseSeconds(Integer autoCloseSeconds) {
        this.autoCloseSeconds = autoCloseSeconds;
    }

    public String getFrequencyCap() {
        return frequencyCap;
    }

    public void setFrequencyCap(String frequencyCap) {
        this.frequencyCap = frequencyCap;
    }

    public LocalDateTime getLiveFrom() {
        return liveFrom;
    }

    public void setLiveFrom(LocalDateTime liveFrom) {
        this.liveFrom = liveFrom;
    }

    public LocalDateTime getLiveUntil() {
        return liveUntil;
    }

    public void setLiveUntil(LocalDateTime liveUntil) {
        this.liveUntil = liveUntil;
    }

    public List<String> getStoryCards() {
        return storyCards;
    }

    public void setStoryCards(List<String> storyCards) {
        this.storyCards = storyCards;
    }

    public String getPostInCategory() {
        return postInCategory;
    }

    public void setPostInCategory(String postInCategory) {
        this.postInCategory = postInCategory;
    }

    public Integer getPlayDurationSeconds() {
        return playDurationSeconds;
    }

    public void setPlayDurationSeconds(Integer playDurationSeconds) {
        this.playDurationSeconds = playDurationSeconds;
    }

    public String getExpiresAfterPolicy() {
        return expiresAfterPolicy;
    }

    public void setExpiresAfterPolicy(String expiresAfterPolicy) {
        this.expiresAfterPolicy = expiresAfterPolicy;
    }

    public List<String> getImages() {
        return images;
    }

    public void setImages(List<String> images) {
        this.images = images;
    }

    public List<LinkedEntity> getLinkedEntities() {
        return linkedEntities;
    }

    public void setLinkedEntities(List<LinkedEntity> linkedEntities) {
        this.linkedEntities = linkedEntities;
    }

}