144 lines
3.6 KiB
Java
144 lines
3.6 KiB
Java
package app.fedilab.android.peertube.client.entities;
|
|
/* Copyright 2020 Thomas Schneider
|
|
*
|
|
* This file is a part of TubeLab
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it under the terms of the
|
|
* GNU General Public License as published by the Free Software Foundation; either version 3 of the
|
|
* License, or (at your option) any later version.
|
|
*
|
|
* TubeLab is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
|
* Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along with TubeLab; if not,
|
|
* see <http://www.gnu.org/licenses>. */
|
|
|
|
import com.google.gson.annotations.SerializedName;
|
|
|
|
@SuppressWarnings({"unused", "RedundantSuppression"})
|
|
public class OauthParams {
|
|
|
|
|
|
@SerializedName("client_id")
|
|
private String client_id;
|
|
@SerializedName("client_secret")
|
|
private String client_secret;
|
|
@SerializedName("grant_type")
|
|
private String grant_type;
|
|
@SerializedName("username")
|
|
private String username;
|
|
@SerializedName("password")
|
|
private String password;
|
|
@SerializedName("scope")
|
|
private String scope = "user";
|
|
@SerializedName("externalAuthToken")
|
|
private String externalAuthToken;
|
|
@SerializedName("refresh_token")
|
|
private String refresh_token;
|
|
@SerializedName("access_token")
|
|
private String access_token;
|
|
@SerializedName("response_type")
|
|
private String response_type;
|
|
@SerializedName("code")
|
|
private String code;
|
|
@SerializedName("redirect_uri")
|
|
private String redirect_uri;
|
|
|
|
public String getClient_secret() {
|
|
return client_secret;
|
|
}
|
|
|
|
public void setClient_secret(String client_secret) {
|
|
this.client_secret = client_secret;
|
|
}
|
|
|
|
public String getClient_id() {
|
|
return client_id;
|
|
}
|
|
|
|
public void setClient_id(String client_id) {
|
|
this.client_id = client_id;
|
|
}
|
|
|
|
public String getUsername() {
|
|
return username;
|
|
}
|
|
|
|
public void setUsername(String username) {
|
|
this.username = username;
|
|
}
|
|
|
|
public String getPassword() {
|
|
return password;
|
|
}
|
|
|
|
public void setPassword(String password) {
|
|
this.password = password;
|
|
}
|
|
|
|
public String getScope() {
|
|
return scope;
|
|
}
|
|
|
|
public void setScope(String scope) {
|
|
this.scope = scope;
|
|
}
|
|
|
|
public String getGrant_type() {
|
|
return grant_type;
|
|
}
|
|
|
|
public void setGrant_type(String grant_type) {
|
|
this.grant_type = grant_type;
|
|
}
|
|
|
|
public String getExternalAuthToken() {
|
|
return externalAuthToken;
|
|
}
|
|
|
|
public void setExternalAuthToken(String externalAuthToken) {
|
|
this.externalAuthToken = externalAuthToken;
|
|
}
|
|
|
|
public String getRefresh_token() {
|
|
return refresh_token;
|
|
}
|
|
|
|
public void setRefresh_token(String refresh_token) {
|
|
this.refresh_token = refresh_token;
|
|
}
|
|
|
|
public String getAccess_token() {
|
|
return access_token;
|
|
}
|
|
|
|
public void setAccess_token(String access_token) {
|
|
this.access_token = access_token;
|
|
}
|
|
|
|
public String getResponse_type() {
|
|
return response_type;
|
|
}
|
|
|
|
public void setResponse_type(String response_type) {
|
|
this.response_type = response_type;
|
|
}
|
|
|
|
public String getCode() {
|
|
return code;
|
|
}
|
|
|
|
public void setCode(String code) {
|
|
this.code = code;
|
|
}
|
|
|
|
public String getRedirect_uri() {
|
|
return redirect_uri;
|
|
}
|
|
|
|
public void setRedirect_uri(String redirect_uri) {
|
|
this.redirect_uri = redirect_uri;
|
|
}
|
|
}
|