Skip to content

Commit

Permalink
Add Starboard entities to Guildconfig [#126]
Browse files Browse the repository at this point in the history
  • Loading branch information
ShowMeYourSkil committed Jun 29, 2021
1 parent 80d71ed commit cf73748
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
package de.progen_bot.db.entities.config;

public class GuildConfiguration {

private String prefix;
private String logChannelID;
private String tempChannelCategoryID;
private String autoRole;
private String starBoardChannelID;

GuildConfiguration(String prefix, String logChannelID, String tempChannelCategoryID, String autoRole, String starBoardChannelID) {

this.prefix = prefix;
this.logChannelID = logChannelID;
this.tempChannelCategoryID = tempChannelCategoryID;
this.autoRole = autoRole;
this.starBoardChannelID = starBoardChannelID;
}

public String getPrefix() {
return prefix;
}

public void setPrefix(String prefix) {
this.prefix = prefix;
}

public String getLogChannelID() {
return logChannelID;
}

public void setLogChannelID(String logChannelID) {
this.logChannelID = logChannelID;
}

public String getTempChannelCategoryID() {
return tempChannelCategoryID;
}

public void setTempChannelCategoryID(String tempChannelCategoryID) {
this.tempChannelCategoryID = tempChannelCategoryID;
}

public String getAutoRole() {
return autoRole;
}

public void setAutoRole(String autoRole) {
this.autoRole = autoRole;
}

public String getStarBoardChannelID(){
return starBoardChannelID;
}

public void setStarBoardChannelID(String starBoardChannelID){
this.starBoardChannelID = starBoardChannelID;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
package de.progen_bot.db.entities.config;

public class GuildConfigurationBuilder {

private String prefix;
private String logChannelID;
private String tempChannelCategoryID;
private String autorole;
private String starBoardChannelID;

public GuildConfigurationBuilder setPrefix(String prefix) {
this.prefix = prefix;
return this;
}

public GuildConfigurationBuilder setLogChannelID(String logChannelID) {
this.logChannelID = logChannelID;
return this;
}

public GuildConfigurationBuilder setTempChannelCategoryID(String tempChannelCategoryID) {
this.tempChannelCategoryID = tempChannelCategoryID;
return this;
}

public GuildConfigurationBuilder setAutorole(String autorole){
this.autorole = autorole;

return this;
}

public GuildConfigurationBuilder setStarBoardChannelID(String starBoardChannelID){
this.starBoardChannelID = starBoardChannelID;

return this;
}

public GuildConfiguration build() {
return new GuildConfiguration(this.prefix, this.logChannelID, this.tempChannelCategoryID, this.autorole, this.starBoardChannelID);
}
}

0 comments on commit cf73748

Please sign in to comment.