Added reset() function.
This commit is contained in:
parent
6590668e65
commit
a74dd56c68
1 changed files with 12 additions and 0 deletions
|
@ -315,6 +315,18 @@ open class Akismet(apiKey: String) {
|
|||
return false
|
||||
}
|
||||
|
||||
/**
|
||||
* Reset the [debugHelp], [httpStatusCode], [isDiscard], [isVerifiedKey], [proTip], and [response] properties.
|
||||
*/
|
||||
fun reset() {
|
||||
debugHelp = ""
|
||||
httpStatusCode = 0
|
||||
isDiscard = false
|
||||
isVerifiedKey = false
|
||||
proTip = ""
|
||||
response = ""
|
||||
}
|
||||
|
||||
private fun buildApiUrl(method: String): HttpUrl? {
|
||||
if (method == verifyMethod) {
|
||||
return String.format(apiEndPoint, "", method).toHttpUrlOrNull()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue