001// Generated by delombok at Thu Aug 13 13:56:44 UTC 2026
002/*
003 * Copyright (c) 2010-2026 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    @lombok.Generated
060    public String getSource() {
061      return this.source;
062    }
063
064    @java.lang.SuppressWarnings("all")
065    @lombok.Generated
066    public void setSource(final String source) {
067      this.source = source;
068    }
069
070    @java.lang.SuppressWarnings("all")
071    @lombok.Generated
072    public String getType() {
073      return this.type;
074    }
075
076    @java.lang.SuppressWarnings("all")
077    @lombok.Generated
078    public void setType(final String type) {
079      this.type = type;
080    }
081
082    @java.lang.SuppressWarnings("all")
083    @lombok.Generated
084    public String getAdId() {
085      return this.adId;
086    }
087
088    @java.lang.SuppressWarnings("all")
089    @lombok.Generated
090    public void setAdId(final String adId) {
091      this.adId = adId;
092    }
093  }
094
095  @java.lang.SuppressWarnings("all")
096  @lombok.Generated
097  public String getFirstName() {
098    return this.firstName;
099  }
100
101  @java.lang.SuppressWarnings("all")
102  @lombok.Generated
103  public void setFirstName(final String firstName) {
104    this.firstName = firstName;
105  }
106
107  @java.lang.SuppressWarnings("all")
108  @lombok.Generated
109  public String getLastName() {
110    return this.lastName;
111  }
112
113  @java.lang.SuppressWarnings("all")
114  @lombok.Generated
115  public void setLastName(final String lastName) {
116    this.lastName = lastName;
117  }
118
119  @java.lang.SuppressWarnings("all")
120  @lombok.Generated
121  public String getProfilePic() {
122    return this.profilePic;
123  }
124
125  @java.lang.SuppressWarnings("all")
126  @lombok.Generated
127  public void setProfilePic(final String profilePic) {
128    this.profilePic = profilePic;
129  }
130
131  @java.lang.SuppressWarnings("all")
132  @lombok.Generated
133  public String getLocale() {
134    return this.locale;
135  }
136
137  @java.lang.SuppressWarnings("all")
138  @lombok.Generated
139  public void setLocale(final String locale) {
140    this.locale = locale;
141  }
142
143  @java.lang.SuppressWarnings("all")
144  @lombok.Generated
145  public String getTimezone() {
146    return this.timezone;
147  }
148
149  @java.lang.SuppressWarnings("all")
150  @lombok.Generated
151  public void setTimezone(final String timezone) {
152    this.timezone = timezone;
153  }
154
155  @java.lang.SuppressWarnings("all")
156  @lombok.Generated
157  public String getGender() {
158    return this.gender;
159  }
160
161  @java.lang.SuppressWarnings("all")
162  @lombok.Generated
163  public void setGender(final String gender) {
164    this.gender = gender;
165  }
166
167  @java.lang.SuppressWarnings("all")
168  @lombok.Generated
169  public Boolean getIsPaymentEnabled() {
170    return this.isPaymentEnabled;
171  }
172
173  @java.lang.SuppressWarnings("all")
174  @lombok.Generated
175  public void setIsPaymentEnabled(final Boolean isPaymentEnabled) {
176    this.isPaymentEnabled = isPaymentEnabled;
177  }
178
179  @java.lang.SuppressWarnings("all")
180  @lombok.Generated
181  public LastAdReferral getLastAdReferral() {
182    return this.lastAdReferral;
183  }
184
185  @java.lang.SuppressWarnings("all")
186  @lombok.Generated
187  public void setLastAdReferral(final LastAdReferral lastAdReferral) {
188    this.lastAdReferral = lastAdReferral;
189  }
190}