mirror of
https://github.com/AutismDevelopment/Autism-Client.git
synced 2026-10-28 19:39:48 +00:00
Release the tag update
This commit is contained in:
commit
780a4ac030
1179 changed files with 262845 additions and 0 deletions
|
|
@ -0,0 +1,15 @@
|
|||
package autismclient.api.custommenu;
|
||||
|
||||
public record CustomMenuButton(int index, String label, String actionId, Kind kind) {
|
||||
public enum Kind { CUSTOM, COMMAND, DIALOG, URL, CLIPBOARD, OTHER, EMPTY }
|
||||
|
||||
public CustomMenuButton {
|
||||
label = label == null ? "" : label;
|
||||
actionId = actionId == null ? "" : actionId;
|
||||
kind = kind == null ? Kind.OTHER : kind;
|
||||
}
|
||||
|
||||
public boolean serverRelevant() {
|
||||
return kind == Kind.CUSTOM || kind == Kind.COMMAND || kind == Kind.DIALOG;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue