Subversion Repositories SmartDukaan

Rev

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

Rev 25374 Rev 37508
Line 1... Line 1...
1
package com.spice.profitmandi.dao.model;
1
package com.spice.profitmandi.dao.model;
2
 
2
 
-
 
3
import com.spice.profitmandi.common.model.LinkedEntity;
-
 
4
 
3
import java.time.LocalDateTime;
5
import java.time.LocalDateTime;
-
 
6
import java.util.List;
4
 
7
 
5
public class SimpleCampaignParams {
8
public class SimpleCampaignParams {
6
	public String getType() {
9
	public String getType() {
7
		return type;
10
		return type;
8
	}
11
	}
Line 18... Line 21...
18
	private Boolean showImage;
21
	private Boolean showImage;
19
	private String url;
22
	private String url;
20
 
23
 
21
	private LocalDateTime expireTimestamp;
24
	private LocalDateTime expireTimestamp;
22
 
25
 
-
 
26
    // ── Pop-up only ───────────────────────────────────────────────
-
 
27
    private String buttonLabel;
-
 
28
    private Boolean showCta;
-
 
29
    private Boolean showClose;
-
 
30
    private String showOnPage;           // "any" or a specific page identifier
-
 
31
    private Integer autoCloseSeconds;    // null = until partner closes it
-
 
32
    private String frequencyCap;         // ONCE_PER_PARTNER / ALWAYS
-
 
33
    private LocalDateTime liveFrom;
-
 
34
    private LocalDateTime liveUntil;
-
 
35
 
-
 
36
    // ── Story only ────────────────────────────────────────────────
-
 
37
    private List<String> storyCards;     // multi-image carousel URLs
-
 
38
    private String postInCategory;       // shelf identifier
-
 
39
    private Integer playDurationSeconds; // default 5
-
 
40
    private String expiresAfterPolicy;   // FIXED_HOURS / ON_DATE
-
 
41
 
-
 
42
    // ── Push multi-image (in addition to single imageUrl for backward compat) ──
-
 
43
    private List<String> images;
-
 
44
 
-
 
45
    // ── Shared: attached scheme / offer / product for deep-linking on tap ─
-
 
46
    private List<LinkedEntity> linkedEntities;
-
 
47
 
23
	public SimpleCampaignParams(String message, String title, String type, String imageUrl, String url,
48
	public SimpleCampaignParams(String message, String title, String type, String imageUrl, String url,
24
			Boolean showImage, LocalDateTime expireTimestamp) {
49
			Boolean showImage, LocalDateTime expireTimestamp) {
25
		super();
50
		super();
26
		this.message = message;
51
		this.message = message;
27
		this.title = title;
52
		this.title = title;
Line 88... Line 113...
88
 
113
 
89
	public void setExpireTimestamp(LocalDateTime expireTimestamp) {
114
	public void setExpireTimestamp(LocalDateTime expireTimestamp) {
90
		this.expireTimestamp = expireTimestamp;
115
		this.expireTimestamp = expireTimestamp;
91
	}
116
	}
92
 
117
 
-
 
118
    public String getButtonLabel() {
-
 
119
        return buttonLabel;
-
 
120
    }
-
 
121
 
-
 
122
    public void setButtonLabel(String buttonLabel) {
-
 
123
        this.buttonLabel = buttonLabel;
-
 
124
    }
-
 
125
 
-
 
126
    public Boolean getShowCta() {
-
 
127
        return showCta;
-
 
128
    }
-
 
129
 
-
 
130
    public void setShowCta(Boolean showCta) {
-
 
131
        this.showCta = showCta;
-
 
132
    }
-
 
133
 
-
 
134
    public Boolean getShowClose() {
-
 
135
        return showClose;
-
 
136
    }
-
 
137
 
-
 
138
    public void setShowClose(Boolean showClose) {
-
 
139
        this.showClose = showClose;
-
 
140
    }
-
 
141
 
-
 
142
    public String getShowOnPage() {
-
 
143
        return showOnPage;
-
 
144
    }
-
 
145
 
-
 
146
    public void setShowOnPage(String showOnPage) {
-
 
147
        this.showOnPage = showOnPage;
-
 
148
    }
-
 
149
 
-
 
150
    public Integer getAutoCloseSeconds() {
-
 
151
        return autoCloseSeconds;
-
 
152
    }
-
 
153
 
-
 
154
    public void setAutoCloseSeconds(Integer autoCloseSeconds) {
-
 
155
        this.autoCloseSeconds = autoCloseSeconds;
-
 
156
    }
-
 
157
 
-
 
158
    public String getFrequencyCap() {
-
 
159
        return frequencyCap;
-
 
160
    }
-
 
161
 
-
 
162
    public void setFrequencyCap(String frequencyCap) {
-
 
163
        this.frequencyCap = frequencyCap;
-
 
164
    }
-
 
165
 
-
 
166
    public LocalDateTime getLiveFrom() {
-
 
167
        return liveFrom;
-
 
168
    }
-
 
169
 
-
 
170
    public void setLiveFrom(LocalDateTime liveFrom) {
-
 
171
        this.liveFrom = liveFrom;
-
 
172
    }
-
 
173
 
-
 
174
    public LocalDateTime getLiveUntil() {
-
 
175
        return liveUntil;
-
 
176
    }
-
 
177
 
-
 
178
    public void setLiveUntil(LocalDateTime liveUntil) {
-
 
179
        this.liveUntil = liveUntil;
-
 
180
    }
-
 
181
 
-
 
182
    public List<String> getStoryCards() {
-
 
183
        return storyCards;
-
 
184
    }
-
 
185
 
-
 
186
    public void setStoryCards(List<String> storyCards) {
-
 
187
        this.storyCards = storyCards;
-
 
188
    }
-
 
189
 
-
 
190
    public String getPostInCategory() {
-
 
191
        return postInCategory;
-
 
192
    }
-
 
193
 
-
 
194
    public void setPostInCategory(String postInCategory) {
-
 
195
        this.postInCategory = postInCategory;
-
 
196
    }
-
 
197
 
-
 
198
    public Integer getPlayDurationSeconds() {
-
 
199
        return playDurationSeconds;
-
 
200
    }
-
 
201
 
-
 
202
    public void setPlayDurationSeconds(Integer playDurationSeconds) {
-
 
203
        this.playDurationSeconds = playDurationSeconds;
-
 
204
    }
-
 
205
 
-
 
206
    public String getExpiresAfterPolicy() {
-
 
207
        return expiresAfterPolicy;
-
 
208
    }
-
 
209
 
-
 
210
    public void setExpiresAfterPolicy(String expiresAfterPolicy) {
-
 
211
        this.expiresAfterPolicy = expiresAfterPolicy;
-
 
212
    }
-
 
213
 
-
 
214
    public List<String> getImages() {
-
 
215
        return images;
-
 
216
    }
-
 
217
 
-
 
218
    public void setImages(List<String> images) {
-
 
219
        this.images = images;
-
 
220
    }
-
 
221
 
-
 
222
    public List<LinkedEntity> getLinkedEntities() {
-
 
223
        return linkedEntities;
-
 
224
    }
-
 
225
 
-
 
226
    public void setLinkedEntities(List<LinkedEntity> linkedEntities) {
-
 
227
        this.linkedEntities = linkedEntities;
-
 
228
    }
-
 
229
 
93
}
230
}