001// Generated by delombok at Fri Oct 11 21:56:29 CEST 2019
002/**
003 * Copyright (c) 2010-2019 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  @Facebook("access_token")
040  private String accessToken;
041  /**
042   * You can login as the test user by going to this url.
043   */
044  @Facebook("login_url")
045  private String loginUrl;
046  /**
047   * If logging in manually (that is, not using the login_url), you can use this as the user's email address.
048   */
049  @Facebook
050  private String email;
051  /**
052   * If logging in manually (that is, not using the login_url), you can use this as the user's password.
053   */
054  @Facebook
055  private String password;
056  private static final long serialVersionUID = 1L;
057
058  /**
059   * You can use this access token to make API calls on behalf of the test user. This is available only if your app has
060   * been installed by the test user.
061   * 
062   * @return The test user's access token.
063   */
064  @java.lang.SuppressWarnings("all")
065  public String getAccessToken() {
066    return this.accessToken;
067  }
068
069  /**
070   * You can use this access token to make API calls on behalf of the test user. This is available only if your app has
071   * been installed by the test user.
072   */
073  @java.lang.SuppressWarnings("all")
074  public void setAccessToken(final String accessToken) {
075    this.accessToken = accessToken;
076  }
077
078  /**
079   * You can login as the test user by going to this url.
080   * 
081   * @return The test user's login url.
082   */
083  @java.lang.SuppressWarnings("all")
084  public String getLoginUrl() {
085    return this.loginUrl;
086  }
087
088  /**
089   * You can login as the test user by going to this url.
090   */
091  @java.lang.SuppressWarnings("all")
092  public void setLoginUrl(final String loginUrl) {
093    this.loginUrl = loginUrl;
094  }
095
096  /**
097   * If logging in manually (that is, not using the login_url), you can use this as the user's email address.
098   * 
099   * @return The test user's email address.
100   */
101  @java.lang.SuppressWarnings("all")
102  public String getEmail() {
103    return this.email;
104  }
105
106  /**
107   * If logging in manually (that is, not using the login_url), you can use this as the user's email address.
108   */
109  @java.lang.SuppressWarnings("all")
110  public void setEmail(final String email) {
111    this.email = email;
112  }
113
114  /**
115   * If logging in manually (that is, not using the login_url), you can use this as the user's password.
116   * 
117   * @return The test user's password.
118   */
119  @java.lang.SuppressWarnings("all")
120  public String getPassword() {
121    return this.password;
122  }
123
124  /**
125   * If logging in manually (that is, not using the login_url), you can use this as the user's password.
126   */
127  @java.lang.SuppressWarnings("all")
128  public void setPassword(final String password) {
129    this.password = password;
130  }
131}