From a989409433c0325dfb2becfee68da87b5a85df92 Mon Sep 17 00:00:00 2001 From: Andrea Clement Date: Thu, 5 Mar 2020 20:34:48 +0100 Subject: [PATCH] add new API object for authentification --- app/src/main/java/com/h/pixeldroid/login/LoginTool.kt | 5 ----- app/src/main/java/com/h/pixeldroid/objects/Token.kt | 8 ++++++++ 2 files changed, 8 insertions(+), 5 deletions(-) delete mode 100644 app/src/main/java/com/h/pixeldroid/login/LoginTool.kt create mode 100644 app/src/main/java/com/h/pixeldroid/objects/Token.kt diff --git a/app/src/main/java/com/h/pixeldroid/login/LoginTool.kt b/app/src/main/java/com/h/pixeldroid/login/LoginTool.kt deleted file mode 100644 index 06935ba8..00000000 --- a/app/src/main/java/com/h/pixeldroid/login/LoginTool.kt +++ /dev/null @@ -1,5 +0,0 @@ -package com.h.pixeldroid.login - -class LoginTool { - -} \ No newline at end of file diff --git a/app/src/main/java/com/h/pixeldroid/objects/Token.kt b/app/src/main/java/com/h/pixeldroid/objects/Token.kt new file mode 100644 index 00000000..fe0cedbe --- /dev/null +++ b/app/src/main/java/com/h/pixeldroid/objects/Token.kt @@ -0,0 +1,8 @@ +package com.h.pixeldroid.objects + +data class Token( + val access_token: String, + val token_type: String, + val scope: String, + val created_at: Int +) \ No newline at end of file