summaryrefslogtreecommitdiffstats
path: root/app/src/main/java/fr/gouv/etalab/mastodon/client/Entities/Account.java
diff options
context:
space:
mode:
authorstom79 <tschneider.ac@gmail.com>2019-01-05 12:17:38 +0100
committerstom79 <tschneider.ac@gmail.com>2019-01-05 12:17:38 +0100
commiteefe1edc3b8cd924d0892a2d1aa53e3ce21ec558 (patch)
tree29316c3dbf0b5493d37eb3a372b3e5bc63e7a1af /app/src/main/java/fr/gouv/etalab/mastodon/client/Entities/Account.java
parent7c298dcec0251af45df6fd028390816f5167d857 (diff)
Prepares db for storing information for refreshing the token #699
Diffstat (limited to 'app/src/main/java/fr/gouv/etalab/mastodon/client/Entities/Account.java')
-rw-r--r--app/src/main/java/fr/gouv/etalab/mastodon/client/Entities/Account.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/app/src/main/java/fr/gouv/etalab/mastodon/client/Entities/Account.java b/app/src/main/java/fr/gouv/etalab/mastodon/client/Entities/Account.java
index d34c368ba..21ce9150f 100644
--- a/app/src/main/java/fr/gouv/etalab/mastodon/client/Entities/Account.java
+++ b/app/src/main/java/fr/gouv/etalab/mastodon/client/Entities/Account.java
@@ -106,6 +106,9 @@ public class Account implements Parcelable {
private String host;
private boolean isBot;
private String social;
+ private String client_id;
+ private String client_secret;
+ private String refresh_token;
protected Account(Parcel in) {
id = in.readString();
@@ -288,6 +291,30 @@ public class Account implements Parcelable {
this.uuid = uuid;
}
+ public String getClient_id() {
+ return client_id;
+ }
+
+ public void setClient_id(String client_id) {
+ this.client_id = client_id;
+ }
+
+ public String getClient_secret() {
+ return client_secret;
+ }
+
+ public void setClient_secret(String client_secret) {
+ this.client_secret = client_secret;
+ }
+
+ public String getRefresh_token() {
+ return refresh_token;
+ }
+
+ public void setRefresh_token(String refresh_token) {
+ this.refresh_token = refresh_token;
+ }
+
public enum followAction{
FOLLOW,