Subversion Repositories SmartDukaan

Rev

Rev 25374 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
25300 tejbeer 1
package com.spice.profitmandi.dao.model;
2
 
37508 ranu 3
import com.spice.profitmandi.common.model.LinkedEntity;
4
 
25300 tejbeer 5
import java.time.LocalDateTime;
37508 ranu 6
import java.util.List;
25300 tejbeer 7
 
8
public class SimpleCampaignParams {
9
	public String getType() {
10
		return type;
11
	}
12
 
13
	public void setType(String type) {
14
		this.type = type;
15
	}
16
 
17
	private String message;
18
	private String title;
19
	private String type;
20
	private String imageUrl;
25374 tejbeer 21
	private Boolean showImage;
25300 tejbeer 22
	private String url;
23
 
24
	private LocalDateTime expireTimestamp;
25
 
37508 ranu 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
 
25300 tejbeer 48
	public SimpleCampaignParams(String message, String title, String type, String imageUrl, String url,
25374 tejbeer 49
			Boolean showImage, LocalDateTime expireTimestamp) {
25300 tejbeer 50
		super();
51
		this.message = message;
52
		this.title = title;
53
		this.type = type;
54
		this.imageUrl = imageUrl;
55
		this.url = url;
25374 tejbeer 56
		this.showImage = showImage;
25300 tejbeer 57
		this.expireTimestamp = expireTimestamp;
58
	}
59
 
60
	public SimpleCampaignParams() {
61
		super();
62
	}
63
 
64
	@Override
65
	public String toString() {
66
		return "SimpleCampaignParams [message=" + message + ", title=" + title + ", type=" + type + ", imageUrl="
25374 tejbeer 67
				+ imageUrl + ", showImage=" + showImage + ", url=" + url + ", expireTimestamp=" + expireTimestamp + "]";
25300 tejbeer 68
	}
69
 
70
	public String getUrl() {
71
		return url;
72
	}
73
 
74
	public void setUrl(String url) {
75
		this.url = url;
76
	}
77
 
25374 tejbeer 78
	public Boolean getShowImage() {
79
		return showImage;
80
	}
81
 
82
	public void setShowImage(Boolean showImage) {
83
		this.showImage = showImage;
84
	}
85
 
25300 tejbeer 86
	public String getMessage() {
87
		return message;
88
	}
89
 
90
	public void setMessage(String message) {
91
		this.message = message;
92
	}
93
 
94
	public String getTitle() {
95
		return title;
96
	}
97
 
98
	public void setTitle(String title) {
99
		this.title = title;
100
	}
101
 
102
	public String getImageUrl() {
103
		return imageUrl;
104
	}
105
 
106
	public void setImageUrl(String imageUrl) {
107
		this.imageUrl = imageUrl;
108
	}
109
 
110
	public LocalDateTime getExpireTimestamp() {
111
		return expireTimestamp;
112
	}
113
 
114
	public void setExpireTimestamp(LocalDateTime expireTimestamp) {
115
		this.expireTimestamp = expireTimestamp;
116
	}
117
 
37508 ranu 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
 
25300 tejbeer 230
}