Class EffectResponse.Valid

Enclosing class:
EffectResponse

public static final class EffectResponse.Valid extends EffectResponse
Represents a valid response, which means that the requested change is both needed and possible.
See Also:
  • Method Details

    • getEffect

      @NotNull public Effect getEffect()
      Description copied from class: EffectResponse
      Returns the actual effect, or null if error or empty.
      Overrides:
      getEffect in class EffectResponse
    • getSuccessMessage

      @NotNull public I18nText getSuccessMessage()
      Description copied from class: EffectResponse

      Returns a human-readable description of the change, as if it already happened, e.g. "Assigned FOO-123 to John Doe."

      This description is null for error and empty responses.

      Overrides:
      getSuccessMessage in class EffectResponse