Package app.controller.user
Class ActionResult
java.lang.Object
app.controller.user.ActionResult
The
ActionResult class encapsulates the result of a user-related
action, such as a login attempt.
It holds a boolean result indicating the success or failure of the action and
an integer representing the user type.
This class provides getters and setters for accessing and modifying these properties.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves the result of the login action.intRetrieves the type of the user.voidsetLoginResult(boolean result) Sets the result of the login action.voidsetUserType(int userType) Sets the type of the user.
-
Constructor Details
-
ActionResult
public ActionResult()
-
-
Method Details
-
getLoginResult
public boolean getLoginResult()Retrieves the result of the login action.- Returns:
- boolean The result of the login action, true if successful, false otherwise.
-
getUserType
public int getUserType()Retrieves the type of the user.- Returns:
- int An integer representing the user type.
-
setLoginResult
public void setLoginResult(boolean result) Sets the result of the login action.- Parameters:
result- The boolean result to set, true for a successful login, false otherwise.
-
setUserType
public void setUserType(int userType) Sets the type of the user.- Parameters:
userType- An integer representing the user type to be set.
-