@@ -54,13 +54,18 @@ public PingService() {}
5454
5555 /**
5656 * Initializes the object with the api key
57+ *
58+ * @param key The API key for Redunda. You can get it form the instances overview
5759 * */
5860 public PingService (String key ) {
5961 this .apiKey = key ;
6062 }
6163
6264 /**
6365 * Initializes the object with the api key and bot-version
66+ *
67+ * @param key The API key for Redunda. You can get it form the instances overview
68+ * @param botVersion The version of your bot as string
6469 * */
6570 public PingService (String key , String botVersion ) {
6671 this .apiKey = key ;
@@ -69,6 +74,10 @@ public PingService(String key, String botVersion) {
6974
7075 /**
7176 * Initializes the object with a `pingInterval` in seconds, the bot's verision and the api key
77+ *
78+ * @param key The API key for Redunda. You can get it form the instances overview
79+ * @param botVersion The version of your bot as string
80+ * @param pingInterval The time in seconds between two pings. (30 by default)
7281 * */
7382 public PingService (String key , String botVersion , int pingInterval ) {
7483 this .apiKey = key ;
@@ -78,6 +87,10 @@ public PingService(String key, String botVersion, int pingInterval) {
7887
7988 /**
8089 * Enables or disables the debugging mode.
90+ *
91+ * If the debugging mode is activated, the bot will never be on standby.
92+ *
93+ * @param debug The new value
8194 * */
8295 public void setDebugging (boolean debug ) {
8396 this .debugging = debug ;
@@ -88,6 +101,8 @@ public void setDebugging(boolean debug) {
88101
89102 /**
90103 * Returns is PingService is in debugging mode.
104+ *
105+ * @returns true, if debugging is enabled
91106 * */
92107 public boolean getDebugging () {
93108 return this .debugging ;
0 commit comments