mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-09-30 00:56:56 +13:00
Use delombok to fix build
This commit is contained in:
parent
3c72078d2b
commit
2cb3670b5b
1 changed files with 7 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue