Class SuccessMessage

java.lang.Object
io.goobi.viewer.api.rest.model.SuccessMessage
All Implemented Interfaces:
IResponseMessage

public class SuccessMessage extends Object implements IResponseMessage

SuccessMessage class.

Author:
Florian Alpers
  • Constructor Details

    • SuccessMessage

      public SuccessMessage(boolean success, String message)

      Constructor for SuccessMessage.

      Parameters:
      success - a boolean.
      message - a String object.
    • SuccessMessage

      public SuccessMessage(boolean success)

      Constructor for SuccessMessage.

      Parameters:
      success - a boolean.
  • Method Details

    • isSuccess

      public boolean isSuccess()

      isSuccess.

      Returns:
      the success
    • getMessage

      public String getMessage()

      Getter for the field message.

      Specified by:
      getMessage in interface IResponseMessage
      Returns:
      the message
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object