2323import java .util .Map ;
2424
2525/**
26- * Class for handling the sites to post to and the delay for the auto-post option in the
27- * {@link com.andre601.javabotblockapi.RequestHandler RequestHandler} .
26+ * Class used to define the auth-tokens used for the different sites.
27+ * <br>The instance of this class will be used in the {@link com.andre601.javabotblockapi.requests.PostAction PostAction} class .
2828 */
2929public class BotBlockAPI {
3030 private static final int DEFAULT_DELAY = 30 ;
@@ -37,20 +37,20 @@ public class BotBlockAPI{
3737 * <br>This will also set the update interval to 30 minutes.
3838 *
3939 * @param authTokens
40- * A Map of sites and their tokens. May not be null .
41- * <br>You may receive the API-token from your botlist .
40+ * A not null Map of sites and their tokens.
41+ * <br>You may receive the API-token from your bot list .
4242 */
4343 public BotBlockAPI (@ NotNull Map <String , String > authTokens ){
4444 this .authTokens = authTokens ;
4545 this .updateInterval = DEFAULT_DELAY ;
4646 }
4747
4848 /**
49- * Constructor to set the Map with the sites and tokens and also the update delay..
49+ * Constructor to set the Map with the sites and tokens and also the update delay.
5050 *
5151 * @param authTokens
52- * A Map of sites and their tokens. May not be null .
53- * <br>You may receive the API-token from your botlist .
52+ * A not null Map of sites and their tokens.
53+ * <br>You may receive the API-token from your bot list .
5454 * @param updateInterval
5555 * The update interval to set.
5656 */
@@ -89,8 +89,8 @@ public Builder(){}
8989 * @param site
9090 * The {@link com.andre601.javabotblockapi.Site Site} to get the name from.
9191 * @param token
92- * The API token from the corresponding botlist . May not be null or empty.
93- * <br>You may receive the API token from the botlist .
92+ * The API token from the corresponding bot list . May not be null or empty.
93+ * <br>You may receive the API token from the bot list .
9494 *
9595 * @throws NullPointerException
9696 * When the provided token is empty ({@code ""}).
@@ -115,8 +115,8 @@ public Builder addAuthToken(@NotNull Site site, @NotNull String token){
115115 * The name of the site. May not be null.
116116 * <br>A list of supported sites can be found <a href="https://botblock.org/api/docs#count" target="_blank">here</a>.
117117 * @param token
118- * The API token from the corresponding botlist . May not be null or empty.
119- * <br>You may receive the API token from the botlist .
118+ * The API token from the corresponding bot list . May not be null or empty.
119+ * <br>You may receive the API token from the bot list .
120120 *
121121 * @throws NullPointerException
122122 * When either the site or token are empty ({@code ""}).
0 commit comments