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
027public class DeviceCode extends AbstractFacebookType {
028  private static final long serialVersionUID = 1L;
029  /**
030   * Code used in the authorization poll
031   */
032  @Facebook
033  private String code;
034  /**
035   * String to be shown to the user
036   */
037  @Facebook("user_code")
038  private String userCode;
039  /**
040   * Url the user should call.
041   * <p>
042   * Here he should add the user code
043   */
044  @Facebook("verification_uri")
045  private String verificationUri;
046  /**
047   * The code expires in these seconds.
048   * <p>
049   * You should cancel the login flow after that time if you do not receive an access token
050   */
051  @Facebook("expires_in")
052  private Integer expiresIn;
053  /**
054   * Your device should poll the Device Login API every <code>interval</code> seconds to see if the authorization has
055   * been successful
056   */
057  @Facebook
058  private Integer interval;
059
060  /**
061   * Code used in the authorization poll
062   */
063  @java.lang.SuppressWarnings("all")
064  @lombok.Generated
065  public String getCode() {
066    return this.code;
067  }
068
069  /**
070   * Code used in the authorization poll
071   */
072  @java.lang.SuppressWarnings("all")
073  @lombok.Generated
074  public void setCode(final String code) {
075    this.code = code;
076  }
077
078  /**
079   * String to be shown to the user
080   */
081  @java.lang.SuppressWarnings("all")
082  @lombok.Generated
083  public String getUserCode() {
084    return this.userCode;
085  }
086
087  /**
088   * String to be shown to the user
089   */
090  @java.lang.SuppressWarnings("all")
091  @lombok.Generated
092  public void setUserCode(final String userCode) {
093    this.userCode = userCode;
094  }
095
096  /**
097   * Url the user should call.
098   * <p>
099   * Here he should add the user code
100   */
101  @java.lang.SuppressWarnings("all")
102  @lombok.Generated
103  public String getVerificationUri() {
104    return this.verificationUri;
105  }
106
107  /**
108   * Url the user should call.
109   * <p>
110   * Here he should add the user code
111   */
112  @java.lang.SuppressWarnings("all")
113  @lombok.Generated
114  public void setVerificationUri(final String verificationUri) {
115    this.verificationUri = verificationUri;
116  }
117
118  /**
119   * The code expires in these seconds.
120   * <p>
121   * You should cancel the login flow after that time if you do not receive an access token
122   */
123  @java.lang.SuppressWarnings("all")
124  @lombok.Generated
125  public Integer getExpiresIn() {
126    return this.expiresIn;
127  }
128
129  /**
130   * The code expires in these seconds.
131   * <p>
132   * You should cancel the login flow after that time if you do not receive an access token
133   */
134  @java.lang.SuppressWarnings("all")
135  @lombok.Generated
136  public void setExpiresIn(final Integer expiresIn) {
137    this.expiresIn = expiresIn;
138  }
139
140  /**
141   * Your device should poll the Device Login API every <code>interval</code> seconds to see if the authorization has
142   * been successful
143   */
144  @java.lang.SuppressWarnings("all")
145  @lombok.Generated
146  public Integer getInterval() {
147    return this.interval;
148  }
149
150  /**
151   * Your device should poll the Device Login API every <code>interval</code> seconds to see if the authorization has
152   * been successful
153   */
154  @java.lang.SuppressWarnings("all")
155  @lombok.Generated
156  public void setInterval(final Integer interval) {
157    this.interval = interval;
158  }
159}