Package app.controller.camp
Class OperationResult
java.lang.Object
app.controller.camp.OperationResult
Represents the outcome of an operation, encapsulating the result (success or failure)
and an associated comment or message.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an OperationResult with default values.OperationResult(boolean result, String comment) Constructs a new OperationResult with a specified result and comment. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the comment associated with the operation result.booleanRetrieves the result of the operation.voidsetComment(String comment) Sets the comment for the operation result.voidsetLoginResult(boolean result) Sets the result of the operation.
-
Constructor Details
-
OperationResult
Constructs a new OperationResult with a specified result and comment.- Parameters:
result- The outcome of the operation (true for success, false for failure).comment- A comment or message associated with the operation result.
-
OperationResult
public OperationResult()Constructs an OperationResult with default values.
-
-
Method Details
-
getLoginResult
public boolean getLoginResult()Retrieves the result of the operation.- Returns:
- true if the operation was successful, false otherwise.
-
getComment
Retrieves the comment associated with the operation result.- Returns:
- The comment or message associated with the operation result.
-
setLoginResult
public void setLoginResult(boolean result) Sets the result of the operation.- Parameters:
result- The outcome of the operation to set (true for success, false for failure).
-
setComment
Sets the comment for the operation result.- Parameters:
comment- The comment or message to associate with the operation result.
-