File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
application/src/main/java/org/togetherjava/tjbot/config Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 8
8
/**
9
9
* Represents the configuration for an application form, including roles and application channel
10
10
* pattern.
11
+ *
12
+ * @param submissionsChannelPattern the pattern used to identify the submissions channel where applications are sent
13
+ * @param defaultQuestion the default question that will be asked in the role application form
14
+ * @param minimumAnswerLength the minimum number of characters required for the applicant's answer
15
+ * @param maximumAnswerLength the maximum number of characters allowed for the applicant's answer
16
+ * @param applicationSubmitCooldownMinutes the cooldown time in minutes before the user can submit another application
11
17
*/
12
18
public record RoleApplicationSystemConfig (
13
19
@ JsonProperty (value = "submissionsChannelPattern" ,
@@ -20,9 +26,9 @@ public record RoleApplicationSystemConfig(
20
26
21
27
/**
22
28
* Constructs an instance of {@link RoleApplicationSystemConfig} with the provided parameters.
23
- *
24
- * @param submissionsChannelPattern the pattern used to identify the application channel
25
- * @param defaultQuestion the default question for the form
29
+ * <p>
30
+ * This constructor ensures that {@code submissionsChannelPattern} and {@code defaultQuestion}
31
+ * are not null and that the length of the {@code defaultQuestion} does not exceed the maximum allowed length.
26
32
*/
27
33
public RoleApplicationSystemConfig {
28
34
Objects .requireNonNull (submissionsChannelPattern );
You can’t perform that action at this time.
0 commit comments