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