1 package fr.paris.lutece.plugins.statistics.model;
2
3 import java.util.Date;
4
5 import com.fasterxml.jackson.annotation.JsonFormat;
6 import com.fasterxml.jackson.annotation.JsonProperty;
7
8 public class UserStatistic {
9
10
11 @JsonProperty("connection-date")
12 @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss.SSS")
13 private Date connectionDate;
14
15
16 @JsonProperty("user-id")
17 private String customerId;
18
19 @JsonProperty("birthday")
20 @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss.SSS")
21 private Date birthday;
22
23 @JsonProperty("civility")
24 private String civility;
25
26 @JsonProperty("connection-id")
27 private String connectionId;
28
29
30 @JsonProperty("demand-id")
31 private String demandId;
32
33 @JsonProperty("demand-reference")
34 private String demandReference;
35
36 @JsonProperty("demand-type-id")
37 private String demandTypeId;
38
39 @JsonProperty("demand-subtype-id")
40 private String demandSubtypeId;
41
42 @JsonProperty("demand-status-id")
43 private Long demandStatusId;
44
45 @JsonProperty("demand-title")
46 private String demandTitle;
47
48 @JsonProperty("demand-creation-date")
49 @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss.SSS")
50 private Date demandCreationDate;
51
52 @JsonProperty("demand-closure-date")
53 @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss.SSS")
54 private Date demandClosureDate;
55
56 @JsonProperty("demand-max-step")
57 private Long demandMaxStep;
58
59 @JsonProperty("demand-current-step")
60 private Long demandCurrentStep;
61
62
63 @JsonProperty("email-sender-name")
64 private String emailSenderName;
65
66 @JsonProperty("email-sender-email")
67 private String emailSenderEmail;
68
69 @JsonProperty("email-recipient")
70 private String emailRecipient;
71
72 @JsonProperty("email-subject")
73 private String emailSubject;
74
75
76 @JsonProperty("sms-sender-name")
77 private String smsSenderName;
78
79
80 @JsonProperty("backoffice-message")
81 private String backofficeMessage;
82
83 @JsonProperty("backoffice-status-text")
84 private String backofficeStatusText;
85
86
87 @JsonProperty("mydashboard-status-id")
88 private Long myDashboardStatusId;
89
90 @JsonProperty("mydashboard-status-text")
91 private String myDashboardStatusText;
92
93 @JsonProperty("mydashboard-subject")
94 private String myDashboardSubject;
95
96 @JsonProperty("mydashboard-sender-name")
97 private String myDashboardSenderName;
98
99 @JsonProperty("mydashboard-data")
100 private String myDashboardData;
101
102
103 public static enum MediaType {
104 EMAIL("email"), SMS("sms"), BACKOFFICE("backoffice"), MYDASHBOARD("mydashboard"), OTHER("other");
105
106 private String val;
107
108 MediaType(String val) {
109 this.val = val;
110 }
111
112 public String val() {
113 return this.val;
114
115 }
116 }
117
118 @JsonProperty("media-type")
119 private MediaType mediaType;
120
121 public Date getConnectionDate() {
122 return connectionDate;
123 }
124
125 public void setConnectionDate(Date connectionDate) {
126 this.connectionDate = connectionDate;
127 }
128
129 public String getCustomerId() {
130 return customerId;
131 }
132
133 public void setCustomerId(String customerId) {
134 this.customerId = customerId;
135 }
136
137 public Date getBirthday() {
138 return birthday;
139 }
140
141 public void setBirthday(Date birthday) {
142 this.birthday = birthday;
143 }
144
145 public String getCivility() {
146 return civility;
147 }
148
149 public void setCivility(String civility) {
150 this.civility = civility;
151 }
152
153 public String getConnectionId() {
154 return connectionId;
155 }
156
157 public void setConnectionId(String connectionId) {
158 this.connectionId = connectionId;
159 }
160
161 public String getDemandId() {
162 return demandId;
163 }
164
165 public void setDemandId(String demandId) {
166 this.demandId = demandId;
167 }
168
169 public String getDemandReference() {
170 return demandReference;
171 }
172
173 public void setDemandReference(String demandReference) {
174 this.demandReference = demandReference;
175 }
176
177 public String getDemandTypeId() {
178 return demandTypeId;
179 }
180
181 public void setDemandTypeId(String demandTypeId) {
182 this.demandTypeId = demandTypeId;
183 }
184
185 public String getDemandSubtypeId() {
186 return demandSubtypeId;
187 }
188
189 public void setDemandSubtypeId(String demandSubtypeId) {
190 this.demandSubtypeId = demandSubtypeId;
191 }
192
193 public Long getDemandStatusId() {
194 return demandStatusId;
195 }
196
197 public void setDemandStatusId(Long demandStatusId) {
198 this.demandStatusId = demandStatusId;
199 }
200
201 public String getDemandTitle() {
202 return demandTitle;
203 }
204
205 public void setDemandTitle(String demandTitle) {
206 this.demandTitle = demandTitle;
207 }
208
209 public Date getDemandCreationDate() {
210 return demandCreationDate;
211 }
212
213 public void setDemandCreationDate(Date demandCreationDate) {
214 this.demandCreationDate = demandCreationDate;
215 }
216
217 public Date getDemandClosureDate() {
218 return demandClosureDate;
219 }
220
221 public void setDemandClosureDate(Date demandClosureDate) {
222 this.demandClosureDate = demandClosureDate;
223 }
224
225 public Long getDemandMaxStep() {
226 return demandMaxStep;
227 }
228
229 public void setDemandMaxStep(Long demandMaxStep) {
230 this.demandMaxStep = demandMaxStep;
231 }
232
233 public Long getDemandCurrentStep() {
234 return demandCurrentStep;
235 }
236
237 public void setDemandCurrentStep(Long demandCurrentStep) {
238 this.demandCurrentStep = demandCurrentStep;
239 }
240
241 public String getEmailSenderName() {
242 return emailSenderName;
243 }
244
245 public void setEmailSenderName(String emailSenderName) {
246 this.emailSenderName = emailSenderName;
247 }
248
249 public String getEmailSenderEmail() {
250 return emailSenderEmail;
251 }
252
253 public void setEmailSenderEmail(String emailSenderEmail) {
254 this.emailSenderEmail = emailSenderEmail;
255 }
256
257 public String getEmailRecipient() {
258 return emailRecipient;
259 }
260
261 public void setEmailRecipient(String emailRecipient) {
262 this.emailRecipient = emailRecipient;
263 }
264
265 public String getEmailSubject() {
266 return emailSubject;
267 }
268
269 public void setEmailSubject(String emailSubject) {
270 this.emailSubject = emailSubject;
271 }
272
273
274
275
276 public String getSmsSenderName()
277 {
278 return smsSenderName;
279 }
280
281
282
283
284 public void setSmsSenderName( String smsSenderName )
285 {
286 this.smsSenderName = smsSenderName;
287 }
288
289 public String getBackofficeMessage() {
290 return backofficeMessage;
291 }
292
293 public void setBackofficeMessage(String backofficeMessage) {
294 this.backofficeMessage = backofficeMessage;
295 }
296
297 public String getBackofficeStatusText() {
298 return backofficeStatusText;
299 }
300
301 public void setBackofficeStatusText(String backofficeStatusText) {
302 this.backofficeStatusText = backofficeStatusText;
303 }
304
305 public Long getMyDashboardStatusId() {
306 return myDashboardStatusId;
307 }
308
309 public void setMyDashboardStatusId(Long myDashboardStatusId) {
310 this.myDashboardStatusId = myDashboardStatusId;
311 }
312
313 public String getMyDashboardStatusText() {
314 return myDashboardStatusText;
315 }
316
317 public void setMyDashboardStatusText(String myDashboardStatusText) {
318 this.myDashboardStatusText = myDashboardStatusText;
319 }
320
321 public String getMyDashboardSubject() {
322 return myDashboardSubject;
323 }
324
325 public void setMyDashboardSubject(String myDashboardSubject) {
326 this.myDashboardSubject = myDashboardSubject;
327 }
328
329 public String getMyDashboardSenderName() {
330 return myDashboardSenderName;
331 }
332
333 public void setMyDashboardSenderName(String myDashboardSenderName) {
334 this.myDashboardSenderName = myDashboardSenderName;
335 }
336
337 public String getMyDashboardData() {
338 return myDashboardData;
339 }
340
341 public void setMyDashboardData(String myDashboardData) {
342 this.myDashboardData = myDashboardData;
343 }
344
345 public String getMediaType() {
346 return mediaType.val();
347 }
348
349 public void setMediaType(MediaType mediaType) {
350 this.mediaType = mediaType;
351 }
352
353 }