001// Generated by delombok at Tue Dec 10 13:42:03 UTC 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/test_users">Test User type</a>.
029 * 
030 * @author <a href="http://ex-nerd.com">Chris Petersen</a>
031 * @author <a href="http://restfb.com">Mark Allen</a>
032 * @since 1.6.10
033 */
034public class TestUser extends FacebookType {
035  /**
036   * You can use this access token to make API calls on behalf of the test user. This is available only if your app has
037   * been installed by the test user.
038   * 
039   */
040  @Facebook("access_token")
041  private String accessToken;
042  /**
043   * You can login as the test user by going to this url.
044   * 
045   */
046  @Facebook("login_url")
047  private String loginUrl;
048  /**
049   * If logging in manually (that is, not using the login_url), you can use this as the user's email address.
050   * 
051   */
052  @Facebook
053  private String email;
054  /**
055   * If logging in manually (that is, not using the login_url), you can use this as the user's password.
056   * 
057   */
058  @Facebook
059  private String password;
060  private static final long serialVersionUID = 1L;
061
062  /**
063   * You can use this access token to make API calls on behalf of the test user. This is available only if your app has
064   * been installed by the test user.
065   * 
066   * @return The test user's access token.
067   */
068  @java.lang.SuppressWarnings("all")
069  public String getAccessToken() {
070    return this.accessToken;
071  }
072
073  /**
074   * You can use this access token to make API calls on behalf of the test user. This is available only if your app has
075   * been installed by the test user.
076   * 
077   */
078  @java.lang.SuppressWarnings("all")
079  public void setAccessToken(final String accessToken) {
080    this.accessToken = accessToken;
081  }
082
083  /**
084   * You can login as the test user by going to this url.
085   * 
086   * @return The test user's login url.
087   */
088  @java.lang.SuppressWarnings("all")
089  public String getLoginUrl() {
090    return this.loginUrl;
091  }
092
093  /**
094   * You can login as the test user by going to this url.
095   * 
096   */
097  @java.lang.SuppressWarnings("all")
098  public void setLoginUrl(final String loginUrl) {
099    this.loginUrl = loginUrl;
100  }
101
102  /**
103   * If logging in manually (that is, not using the login_url), you can use this as the user's email address.
104   * 
105   * @return The test user's email address.
106   */
107  @java.lang.SuppressWarnings("all")
108  public String getEmail() {
109    return this.email;
110  }
111
112  /**
113   * If logging in manually (that is, not using the login_url), you can use this as the user's email address.
114   * 
115   */
116  @java.lang.SuppressWarnings("all")
117  public void setEmail(final String email) {
118    this.email = email;
119  }
120
121  /**
122   * If logging in manually (that is, not using the login_url), you can use this as the user's password.
123   * 
124   * @return The test user's password.
125   */
126  @java.lang.SuppressWarnings("all")
127  public String getPassword() {
128    return this.password;
129  }
130
131  /**
132   * If logging in manually (that is, not using the login_url), you can use this as the user's password.
133   * 
134   */
135  @java.lang.SuppressWarnings("all")
136  public void setPassword(final String password) {
137    this.password = password;
138  }
139}