mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-04-26 09:28:26 -04:00
Use delombok to fix build
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
package io.xpipe.core.dialog;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Value;
|
||||
|
||||
@Value
|
||||
@AllArgsConstructor(onConstructor=@__({@JsonCreator}))
|
||||
public class Choice {
|
||||
|
||||
/**
|
||||
@@ -41,4 +39,11 @@ public class Choice {
|
||||
this.description = description;
|
||||
this.disabled = false;
|
||||
}
|
||||
|
||||
@JsonCreator
|
||||
public Choice(Character character, String description, boolean disabled) {
|
||||
this.character = character;
|
||||
this.description = description;
|
||||
this.disabled = disabled;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user