Class OperationResult

java.lang.Object
app.controller.camp.OperationResult

public class OperationResult extends Object
Represents the outcome of an operation, encapsulating the result (success or failure) and an associated comment or message.
  • Constructor Details

    • OperationResult

      public OperationResult(boolean result, String comment)
      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

      public String 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

      public void setComment(String comment)
      Sets the comment for the operation result.
      Parameters:
      comment - The comment or message to associate with the operation result.