-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Starboard entities to Guildconfig [#126]
- Loading branch information
1 parent
80d71ed
commit cf73748
Showing
2 changed files
with
100 additions
and
0 deletions.
There are no files selected for viewing
59 changes: 59 additions & 0 deletions
59
src/main/java/de/progen_bot/db/entities/config/GuildConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
src/main/java/de/progen_bot/db/entities/config/GuildConfigurationBuilder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |