001// Generated by delombok at Sun Apr 14 14:59:49 CEST 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 com.restfb.Facebook;
026
027/**
028 * Respresents the User Profile object as defined
029 * <a href="https://developers.facebook.com/docs/messenger-platform/identity/user-profile/">here</a>
030 */
031public class UserProfile extends NamedFacebookType {
032  @Facebook("first_name")
033  private String firstName;
034  @Facebook("last_name")
035  private String lastName;
036  @Facebook("profile_pic")
037  private String profilePic;
038  @Facebook
039  private String locale;
040  @Facebook
041  private String timezone;
042  @Facebook
043  private String gender;
044  @Facebook("is_payment_enabled")
045  private Boolean isPaymentEnabled;
046  @Facebook("last_ad_referral")
047  private LastAdReferral lastAdReferral;
048
049
050  public static class LastAdReferral extends AbstractFacebookType {
051    @Facebook
052    private String source;
053    @Facebook
054    private String type;
055    @Facebook("ad_id")
056    private String adId;
057
058    @java.lang.SuppressWarnings("all")
059    public String getSource() {
060      return this.source;
061    }
062
063    @java.lang.SuppressWarnings("all")
064    public void setSource(final String source) {
065      this.source = source;
066    }
067
068    @java.lang.SuppressWarnings("all")
069    public String getType() {
070      return this.type;
071    }
072
073    @java.lang.SuppressWarnings("all")
074    public void setType(final String type) {
075      this.type = type;
076    }
077
078    @java.lang.SuppressWarnings("all")
079    public String getAdId() {
080      return this.adId;
081    }
082
083    @java.lang.SuppressWarnings("all")
084    public void setAdId(final String adId) {
085      this.adId = adId;
086    }
087  }
088
089  @java.lang.SuppressWarnings("all")
090  public String getFirstName() {
091    return this.firstName;
092  }
093
094  @java.lang.SuppressWarnings("all")
095  public void setFirstName(final String firstName) {
096    this.firstName = firstName;
097  }
098
099  @java.lang.SuppressWarnings("all")
100  public String getLastName() {
101    return this.lastName;
102  }
103
104  @java.lang.SuppressWarnings("all")
105  public void setLastName(final String lastName) {
106    this.lastName = lastName;
107  }
108
109  @java.lang.SuppressWarnings("all")
110  public String getProfilePic() {
111    return this.profilePic;
112  }
113
114  @java.lang.SuppressWarnings("all")
115  public void setProfilePic(final String profilePic) {
116    this.profilePic = profilePic;
117  }
118
119  @java.lang.SuppressWarnings("all")
120  public String getLocale() {
121    return this.locale;
122  }
123
124  @java.lang.SuppressWarnings("all")
125  public void setLocale(final String locale) {
126    this.locale = locale;
127  }
128
129  @java.lang.SuppressWarnings("all")
130  public String getTimezone() {
131    return this.timezone;
132  }
133
134  @java.lang.SuppressWarnings("all")
135  public void setTimezone(final String timezone) {
136    this.timezone = timezone;
137  }
138
139  @java.lang.SuppressWarnings("all")
140  public String getGender() {
141    return this.gender;
142  }
143
144  @java.lang.SuppressWarnings("all")
145  public void setGender(final String gender) {
146    this.gender = gender;
147  }
148
149  @java.lang.SuppressWarnings("all")
150  public Boolean getIsPaymentEnabled() {
151    return this.isPaymentEnabled;
152  }
153
154  @java.lang.SuppressWarnings("all")
155  public void setIsPaymentEnabled(final Boolean isPaymentEnabled) {
156    this.isPaymentEnabled = isPaymentEnabled;
157  }
158
159  @java.lang.SuppressWarnings("all")
160  public LastAdReferral getLastAdReferral() {
161    return this.lastAdReferral;
162  }
163
164  @java.lang.SuppressWarnings("all")
165  public void setLastAdReferral(final LastAdReferral lastAdReferral) {
166    this.lastAdReferral = lastAdReferral;
167  }
168}