001// Generated by delombok at Fri Oct 04 16:05:59 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 * Represents the <a href="https://developers.facebook.com/docs/graph-api/reference/profile-picture-source/">Profile
029 * Picture Source Graph API type</a>.
030 * 
031 * @author Norbert Bartels
032 */
033public class ProfilePictureSource extends AbstractFacebookType {
034  private static final long serialVersionUID = 1L;
035  /**
036   * URL of the profile picture
037   * 
038   */
039  @Facebook
040  private String url;
041  /**
042   * Indicates whether the profile photo is the default 'silhouette' picture, or has been replaced
043   * 
044   */
045  @Facebook("is_silhouette")
046  private Boolean isSilhouette;
047  /**
048   * Picture height in pixels
049   * 
050   */
051  @Facebook
052  private Integer height;
053  /**
054   * Picture width in pixels
055   * 
056   */
057  @Facebook
058  private Integer width;
059
060  /**
061   * URL of the profile picture
062   * 
063   * @return URL of the profile picture
064   */
065  @java.lang.SuppressWarnings("all")
066  public String getUrl() {
067    return this.url;
068  }
069
070  /**
071   * URL of the profile picture
072   * 
073   */
074  @java.lang.SuppressWarnings("all")
075  public void setUrl(final String url) {
076    this.url = url;
077  }
078
079  /**
080   * Indicates whether the profile photo is the default 'silhouette' picture, or has been replaced
081   * 
082   * @return is the photo the default or has been replaced
083   */
084  @java.lang.SuppressWarnings("all")
085  public Boolean getIsSilhouette() {
086    return this.isSilhouette;
087  }
088
089  /**
090   * Indicates whether the profile photo is the default 'silhouette' picture, or has been replaced
091   * 
092   */
093  @java.lang.SuppressWarnings("all")
094  public void setIsSilhouette(final Boolean isSilhouette) {
095    this.isSilhouette = isSilhouette;
096  }
097
098  /**
099   * Picture height in pixels
100   * 
101   * @return Picture height in pixels
102   */
103  @java.lang.SuppressWarnings("all")
104  public Integer getHeight() {
105    return this.height;
106  }
107
108  /**
109   * Picture height in pixels
110   * 
111   */
112  @java.lang.SuppressWarnings("all")
113  public void setHeight(final Integer height) {
114    this.height = height;
115  }
116
117  /**
118   * Picture width in pixels
119   * 
120   * @return Picture width in pixels
121   */
122  @java.lang.SuppressWarnings("all")
123  public Integer getWidth() {
124    return this.width;
125  }
126
127  /**
128   * Picture width in pixels
129   * 
130   */
131  @java.lang.SuppressWarnings("all")
132  public void setWidth(final Integer width) {
133    this.width = width;
134  }
135}