@@ -23,9 +23,25 @@ public final class VoteStreakDefinition {
2323
2424 @ Getter
2525 private final boolean recurring ;
26+ @ Getter
27+ private final String progressGroup ;
28+ @ Getter
29+ private final String rewardPath ;
2630
2731 public VoteStreakDefinition (String id , VoteStreakType type , boolean enabled , int requiredAmount , int votesRequired ,
2832 int allowMissedAmount , int allowMissedPeriod , boolean recurring ) {
33+ this (id , type , enabled , requiredAmount , votesRequired , allowMissedAmount , allowMissedPeriod , recurring , "" ,
34+ "VoteStreaks." + id + ".Rewards" );
35+ }
36+
37+ public VoteStreakDefinition (String id , VoteStreakType type , boolean enabled , int requiredAmount , int votesRequired ,
38+ int allowMissedAmount , int allowMissedPeriod , boolean recurring , String progressGroup ) {
39+ this (id , type , enabled , requiredAmount , votesRequired , allowMissedAmount , allowMissedPeriod , recurring ,
40+ progressGroup , "VoteStreaks." + id + ".Rewards" );
41+ }
42+
43+ public VoteStreakDefinition (String id , VoteStreakType type , boolean enabled , int requiredAmount , int votesRequired ,
44+ int allowMissedAmount , int allowMissedPeriod , boolean recurring , String progressGroup , String rewardPath ) {
2945 this .id = id ;
3046 this .type = type ;
3147 this .enabled = enabled ;
@@ -34,6 +50,9 @@ public VoteStreakDefinition(String id, VoteStreakType type, boolean enabled, int
3450 this .allowMissedPeriod = Math .max (0 , allowMissedPeriod );
3551 this .votesRequired = Math .max (1 , votesRequired );
3652 this .recurring = recurring ;
53+ this .progressGroup = progressGroup == null ? "" : progressGroup .trim ();
54+ this .rewardPath = rewardPath == null || rewardPath .trim ().isEmpty () ? "VoteStreaks." + id + ".Rewards"
55+ : rewardPath .trim ();
3756 }
3857
3958}
0 commit comments