Skip to content

Commit 1ace527

Browse files
committed
Update PluginTrackerModel.java
1 parent 09f8a42 commit 1ace527

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

src/main/java/org/hydev/mcpm/client/models/PluginTrackerModel.java

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,25 @@ public class PluginTrackerModel {
1111
String versionId;
1212
String pluginId;
1313

14+
/**
15+
* Constructor for PluginTrackerModel.
16+
*
17+
* @param name The name of the plugin.
18+
* @param isManual Whether the plugin is manually installed.
19+
* @param versionId The version ID of the plugin.
20+
* @param pluginId The plugin ID of the plugin.
21+
*/
1422
public PluginTrackerModel(String name, Boolean isManual, String versionId, String pluginId) {
1523
this.name = name;
1624
this.isManual = isManual;
1725
this.versionId = versionId;
1826
this.pluginId = pluginId;
1927
}
2028

29+
/**
30+
* Constructor for PluginTrackerModel
31+
* Instantiates a PluginTrackerModel object from a string.
32+
*/
2133
public PluginTrackerModel(String stringRepresentation) {
2234
String[] split = stringRepresentation.split(",");
2335
this.name = split[0];
@@ -30,7 +42,7 @@ public String getName() {
3042
return name;
3143
}
3244

33-
public Boolean getManual() {
45+
public Boolean isManual() {
3446
return isManual;
3547
}
3648

@@ -41,4 +53,8 @@ public String getVersionId() {
4153
public String getPluginId() {
4254
return pluginId;
4355
}
56+
57+
public void setManual(boolean newBool) {
58+
this.isManual = newBool;
59+
}
4460
}

0 commit comments

Comments
 (0)