diff options
Diffstat (limited to 'src/main/java/com/juick/model')
-rw-r--r-- | src/main/java/com/juick/model/AuthResponse.java (renamed from src/main/java/com/juick/model/Auth.java) | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/main/java/com/juick/model/Auth.java b/src/main/java/com/juick/model/AuthResponse.java index 45185ace..b229c7ac 100644 --- a/src/main/java/com/juick/model/Auth.java +++ b/src/main/java/com/juick/model/AuthResponse.java @@ -17,14 +17,18 @@ package com.juick.model; +import com.juick.server.api.Users; + /** * Created by vt on 09/02/16. */ -public class Auth { +public class AuthResponse { + private final Users.SecureUser user; private final String account; private final String authCode; - public Auth(String account, String authCode) { + public AuthResponse(Users.SecureUser user, String account, String authCode) { + this.user = user; this.account = account; this.authCode = authCode; } @@ -36,4 +40,8 @@ public class Auth { public String getAuthCode() { return authCode; } + + public Users.SecureUser getUser() { + return user; + } }
\ No newline at end of file |