-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMenuMetadataDTO.java
More file actions
100 lines (80 loc) · 2.7 KB
/
Copy pathMenuMetadataDTO.java
File metadata and controls
100 lines (80 loc) · 2.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
package net.blueva.menu.common.dto;
/**
* Represents basic metadata of a menu for the web editor
*/
public class MenuMetadataDTO {
private String fileName; // e.g., "chest_example.yml"
private String menuName; // Display name from config
private String platform; // "JAVA" or "BEDROCK"
private String type; // "CHEST", "SIMPLE", "MODAL", "CUSTOM"
private String openCommand; // Command to open the menu
private int itemCount; // Number of items/buttons (optional)
private boolean registered = true; // Whether the menu is registered in java_menus/bedrock_menus and actually loaded
private String source = "disk"; // Where the menu content lives: "disk" or "mysql"
// Default constructor for JSON serialization
public MenuMetadataDTO() {
}
public MenuMetadataDTO(String fileName, String menuName, String platform, String type, String openCommand, int itemCount) {
this.fileName = fileName;
this.menuName = menuName;
this.platform = platform;
this.type = type;
this.openCommand = openCommand;
this.itemCount = itemCount;
}
public MenuMetadataDTO(String fileName, String menuName, String platform, String type, String openCommand,
int itemCount, boolean registered, String source) {
this(fileName, menuName, platform, type, openCommand, itemCount);
this.registered = registered;
this.source = source;
}
// Getters and setters
public String getFileName() {
return fileName;
}
public void setFileName(String fileName) {
this.fileName = fileName;
}
public String getMenuName() {
return menuName;
}
public void setMenuName(String menuName) {
this.menuName = menuName;
}
public String getPlatform() {
return platform;
}
public void setPlatform(String platform) {
this.platform = platform;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getOpenCommand() {
return openCommand;
}
public void setOpenCommand(String openCommand) {
this.openCommand = openCommand;
}
public int getItemCount() {
return itemCount;
}
public void setItemCount(int itemCount) {
this.itemCount = itemCount;
}
public boolean isRegistered() {
return registered;
}
public void setRegistered(boolean registered) {
this.registered = registered;
}
public String getSource() {
return source;
}
public void setSource(String source) {
this.source = source;
}
}