diff --git a/app/src/main/java/org/ntlab/radishforandroidstudio/cactusClient/UseCases/UserLoginUseCases.java b/app/src/main/java/org/ntlab/radishforandroidstudio/cactusClient/UseCases/UserLoginUseCases.java index 0d918b6..6565174 100644 --- a/app/src/main/java/org/ntlab/radishforandroidstudio/cactusClient/UseCases/UserLoginUseCases.java +++ b/app/src/main/java/org/ntlab/radishforandroidstudio/cactusClient/UseCases/UserLoginUseCases.java @@ -1,6 +1,7 @@ package org.ntlab.radishforandroidstudio.cactusClient.UseCases; import org.ntlab.radishforandroidstudio.cactusClient.Entities.CactusConnectionEntity; +import org.ntlab.radishforandroidstudio.cactusClient.models.CactusUserModel; public class UserLoginUseCases implements UserLoginControllerBoundary { @@ -8,8 +9,16 @@ private CactusConnectionEntity cactusConnectionEntity; private UserLoginBoundary userLoginBoundary; + private String userID; + private String userPass; + CactusUserModel cactusUserModel; + public UserLoginUseCases(UserLoginBoundary userLoginBound) { this.userLoginBoundary = userLoginBound; + + //Entityに情報をセットする + cactusUserModel = new CactusUserModel(); + } @@ -19,18 +28,18 @@ return LOGIN_URL; } - private String userID; - private String userPass; @Override public String getUserID() { userID = userLoginBoundary.getUserId(); + cactusUserModel.setUserId(userID); return userID; } @Override public String getUserPass() { userPass = userLoginBoundary.getUserPass(); + cactusUserModel.setUserPass(userPass); return userPass; }