Added a custom success(string) method
This commit is contained in:
parent
7323a1fa85
commit
f5935c6923
@ -36,6 +36,10 @@ public class AttackResult {
|
|||||||
private String output;
|
private String output;
|
||||||
|
|
||||||
public static AttackResult success() {
|
public static AttackResult success() {
|
||||||
|
return AttackResult.success("Congratulations");
|
||||||
|
}
|
||||||
|
|
||||||
|
public static AttackResult success(String feedback) {
|
||||||
AttackResult attackResult = new AttackResult();
|
AttackResult attackResult = new AttackResult();
|
||||||
attackResult.lessonCompleted = true;
|
attackResult.lessonCompleted = true;
|
||||||
attackResult.feedback = "Congratulations";
|
attackResult.feedback = "Congratulations";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user