Constants is now an object instead of a class

This commit is contained in:
Erik C. Thauvin 2023-01-30 23:23:27 -08:00
parent a272599b09
commit 81c1a40899

View file

@ -32,40 +32,22 @@
package net.thauvin.erik.bitly package net.thauvin.erik.bitly
/** Provides the constants for this package. */ /** Provides the constants for this package. */
open class Constants private constructor() { object Constants {
companion object Constants { /** The Bitly API base URL. */
/** const val API_BASE_URL = "https://api-ssl.bitly.com/v4"
* The Bitly API base URL.
*
* @value `https://api-ssl.bitly.com/v4`
*/
const val API_BASE_URL = "https://api-ssl.bitly.com/v4"
/** /** The API access token environment variable. */
* The API access token environment variable. const val ENV_ACCESS_TOKEN = "BITLY_ACCESS_TOKEN"
*
* @value `BITLY_ACCESS_TOKEN`
*/
const val ENV_ACCESS_TOKEN = "BITLY_ACCESS_TOKEN"
/** Empty String. */ /** Empty String. */
const val EMPTY = "" const val EMPTY = ""
/** Empty JSON Object. */ /** Empty JSON Object. */
const val EMPTY_JSON = "{}" const val EMPTY_JSON = "{}"
/** /** False */
* False const val FALSE = false.toString()
*
* @value `false`
*/
const val FALSE = false.toString()
/** /** True */
* True const val TRUE = true.toString()
*
* @value `true`
*/
const val TRUE = true.toString()
}
} }