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