package envoy.event; /** * This class allows envoy users to send an issue proposal to the server who, if * not disabled by its admin, will forward it directly to gitea. *

* Project: common
* File: IssueProposal.java
* Created: Aug 5, 2020
* * @author Leon Hofmeister * @since Envoy Common v0.2-beta */ public class IssueProposal extends Event { private final String submitterName; private final String description; private final boolean bug; private static final long serialVersionUID = 1L; /** * @param title the title of the reported bug * @param description the description of this bug * @param submitterName the user who submitted the bug * @param isBug determines whether this {@code IssueProposal} is * supposed to be a * feature or a bug (true = bug, false = feature) * @since Envoy Common v0.2-beta */ public IssueProposal(String title, String description, String submitterName, boolean isBug) { super(title); this.submitterName = submitterName; this.description = description; bug = isBug; } /** * @return the description * @since Envoy Common v0.2-beta */ public String getDescription() { return description; } /** * @return the name of the user who sent this bug report * @since Envoy Common v0.2-beta */ public String getSubmitterName() { return submitterName; } /** * @return whether this issue is supposed to be a bug - if false it is intended * as a feature * @since Envoy Common v0.2-beta */ public boolean isBug() { return bug; } }