2020-08-16 17:14:41 +02:00
|
|
|
package envoy.event;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This class allows envoy users to send an issue proposal to the server who, if
|
2020-09-25 14:29:23 +02:00
|
|
|
* not disabled by its administrator, will forward it directly to Gitea.
|
2020-08-16 17:14:41 +02:00
|
|
|
*
|
|
|
|
* @author Leon Hofmeister
|
|
|
|
* @since Envoy Common v0.2-beta
|
|
|
|
*/
|
2020-08-22 13:37:07 +02:00
|
|
|
public final class IssueProposal extends Event<String> {
|
2020-08-16 17:14:41 +02:00
|
|
|
|
|
|
|
private final String description;
|
|
|
|
private final boolean bug;
|
|
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
|
|
/**
|
2020-08-16 23:57:04 +02:00
|
|
|
* @param title the title of the reported bug
|
|
|
|
* @param description the description of this bug
|
|
|
|
* @param isBug determines whether this {@code IssueProposal} is
|
|
|
|
* supposed to be a
|
|
|
|
* feature or a bug (true = bug, false = feature)
|
2020-08-16 17:14:41 +02:00
|
|
|
* @since Envoy Common v0.2-beta
|
|
|
|
*/
|
2020-08-16 23:57:04 +02:00
|
|
|
public IssueProposal(String title, String description, boolean isBug) {
|
2020-08-16 17:14:41 +02:00
|
|
|
super(title);
|
|
|
|
this.description = description;
|
|
|
|
bug = isBug;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return the description
|
|
|
|
* @since Envoy Common v0.2-beta
|
|
|
|
*/
|
|
|
|
public String getDescription() { return description; }
|
|
|
|
|
|
|
|
/**
|
2020-08-16 23:57:04 +02:00
|
|
|
* @return whether this issue is supposed to be a bug - otherwise it is intended
|
2020-08-16 17:14:41 +02:00
|
|
|
* as a feature
|
|
|
|
* @since Envoy Common v0.2-beta
|
|
|
|
*/
|
|
|
|
public boolean isBug() { return bug; }
|
|
|
|
}
|