Added Android code
[wl-app.git] / Android / app / src / main / java / com / moiseum / wolnelektury / connection / models / OAuthTokenModel.java
diff --git a/Android/app/src/main/java/com/moiseum/wolnelektury/connection/models/OAuthTokenModel.java b/Android/app/src/main/java/com/moiseum/wolnelektury/connection/models/OAuthTokenModel.java
new file mode 100644 (file)
index 0000000..778ee51
--- /dev/null
@@ -0,0 +1,36 @@
+package com.moiseum.wolnelektury.connection.models;
+
+import com.google.gson.annotations.SerializedName;
+
+import org.parceler.Parcel;
+
+/**
+ * Created by Piotr Ostrowski on 11.06.2018.
+ */
+@Parcel(Parcel.Serialization.BEAN)
+public class OAuthTokenModel {
+
+       @SerializedName("oauth_token_secret")
+       private String tokenSecret;
+       @SerializedName("oauth_token")
+       private String token;
+
+       public OAuthTokenModel() {
+       }
+
+       public String getTokenSecret() {
+               return tokenSecret;
+       }
+
+       public void setTokenSecret(String tokenSecret) {
+               this.tokenSecret = tokenSecret;
+       }
+
+       public String getToken() {
+               return token;
+       }
+
+       public void setToken(String token) {
+               this.token = token;
+       }
+}