001package net.tnemc.plugincore.core.utils; 002 003/* 004 * The New Plugin Core 005 * Copyright (C) 2022 - 2024 Daniel "creatorfromhell" Vidmar 006 * 007 * This program is free software: you can redistribute it and/or modify 008 * it under the terms of the GNU Affero General Public License as published by 009 * the Free Software Foundation, either version 3 of the License, or 010 * (at your option) any later version. 011 * 012 * This program is distributed in the hope that it will be useful, 013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 015 * GNU Affero General Public License for more details. 016 * 017 * You should have received a copy of the GNU Affero General Public License 018 * along with this program. If not, see <http://www.gnu.org/licenses/>. 019 */ 020 021/** 022 * This represents a response from an event handler that should be returned to the implementation. 023 * 024 * @author creatorfromhell 025 * @since 0.1.2.0 026 */ 027public class HandlerResponse { 028 029 private String response; 030 private boolean cancelled; 031 032 public HandlerResponse(String response, boolean cancelled) { 033 this.response = response; 034 this.cancelled = cancelled; 035 } 036 037 public String getResponse() { 038 return response; 039 } 040 041 public void setResponse(String response) { 042 this.response = response; 043 } 044 045 public boolean isCancelled() { 046 return cancelled; 047 } 048 049 public void setCancelled(boolean cancelled) { 050 this.cancelled = cancelled; 051 } 052}