001// Generated by delombok at Tue Dec 10 13:42:03 UTC 2024
002/*
003 * Copyright (c) 2010-2024 Mark Allen, Norbert Bartels.
004 *
005 * Permission is hereby granted, free of charge, to any person obtaining a copy
006 * of this software and associated documentation files (the "Software"), to deal
007 * in the Software without restriction, including without limitation the rights
008 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
009 * copies of the Software, and to permit persons to whom the Software is
010 * furnished to do so, subject to the following conditions:
011 *
012 * The above copyright notice and this permission notice shall be included in
013 * all copies or substantial portions of the Software.
014 *
015 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
016 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
017 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
018 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
019 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
020 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
021 * THE SOFTWARE.
022 */
023package com.restfb.types;
024
025import java.util.Date;
026import com.restfb.Facebook;
027import com.restfb.types.features.HasCreatedTime;
028
029/**
030 * Represents the <a href="https://developers.facebook.com/docs/graph-api/reference/page/call_to_actions/">Page Call To
031 * Action type</a>
032 */
033public class PageCallToAction extends FacebookType implements HasCreatedTime {
034  /**
035   * App that stores the destination info on Android.
036   */
037  @Facebook("android_app")
038  private Application androidApp;
039  /**
040   * Time when the call-to-action was created.
041   */
042  @Facebook("created_time")
043  private Date createdTime;
044  /**
045   * Email address that can be contacted by a user.
046   */
047  @Facebook("email_address")
048  private String emailAddress;
049  /**
050   * Page that owns the call-to-action.
051   */
052  @Facebook
053  private Page from;
054  /**
055   * App that stores the destination info on iPhone.
056   */
057  @Facebook("iphone_app")
058  private Application iphoneApp;
059  /**
060   * Destination deeplink for the call-to-action on iPhone.
061   */
062  @Facebook("iphone_deeplink")
063  private String iphoneDeeplink;
064  /**
065   * Destination url for the call-to-action on iPhone.
066   */
067  @Facebook("iphone_url")
068  private String iphoneUrl;
069  /**
070   * Current running status of this action.
071   */
072  @Facebook
073  private String status;
074  /**
075   * Time when the call-to-action was last updated.
076   */
077  @Facebook("updated_time")
078  private Date updatedTime;
079  /**
080   * Destination type for the call-to-action on desktop.
081   * <p>
082   * Default value: NONE
083   * </p>
084   * <p>
085   * may be: WEBSITE, MESSENGER, NONE
086   * </p>
087   */
088  @Facebook("web_destination_type")
089  private String webDestinationType;
090  /**
091   * Destination type for the call-to-action on Android.
092   * <p>
093   * Default value: NONE
094   * </p>
095   * <p>
096   * may be: WEBSITE, APP_DEEPLINK, FACEBOOK_APP, PHONE_CALL, MESSENGER, NONE
097   * </p>
098   */
099  @Facebook("android_destination_type")
100  private String androidDestinationType;
101  /**
102   * Destination type for the call-to-action on iPhone.
103   * <p>
104   * Default value: NONE
105   * </p>
106   * <p>
107   * may be: WEBSITE, APP_DEEPLINK, FACEBOOK_APP, PHONE_CALL, MESSENGER, NONE
108   * </p>
109   */
110  @Facebook("iphone_destination_type")
111  private String iphoneDestinationType;
112  /**
113   * International phone number with plus that can be called through a phone
114   */
115  @Facebook("intl_number_with_plus")
116  private String intlNumberWithPlus;
117  /**
118   * Destination url for the call-to-action on desktop
119   */
120  @Facebook("web_url")
121  private String webUrl;
122  /**
123   * ID of the App that stores the destination info on Android
124   */
125  @Facebook("android_app_id")
126  private String androidAppId;
127  /**
128   * Destination deeplink for the call-to-action on Android
129   */
130  @Facebook("android_deeplink")
131  private String androidDeeplink;
132  /**
133   * Destination app for the call-to-action on Android
134   */
135  @Facebook("android_package_name")
136  private String androidPackageName;
137  /**
138   * Destination url for the call-to-action on Android
139   */
140  @Facebook("android_url")
141  private String androidUrl;
142  /**
143   * ID fo the App that stores the destination info on iPhone
144   */
145  @Facebook("iphone_app_id")
146  private String iphoneAppId;
147
148  /**
149   * App that stores the destination info on Android.
150   *
151   * @return App that stores the destination info on Android
152   */
153  @java.lang.SuppressWarnings("all")
154  public Application getAndroidApp() {
155    return this.androidApp;
156  }
157
158  /**
159   * App that stores the destination info on Android.
160   */
161  @java.lang.SuppressWarnings("all")
162  public void setAndroidApp(final Application androidApp) {
163    this.androidApp = androidApp;
164  }
165
166  /**
167   * Time when the call-to-action was created.
168   *
169   * @return Time when the call-to-action was created
170   */
171  @Override
172  @java.lang.SuppressWarnings("all")
173  public Date getCreatedTime() {
174    return this.createdTime;
175  }
176
177  /**
178   * Time when the call-to-action was created.
179   */
180  @java.lang.SuppressWarnings("all")
181  public void setCreatedTime(final Date createdTime) {
182    this.createdTime = createdTime;
183  }
184
185  /**
186   * Email address that can be contacted by a user.
187   *
188   * @return Email address that can be contacted by a user
189   */
190  @java.lang.SuppressWarnings("all")
191  public String getEmailAddress() {
192    return this.emailAddress;
193  }
194
195  /**
196   * Email address that can be contacted by a user.
197   */
198  @java.lang.SuppressWarnings("all")
199  public void setEmailAddress(final String emailAddress) {
200    this.emailAddress = emailAddress;
201  }
202
203  /**
204   * Page that owns the call-to-action.
205   *
206   * @return Page that owns the call-to-action
207   */
208  @java.lang.SuppressWarnings("all")
209  public Page getFrom() {
210    return this.from;
211  }
212
213  /**
214   * Page that owns the call-to-action.
215   */
216  @java.lang.SuppressWarnings("all")
217  public void setFrom(final Page from) {
218    this.from = from;
219  }
220
221  /**
222   * App that stores the destination info on iPhone.
223   *
224   * @return App that stores the destination info on iPhone
225   */
226  @java.lang.SuppressWarnings("all")
227  public Application getIphoneApp() {
228    return this.iphoneApp;
229  }
230
231  /**
232   * App that stores the destination info on iPhone.
233   */
234  @java.lang.SuppressWarnings("all")
235  public void setIphoneApp(final Application iphoneApp) {
236    this.iphoneApp = iphoneApp;
237  }
238
239  /**
240   * Destination deeplink for the call-to-action on iPhone.
241   *
242   * @return Destination deeplink for the call-to-action on iPhone
243   */
244  @java.lang.SuppressWarnings("all")
245  public String getIphoneDeeplink() {
246    return this.iphoneDeeplink;
247  }
248
249  /**
250   * Destination deeplink for the call-to-action on iPhone.
251   */
252  @java.lang.SuppressWarnings("all")
253  public void setIphoneDeeplink(final String iphoneDeeplink) {
254    this.iphoneDeeplink = iphoneDeeplink;
255  }
256
257  /**
258   * Destination url for the call-to-action on iPhone.
259   *
260   * @return Destination url for the call-to-action on iPhone
261   */
262  @java.lang.SuppressWarnings("all")
263  public String getIphoneUrl() {
264    return this.iphoneUrl;
265  }
266
267  /**
268   * Destination url for the call-to-action on iPhone.
269   */
270  @java.lang.SuppressWarnings("all")
271  public void setIphoneUrl(final String iphoneUrl) {
272    this.iphoneUrl = iphoneUrl;
273  }
274
275  /**
276   * Current running status of this action.
277   *
278   * @return Current running status of this action
279   */
280  @java.lang.SuppressWarnings("all")
281  public String getStatus() {
282    return this.status;
283  }
284
285  /**
286   * Current running status of this action.
287   */
288  @java.lang.SuppressWarnings("all")
289  public void setStatus(final String status) {
290    this.status = status;
291  }
292
293  /**
294   * Time when the call-to-action was last updated.
295   *
296   * @return Time when the call-to-action was last updated
297   */
298  @java.lang.SuppressWarnings("all")
299  public Date getUpdatedTime() {
300    return this.updatedTime;
301  }
302
303  /**
304   * Time when the call-to-action was last updated.
305   */
306  @java.lang.SuppressWarnings("all")
307  public void setUpdatedTime(final Date updatedTime) {
308    this.updatedTime = updatedTime;
309  }
310
311  /**
312   * Destination type for the call-to-action on desktop.
313   * <p>
314   * Default value: NONE
315   * </p>
316   * <p>
317   * may be: WEBSITE, MESSENGER, NONE
318   * </p>
319   */
320  @java.lang.SuppressWarnings("all")
321  public String getWebDestinationType() {
322    return this.webDestinationType;
323  }
324
325  /**
326   * Destination type for the call-to-action on desktop.
327   * <p>
328   * Default value: NONE
329   * </p>
330   * <p>
331   * may be: WEBSITE, MESSENGER, NONE
332   * </p>
333   */
334  @java.lang.SuppressWarnings("all")
335  public void setWebDestinationType(final String webDestinationType) {
336    this.webDestinationType = webDestinationType;
337  }
338
339  /**
340   * Destination type for the call-to-action on Android.
341   * <p>
342   * Default value: NONE
343   * </p>
344   * <p>
345   * may be: WEBSITE, APP_DEEPLINK, FACEBOOK_APP, PHONE_CALL, MESSENGER, NONE
346   * </p>
347   */
348  @java.lang.SuppressWarnings("all")
349  public String getAndroidDestinationType() {
350    return this.androidDestinationType;
351  }
352
353  /**
354   * Destination type for the call-to-action on Android.
355   * <p>
356   * Default value: NONE
357   * </p>
358   * <p>
359   * may be: WEBSITE, APP_DEEPLINK, FACEBOOK_APP, PHONE_CALL, MESSENGER, NONE
360   * </p>
361   */
362  @java.lang.SuppressWarnings("all")
363  public void setAndroidDestinationType(final String androidDestinationType) {
364    this.androidDestinationType = androidDestinationType;
365  }
366
367  /**
368   * Destination type for the call-to-action on iPhone.
369   * <p>
370   * Default value: NONE
371   * </p>
372   * <p>
373   * may be: WEBSITE, APP_DEEPLINK, FACEBOOK_APP, PHONE_CALL, MESSENGER, NONE
374   * </p>
375   */
376  @java.lang.SuppressWarnings("all")
377  public String getIphoneDestinationType() {
378    return this.iphoneDestinationType;
379  }
380
381  /**
382   * Destination type for the call-to-action on iPhone.
383   * <p>
384   * Default value: NONE
385   * </p>
386   * <p>
387   * may be: WEBSITE, APP_DEEPLINK, FACEBOOK_APP, PHONE_CALL, MESSENGER, NONE
388   * </p>
389   */
390  @java.lang.SuppressWarnings("all")
391  public void setIphoneDestinationType(final String iphoneDestinationType) {
392    this.iphoneDestinationType = iphoneDestinationType;
393  }
394
395  /**
396   * International phone number with plus that can be called through a phone
397   */
398  @java.lang.SuppressWarnings("all")
399  public String getIntlNumberWithPlus() {
400    return this.intlNumberWithPlus;
401  }
402
403  /**
404   * International phone number with plus that can be called through a phone
405   */
406  @java.lang.SuppressWarnings("all")
407  public void setIntlNumberWithPlus(final String intlNumberWithPlus) {
408    this.intlNumberWithPlus = intlNumberWithPlus;
409  }
410
411  /**
412   * Destination url for the call-to-action on desktop
413   */
414  @java.lang.SuppressWarnings("all")
415  public String getWebUrl() {
416    return this.webUrl;
417  }
418
419  /**
420   * Destination url for the call-to-action on desktop
421   */
422  @java.lang.SuppressWarnings("all")
423  public void setWebUrl(final String webUrl) {
424    this.webUrl = webUrl;
425  }
426
427  /**
428   * ID of the App that stores the destination info on Android
429   */
430  @java.lang.SuppressWarnings("all")
431  public String getAndroidAppId() {
432    return this.androidAppId;
433  }
434
435  /**
436   * ID of the App that stores the destination info on Android
437   */
438  @java.lang.SuppressWarnings("all")
439  public void setAndroidAppId(final String androidAppId) {
440    this.androidAppId = androidAppId;
441  }
442
443  /**
444   * Destination deeplink for the call-to-action on Android
445   */
446  @java.lang.SuppressWarnings("all")
447  public String getAndroidDeeplink() {
448    return this.androidDeeplink;
449  }
450
451  /**
452   * Destination deeplink for the call-to-action on Android
453   */
454  @java.lang.SuppressWarnings("all")
455  public void setAndroidDeeplink(final String androidDeeplink) {
456    this.androidDeeplink = androidDeeplink;
457  }
458
459  /**
460   * Destination app for the call-to-action on Android
461   */
462  @java.lang.SuppressWarnings("all")
463  public String getAndroidPackageName() {
464    return this.androidPackageName;
465  }
466
467  /**
468   * Destination app for the call-to-action on Android
469   */
470  @java.lang.SuppressWarnings("all")
471  public void setAndroidPackageName(final String androidPackageName) {
472    this.androidPackageName = androidPackageName;
473  }
474
475  /**
476   * Destination url for the call-to-action on Android
477   */
478  @java.lang.SuppressWarnings("all")
479  public String getAndroidUrl() {
480    return this.androidUrl;
481  }
482
483  /**
484   * Destination url for the call-to-action on Android
485   */
486  @java.lang.SuppressWarnings("all")
487  public void setAndroidUrl(final String androidUrl) {
488    this.androidUrl = androidUrl;
489  }
490
491  /**
492   * ID fo the App that stores the destination info on iPhone
493   */
494  @java.lang.SuppressWarnings("all")
495  public String getIphoneAppId() {
496    return this.iphoneAppId;
497  }
498
499  /**
500   * ID fo the App that stores the destination info on iPhone
501   */
502  @java.lang.SuppressWarnings("all")
503  public void setIphoneAppId(final String iphoneAppId) {
504    this.iphoneAppId = iphoneAppId;
505  }
506}