diff --git a/README.md b/README.md index 38ce246..9e41b8e 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ [![License (3-Clause BSD)](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg?style=flat-square)](https://opensource.org/licenses/BSD-3-Clause) -[![Kotlin](https://img.shields.io/badge/kotlin-1.9.24-7f52ff)](https://kotlinlang.org/) +[![Kotlin](https://img.shields.io/badge/kotlin-2.0.0-7f52ff)](https://kotlinlang.org/) [![bld](https://img.shields.io/badge/1.9.1-FA9052?label=bld&labelColor=2392FF)](https://rife2.com/bld) [![Release](https://img.shields.io/github/release/ethauvin/akismet-kotlin.svg)](https://github.com/ethauvin/akismet-kotlin/releases/latest) [![Nexus Snapshot](https://img.shields.io/nexus/s/net.thauvin.erik/akismet-kotlin?label=snapshot&server=https%3A%2F%2Foss.sonatype.org%2F)](https://oss.sonatype.org/content/repositories/snapshots/net/thauvin/erik/akismet-kotlin/) @@ -19,14 +19,16 @@ A pretty complete and straightforward implementation of the [Automattic's Akisme ```kotlin val akismet = Akismet(apiKey = "YOUR_API_KEY", blog = "YOUR_BLOG_URL") -val comment = AkismetComment(userIp = "127.0.0.1", userAgent = "curl/7.29.0").apply { +val comment = AkismetComment(userIp = "127.0.0.1", userAgent = "curl/7.29.0") + +with(comment) { referrer = "https://www.google.com" type = AkismetComment.TYPE_COMMENT author = "admin" authorEmail = "test@test.com" authorUrl = "https://www.CheckOutMyCoolSite.com" dateGmt = Akismet.dateToGmt(Date()) - content = "Thanks for reviewing our software." + content = "It means a lot that you would take the time to review our software." } // ... @@ -42,17 +44,15 @@ if (isSpam) { ```java final Akismet akismet = new Akismet("YOUR_API_KEY", "YOUR_BLOG_URL"); -final AkismetComment comment = new AkismetComment( - new CommentConfig.Builder("127.0.0.1", "curl/7.29.0") - .referrer("https://www.google.com") - .type(Akismet.TYPE_COMMENT) - .author("admin") - .authorEmail("test@test.com") - .authorUrl("https://www.CheckOutMyCoolSite.com") - .dateGmt(Akismet.dateToGmt(new Date())) - .content("Thanks for reviewing our software.") - .build -); +final AkismetComment comment = new AkismetComment("127.0.0.1", "curl/7.29.0"); + +comment.setReferrer("https://www.google.com"); +comment.setType(AkismetComment.TYPE_COMMENT); +comment.setAuthor("admin"); +comment.setAuthorEmail("test@test.com"); +comment.setAuthorUrl("https://www.CheckOutMyCoolSite.com"); +comment.setDateGmt(Akismet.dateToGmt(new Date())); +comment.setContent("It means a lot that you would take the time to review our software."); //... final boolean isSpam = akismet.checkComment(comment); diff --git a/config/detekt/baseline.xml b/config/detekt/baseline.xml index a4794c3..935e447 100644 --- a/config/detekt/baseline.xml +++ b/config/detekt/baseline.xml @@ -5,14 +5,12 @@ CyclomaticComplexMethod:Akismet.kt$Akismet$private fun buildFormBody(comment: AkismetComment): FormBody CyclomaticComplexMethod:AkismetComment.kt$AkismetComment$@Suppress("DuplicatedCode") override fun equals(other: Any?): Boolean LongParameterList:AkismetServlet.kt$AkismetServlet$( id: String, name: String?, email: String?, date: String?, comment: String?, json: String, isSpam: Boolean ) - LongParameterList:CommentConfig.kt$CommentConfig$( var userIp: String, var userAgent: String, var referrer: String = "", var permalink: String = "", var type: String = "", var author: String = "", var authorEmail: String = "", var authorUrl: String = "", var content: String = "", var dateGmt: String = "", var postModifiedGmt: String = "", var blogLang: String = "", var blogCharset: String = "", var userRole: String = "", var isTest: Boolean = false, var recheckReason: String = "", var serverEnv: Map<String, String> = emptyMap() ) MagicNumber:Akismet.kt$Akismet$12 MagicNumber:Akismet.kt$Akismet$8 NestedBlockDepth:Akismet.kt$Akismet$@JvmOverloads fun executeMethod(apiUrl: HttpUrl, formBody: FormBody, trueOnError: Boolean = false): Boolean NestedBlockDepth:AkismetExample.kt$fun main(args: Array<String>) NestedBlockDepth:AkismetTest.kt$fun getKey(key: String): String ReturnCount:Akismet.kt$Akismet$@JvmOverloads fun executeMethod(apiUrl: HttpUrl, formBody: FormBody, trueOnError: Boolean = false): Boolean - TooManyFunctions:CommentConfig.kt$CommentConfig$Builder WildcardImport:AkismetTest.kt$import assertk.assertions.* diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-akismet-comment.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-akismet-comment.html index 7c95c93..3013bd1 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-akismet-comment.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-akismet-comment.html @@ -66,10 +66,10 @@

AkismetComment

-
constructor(request: <Error class: unknown class>)(source)

Creates a new instance extracting the userIp, userAgent, referrer and serverEnv environment variables from a Servlet request.

See the Akismet API for more details.

See also


constructor(config: CommentConfig)(source)


constructor(userIp: String, userAgent: String)(source)

Creates a new instance.

See the Akismet API for more details.

Parameters

userIp

IP address of the comment submitter.

userAgent

User agent string of the web browser submitting the comment.

+
constructor(request: <Error class: unknown class>)(source)

Creates a new instance extracting the userIp, userAgent, referrer and serverEnv environment variables from a Servlet request.

See the Akismet API for more details.

See also


constructor(userIp: String, userAgent: String)(source)

Creates a new instance.

See the Akismet API for more details.

Parameters

userIp

IP address of the comment submitter.

userAgent

User agent string of the web browser submitting the comment.

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-a-d-m-i-n_-r-o-l-e.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-a-d-m-i-n_-r-o-l-e.html index d034a3f..66a74d9 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-a-d-m-i-n_-r-o-l-e.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-a-d-m-i-n_-r-o-l-e.html @@ -69,7 +69,7 @@

Administrator role. If used, Akismet will always return false.

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-b-l-o-g_-p-o-s-t.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-b-l-o-g_-p-o-s-t.html index 7355fc7..5968791 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-b-l-o-g_-p-o-s-t.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-b-l-o-g_-p-o-s-t.html @@ -69,7 +69,7 @@

A blog post.

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-c-o-m-m-e-n-t.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-c-o-m-m-e-n-t.html index afe8804..9df75a7 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-c-o-m-m-e-n-t.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-c-o-m-m-e-n-t.html @@ -69,7 +69,7 @@

A blog comment.

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-c-o-n-t-a-c-t_-f-o-r-m.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-c-o-n-t-a-c-t_-f-o-r-m.html index 8b621e3..c6d715d 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-c-o-n-t-a-c-t_-f-o-r-m.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-c-o-n-t-a-c-t_-f-o-r-m.html @@ -69,7 +69,7 @@

A contact form or feedback form submission.

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-f-o-r-u-m_-p-o-s-t.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-f-o-r-u-m_-p-o-s-t.html index 904d5ab..e7affbe 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-f-o-r-u-m_-p-o-s-t.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-f-o-r-u-m_-p-o-s-t.html @@ -69,7 +69,7 @@

A top-level forum post.

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-m-e-s-s-a-g-e.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-m-e-s-s-a-g-e.html index 6eebb27..c9e30ef 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-m-e-s-s-a-g-e.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-m-e-s-s-a-g-e.html @@ -69,7 +69,7 @@

A message sent between just a few users.

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-p-i-n-g-b-a-c-k.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-p-i-n-g-b-a-c-k.html index 88d4c32..978e89b 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-p-i-n-g-b-a-c-k.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-p-i-n-g-b-a-c-k.html @@ -69,7 +69,7 @@

A pingback.

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-r-e-p-l-y.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-r-e-p-l-y.html index 27d019e..546c9e7 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-r-e-p-l-y.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-r-e-p-l-y.html @@ -69,7 +69,7 @@

A reply to a top-level forum post.

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-s-i-g-n-u-p.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-s-i-g-n-u-p.html index ffbd0fe..23556f1 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-s-i-g-n-u-p.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-s-i-g-n-u-p.html @@ -69,7 +69,7 @@

A new user account.

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-t-r-a-c-k-b-a-c-k.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-t-r-a-c-k-b-a-c-k.html index 5cf4269..0eed509 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-t-r-a-c-k-b-a-c-k.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-t-r-a-c-k-b-a-c-k.html @@ -69,7 +69,7 @@

A trackback.

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-t-w-e-e-t.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-t-w-e-e-t.html index 6d6a965..3c1f811 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-t-w-e-e-t.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-t-w-e-e-t.html @@ -69,7 +69,7 @@

A Twitter message.

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/index.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/index.html index fa7d536..66d5f6f 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/index.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/index.html @@ -243,7 +243,7 @@ diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/author-email.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/author-email.html index 7a99041..32b3e8e 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/author-email.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/author-email.html @@ -66,10 +66,10 @@

authorEmail

-

Email address submitted with the comment.

+

Email address submitted with the comment.

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/author-url.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/author-url.html index 3c7bb0b..b4eaa89 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/author-url.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/author-url.html @@ -66,10 +66,10 @@

authorUrl

-

URL submitted with comment.

+

URL submitted with comment.

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/author.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/author.html index fbf6f8b..b483d03 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/author.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/author.html @@ -66,10 +66,10 @@

author

-

Name submitted with the comment.

+

Name submitted with the comment.

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/blog-charset.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/blog-charset.html index e41952e..5bf0ffc 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/blog-charset.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/blog-charset.html @@ -66,10 +66,10 @@

blogCharset

-

The character encoding for the form values included in comment parameters, such as UTF-8 or ISO-8859-1

+

The character encoding for the form values included in comment parameters, such as UTF-8 or ISO-8859-1

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/blog-lang.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/blog-lang.html index 408401c..23a222b 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/blog-lang.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/blog-lang.html @@ -66,10 +66,10 @@

blogLang

-

Indicates the language(s) in use on the blog or site, in ISO 639-1 format, comma-separated.

A site with articles in English and French might use: en, fr_ca

+

Indicates the language(s) in use on the blog or site, in ISO 639-1 format, comma-separated.

A site with articles in English and French might use: en, fr_ca

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/content.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/content.html index f61a684..b0a64a8 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/content.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/content.html @@ -66,10 +66,10 @@

content

-

The content that was submitted.

+

The content that was submitted.

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/date-gmt.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/date-gmt.html index 332a620..9a963db 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/date-gmt.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/date-gmt.html @@ -66,10 +66,10 @@

dateGmt

-

The UTC timestamp of the creation of the comment, in ISO 8601 format.

May be omitted if the comment is sent to the API at the time it is created.

See also

+

The UTC timestamp of the creation of the comment, in ISO 8601 format.

May be omitted if the comment is sent to the API at the time it is created.

See also

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/equals.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/equals.html index e4cde43..7b22c2a 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/equals.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/equals.html @@ -66,10 +66,10 @@

equals

-
open operator override fun equals(other: Any?): Boolean(source)

Indicates whether some other object is equal to this one.

+
open operator override fun equals(other: Any?): Boolean(source)

Indicates whether some other object is equal to this one.

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/hash-code.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/hash-code.html index 590c660..2fd48d0 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/hash-code.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/hash-code.html @@ -66,10 +66,10 @@

hashCode

-
open override fun hashCode(): Int(source)

Returns a hash code value for the object.

+
open override fun hashCode(): Int(source)

Returns a hash code value for the object.

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/index.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/index.html index d7f79e9..bc05111 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/index.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/index.html @@ -72,17 +72,17 @@

Constructors

-
+
- +
Link copied to clipboard
-
constructor(request: <Error class: unknown class>)

Creates a new instance extracting the userIp, userAgent, referrer and serverEnv environment variables from a Servlet request.

constructor(config: CommentConfig)
constructor(userIp: String, userAgent: String)

Creates a new instance.

+
constructor(request: <Error class: unknown class>)

Creates a new instance extracting the userIp, userAgent, referrer and serverEnv environment variables from a Servlet request.

constructor(userIp: String, userAgent: String)

Creates a new instance.

@@ -120,7 +120,7 @@
-

Name submitted with the comment.

+

Name submitted with the comment.

@@ -135,7 +135,7 @@
-

Email address submitted with the comment.

+

Email address submitted with the comment.

@@ -150,7 +150,7 @@
-

URL submitted with comment.

+

URL submitted with comment.

@@ -165,7 +165,7 @@
-

The character encoding for the form values included in comment parameters, such as UTF-8 or ISO-8859-1

+

The character encoding for the form values included in comment parameters, such as UTF-8 or ISO-8859-1

@@ -180,7 +180,7 @@
-

Indicates the language(s) in use on the blog or site, in ISO 639-1 format, comma-separated.

+

Indicates the language(s) in use on the blog or site, in ISO 639-1 format, comma-separated.

@@ -195,7 +195,7 @@
-

The content that was submitted.

+

The content that was submitted.

@@ -210,7 +210,7 @@
-

The UTC timestamp of the creation of the comment, in ISO 8601 format.

+

The UTC timestamp of the creation of the comment, in ISO 8601 format.

@@ -225,7 +225,7 @@
-

This is an optional parameter. You can use it when submitting test queries to Akismet.

+

This is an optional parameter. You can use it when submitting test queries to Akismet.

@@ -240,7 +240,7 @@
-

The full permanent URL of the entry the comment was submitted to.

+

The full permanent URL of the entry the comment was submitted to.

@@ -255,7 +255,7 @@
-

The UTC timestamp of the publication time for the post, page or thread on which the comment was posted.

+

The UTC timestamp of the publication time for the post, page or thread on which the comment was posted.

@@ -270,7 +270,7 @@
-

If you are sending content to Akismet to be rechecked, such as a post that has been edited or old pending comments that you'd like to recheck, include this parameter with a string describing why the content is being rechecked.

+

If you are sending content to Akismet to be rechecked, such as a post that has been edited or old pending comments that you'd like to recheck, include this parameter with a string describing why the content is being rechecked.

@@ -285,7 +285,7 @@
-

The content of the referer header should be set here.

+

The content of the referer header should be set here.

@@ -300,7 +300,7 @@
-

In PHP, there is an array of environmental variables called $_SERVER that contains information about the Web server itself as well as a key/value for every HTTP header sent with the request. This data is highly useful to Akismet.

+

In PHP, there is an array of environmental variables called $_SERVER that contains information about the Web server itself as well as a key/value for every HTTP header sent with the request. This data is highly useful to Akismet.

@@ -315,7 +315,7 @@
-
var type: String?

A string that describes the type of content being sent, such as:

+
var type: String?

A string that describes the type of content being sent, such as:

@@ -330,7 +330,7 @@
- +
@@ -345,7 +345,7 @@
- +
@@ -360,7 +360,7 @@
-

The user role of the user who submitted the comment. This is an optional parameter.

+

The user role of the user who submitted the comment. This is an optional parameter.

@@ -409,7 +409,7 @@
-
fun toJson(): String

Returns a JSON representation of the comment.

+
fun toJson(): String

Returns a JSON representation of the comment.

@@ -435,7 +435,7 @@ diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/is-test.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/is-test.html index ef61f6e..58cc1e9 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/is-test.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/is-test.html @@ -66,10 +66,10 @@

isTest

-

This is an optional parameter. You can use it when submitting test queries to Akismet.

+

This is an optional parameter. You can use it when submitting test queries to Akismet.

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/permalink.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/permalink.html index b4d9093..ae5f2b4 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/permalink.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/permalink.html @@ -66,10 +66,10 @@

permalink

-

The full permanent URL of the entry the comment was submitted to.

+

The full permanent URL of the entry the comment was submitted to.

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/post-modified-gmt.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/post-modified-gmt.html index d1bb3c7..2a322f3 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/post-modified-gmt.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/post-modified-gmt.html @@ -66,10 +66,10 @@

postModifiedGmt

-

The UTC timestamp of the publication time for the post, page or thread on which the comment was posted.

See also

+

The UTC timestamp of the publication time for the post, page or thread on which the comment was posted.

See also

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/recheck-reason.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/recheck-reason.html index 77a4f0e..45a2265 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/recheck-reason.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/recheck-reason.html @@ -66,10 +66,10 @@

recheckReason

-

If you are sending content to Akismet to be rechecked, such as a post that has been edited or old pending comments that you'd like to recheck, include this parameter with a string describing why the content is being rechecked.

For example: edit

+

If you are sending content to Akismet to be rechecked, such as a post that has been edited or old pending comments that you'd like to recheck, include this parameter with a string describing why the content is being rechecked.

For example: edit

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/referrer.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/referrer.html index 2efc507..426839f 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/referrer.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/referrer.html @@ -66,10 +66,10 @@

referrer

-

The content of the referer header should be set here.

+

The content of the referer header should be set here.

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/server-env.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/server-env.html index 12d306d..e850422 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/server-env.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/server-env.html @@ -66,10 +66,10 @@

serverEnv

-

In PHP, there is an array of environmental variables called $_SERVER that contains information about the Web server itself as well as a key/value for every HTTP header sent with the request. This data is highly useful to Akismet.

How the submitted content interacts with the server can be very telling, so please include as much of it as possible.

+

In PHP, there is an array of environmental variables called $_SERVER that contains information about the Web server itself as well as a key/value for every HTTP header sent with the request. This data is highly useful to Akismet.

How the submitted content interacts with the server can be very telling, so please include as much of it as possible.

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/to-json.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/to-json.html index 87190b6..3345ebe 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/to-json.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/to-json.html @@ -66,10 +66,10 @@

toJson

-

Returns a JSON representation of the comment.

See also

+

Returns a JSON representation of the comment.

See also

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/to-string.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/to-string.html index 98e8082..d2628b4 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/to-string.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/to-string.html @@ -66,10 +66,10 @@

toString

-
open override fun toString(): String(source)

Returns a JSON representation of the comment.

See also

+
open override fun toString(): String(source)

Returns a JSON representation of the comment.

See also

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/type.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/type.html index fa164f7..a067ff5 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/type.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/type.html @@ -66,10 +66,10 @@

type

-

A string that describes the type of content being sent, such as:

You may send a value not listed above if none of them accurately describe your content.

This is further explained here.

+

A string that describes the type of content being sent, such as:

You may send a value not listed above if none of them accurately describe your content.

This is further explained here.

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/user-agent.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/user-agent.html index 425c8e0..1ce0772 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/user-agent.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/user-agent.html @@ -66,10 +66,10 @@

userAgent

-

Parameters

userAgent

User agent string of the web browser submitting the comment.

+

Parameters

userAgent

User agent string of the web browser submitting the comment.

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/user-ip.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/user-ip.html index 382ca42..2b9bfbc 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/user-ip.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/user-ip.html @@ -66,10 +66,10 @@

userIp

-

Parameters

userIp

IP address of the comment submitter.

+

Parameters

userIp

IP address of the comment submitter.

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/user-role.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/user-role.html index 6fbc2a1..8ae0f29 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/user-role.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/user-role.html @@ -66,10 +66,10 @@

userRole

-

The user role of the user who submitted the comment. This is an optional parameter.

If you set it to ADMIN_ROLE, Akismet will always return false.

+

The user role of the user who submitted the comment. This is an optional parameter.

If you set it to ADMIN_ROLE, Akismet will always return false.

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-akismet.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-akismet.html index 6c96d10..d65404f 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-akismet.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-akismet.html @@ -69,7 +69,7 @@
constructor(apiKey: String, blog: String)(source)

Creates a new instance using an Akismet API key and URL registered with Akismet.


constructor(apiKey: String)(source)

Creates a new instance using the provided Akismet API key.

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-companion/date-to-gmt.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-companion/date-to-gmt.html index 12ebc0b..f7a9122 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-companion/date-to-gmt.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-companion/date-to-gmt.html @@ -66,10 +66,10 @@

dateToGmt

-

Converts a date to a UTC timestamp. (ISO 8601)

See also


Converts a locale date/time to a UTC timestamp. (ISO 8601)

See also

+

Converts a date to a UTC timestamp. (ISO 8601)

See also


Converts a locale date/time to a UTC timestamp. (ISO 8601)

See also

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-companion/index.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-companion/index.html index 15cb77a..03314eb 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-companion/index.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-companion/index.html @@ -82,7 +82,7 @@
-

Converts a locale date/time to a UTC timestamp. (ISO 8601)

fun dateToGmt(date: Date): String

Converts a date to a UTC timestamp. (ISO 8601)

+

Converts a locale date/time to a UTC timestamp. (ISO 8601)

fun dateToGmt(date: Date): String

Converts a date to a UTC timestamp. (ISO 8601)

@@ -97,7 +97,7 @@
-

(Re)Creates a comment from a JSON string.

+

(Re)Creates a comment from a JSON string.

@@ -108,7 +108,7 @@ diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-companion/json-comment.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-companion/json-comment.html index 4899569..eeb9e5d 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-companion/json-comment.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-companion/json-comment.html @@ -66,10 +66,10 @@

jsonComment

-

(Re)Creates a comment from a JSON string.

See also

+

(Re)Creates a comment from a JSON string.

See also

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/app-user-agent.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/app-user-agent.html index 2af3726..c88ec98 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/app-user-agent.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/app-user-agent.html @@ -66,10 +66,10 @@

appUserAgent

-

The application user agent to be sent to Akismet.

If possible, the application user agent string should always use the following format:

    Application Name/Version

The library's own user agent string will automatically be appended.

See the Akismet API for more details.

+

The application user agent to be sent to Akismet.

If possible, the application user agent string should always use the following format:

    Application Name/Version

The library's own user agent string will automatically be appended.

See the Akismet API for more details.

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/blog.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/blog.html index 16c3896..0da56d6 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/blog.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/blog.html @@ -66,10 +66,10 @@

blog

-

The URL registered with Akismet.

+

The URL registered with Akismet.

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/check-comment.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/check-comment.html index 51c4b63..12364f2 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/check-comment.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/check-comment.html @@ -66,10 +66,10 @@

checkComment

-
fun checkComment(comment: AkismetComment, trueOnError: Boolean = false): Boolean(source)

Comment Check.

This is the call you will make the most. It takes a number of arguments and characteristics about the submitted content and then returns a thumbs up or thumbs down. Performance can drop dramatically if you choose to exclude data points. The more data you send Akismet about each comment, the greater the accuracy. They recommend erring on the side of including too much data

By default, if an error (IO, empty response from Akismet, etc.) occurs the function will return false and log the error, use the trueOnError parameter to change this behavior.

See the Akismet API for more details.

Return

true if the comment is spam, false if the comment is not.

Parameters

trueOnError

Set to return true on error.

+
fun checkComment(comment: AkismetComment, trueOnError: Boolean = false): Boolean(source)

Comment Check.

This is the call you will make the most. It takes a number of arguments and characteristics about the submitted content and then returns a thumbs up or thumbs down. Performance can drop dramatically if you choose to exclude data points. The more data you send Akismet about each comment, the greater the accuracy. They recommend erring on the side of including too much data

By default, if an error (IO, empty response from Akismet, etc.) occurs the function will return false and log the error, use the trueOnError parameter to change this behavior.

See the Akismet API for more details.

Return

true if the comment is spam, false if the comment is not.

Parameters

trueOnError

Set to return true on error.

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/debug-help.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/debug-help.html index 662ecd8..b0d819a 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/debug-help.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/debug-help.html @@ -66,10 +66,10 @@

debugHelp

-

The x-akismet-debug-help header from the last operation, if any.

If the call returns neither true nor false, the x-akismet-debug-help header will provide context for any error that has occurred.

Note that the x-akismet-debug-help header will not always be sent if a response does not return false or true.

See the Akismet API for more details.

+

The x-akismet-debug-help header from the last operation, if any.

If the call returns neither true nor false, the x-akismet-debug-help header will provide context for any error that has occurred.

Note that the x-akismet-debug-help header will not always be sent if a response does not return false or true.

See the Akismet API for more details.

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/error-message.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/error-message.html index 7ebd106..072beab 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/error-message.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/error-message.html @@ -66,10 +66,10 @@

errorMessage

-

The error message.

The error (IO, empty response from Akismet, etc.) message is also logged as a warning.

See also

+

The error message.

The error (IO, empty response from Akismet, etc.) message is also logged as a warning.

See also

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/execute-method.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/execute-method.html index 6864594..9917361 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/execute-method.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/execute-method.html @@ -66,10 +66,10 @@

executeMethod

-
fun executeMethod(apiUrl: <Error class: unknown class>, formBody: <Error class: unknown class>, trueOnError: Boolean = false): Boolean(source)

Executes a call to an Akismet REST API method.

Parameters

apiUrl

The Akismet API URL endpoint. (e.g. https://rest.akismet.com/1.1/verify-key)

formBody

The HTTP POST form body containing the request parameters to be submitted.

trueOnError

Set to return true on error (IO, empty response, etc.)

+
fun executeMethod(apiUrl: <Error class: unknown class>, formBody: <Error class: unknown class>, trueOnError: Boolean = false): Boolean(source)

Executes a call to an Akismet REST API method.

Parameters

apiUrl

The Akismet API URL endpoint. (e.g. https://rest.akismet.com/1.1/verify-key)

formBody

The HTTP POST form body containing the request parameters to be submitted.

trueOnError

Set to return true on error (IO, empty response, etc.)

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/http-status-code.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/http-status-code.html index ef6eb2d..4f00cdf 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/http-status-code.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/http-status-code.html @@ -66,10 +66,10 @@

httpStatusCode

-

The HTTP status code of the last operation.

+

The HTTP status code of the last operation.

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/index.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/index.html index ecd5030..2b797a4 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/index.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/index.html @@ -120,7 +120,7 @@
-

The application user agent to be sent to Akismet.

+

The application user agent to be sent to Akismet.

@@ -135,7 +135,7 @@
-

The URL registered with Akismet.

+

The URL registered with Akismet.

@@ -150,7 +150,7 @@
-

The x-akismet-debug-help header from the last operation, if any.

+

The x-akismet-debug-help header from the last operation, if any.

@@ -165,7 +165,7 @@
-

The error message.

+

The error message.

@@ -180,7 +180,7 @@
-

The HTTP status code of the last operation.

+

The HTTP status code of the last operation.

@@ -195,7 +195,7 @@
-

Set to true if Akismet has determined that the last checked comment is blatant spam, and you can safely discard it without saving it in any spam queue.

+

Set to true if Akismet has determined that the last checked comment is blatant spam, and you can safely discard it without saving it in any spam queue.

@@ -210,7 +210,7 @@
-

Set to true if the API Key has been verified.

+

Set to true if the API Key has been verified.

@@ -225,7 +225,7 @@
-

The logger instance.

+

The logger instance.

@@ -240,7 +240,7 @@
-

The x-akismet-pro-tip header from the last operation, if any.

+

The x-akismet-pro-tip header from the last operation, if any.

@@ -255,7 +255,7 @@
-

The actual response sent by Akismet from the last operation.

+

The actual response sent by Akismet from the last operation.

@@ -274,7 +274,7 @@
-
fun checkComment(comment: AkismetComment, trueOnError: Boolean = false): Boolean

Comment Check.

+
fun checkComment(comment: AkismetComment, trueOnError: Boolean = false): Boolean

Comment Check.

@@ -289,7 +289,7 @@
-
fun executeMethod(apiUrl: <Error class: unknown class>, formBody: <Error class: unknown class>, trueOnError: Boolean = false): Boolean

Executes a call to an Akismet REST API method.

+
fun executeMethod(apiUrl: <Error class: unknown class>, formBody: <Error class: unknown class>, trueOnError: Boolean = false): Boolean

Executes a call to an Akismet REST API method.

@@ -304,7 +304,7 @@
- +
@@ -319,7 +319,7 @@
-

Submit Ham. (False Positives)

+

Submit Ham. (False Positives)

@@ -334,7 +334,7 @@
-

Submit Spam. (Missed Spam)

+

Submit Spam. (Missed Spam)

@@ -349,7 +349,7 @@
-

Key Verification.

+

Key Verification.

@@ -360,7 +360,7 @@ diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/is-discard.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/is-discard.html index 7432915..ae2d654 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/is-discard.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/is-discard.html @@ -66,10 +66,10 @@

isDiscard

-

Set to true if Akismet has determined that the last checked comment is blatant spam, and you can safely discard it without saving it in any spam queue.

See the Akismet API for more details.

See also

+

Set to true if Akismet has determined that the last checked comment is blatant spam, and you can safely discard it without saving it in any spam queue.

See the Akismet API for more details.

See also

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/is-verified-key.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/is-verified-key.html index 63bd9ed..1030676 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/is-verified-key.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/is-verified-key.html @@ -66,10 +66,10 @@

isVerifiedKey

-

Set to true if the API Key has been verified.

See also

+

Set to true if the API Key has been verified.

See also

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/logger.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/logger.html index 4a22835..1ab7294 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/logger.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/logger.html @@ -66,10 +66,10 @@

logger

-

The logger instance.

+

The logger instance.

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/pro-tip.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/pro-tip.html index d84c664..04647a8 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/pro-tip.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/pro-tip.html @@ -66,10 +66,10 @@

proTip

-

The x-akismet-pro-tip header from the last operation, if any.

If the x-akismet-pro-tip header is set to discard, then Akismet has determined that the comment is blatant spam, and you can safely discard it without saving it in any spam queue.

See the Akismet API for more details.

See also

+

The x-akismet-pro-tip header from the last operation, if any.

If the x-akismet-pro-tip header is set to discard, then Akismet has determined that the comment is blatant spam, and you can safely discard it without saving it in any spam queue.

See the Akismet API for more details.

See also

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/reset.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/reset.html index 89b0d83..aa0b1cc 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/reset.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/reset.html @@ -66,10 +66,10 @@

reset

-
fun reset()(source)

Resets the debugHelp, errorMessage, httpStatusCode, isDiscard, isVerifiedKey, proTip, and response properties.

+
fun reset()(source)

Resets the debugHelp, errorMessage, httpStatusCode, isDiscard, isVerifiedKey, proTip, and response properties.

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/response.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/response.html index 441f1d3..9c21ba0 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/response.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/response.html @@ -66,10 +66,10 @@

response

-

The actual response sent by Akismet from the last operation.

For example: true, false, valid, invalid, etc.

+

The actual response sent by Akismet from the last operation.

For example: true, false, valid, invalid, etc.

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/submit-ham.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/submit-ham.html index fd3d7a4..0c1b658 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/submit-ham.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/submit-ham.html @@ -66,10 +66,10 @@

submitHam

-

Submit Ham. (False Positives)

This call is intended for the submission of false positives - items that were incorrectly classified as spam by Akismet. It takes identical arguments as comment check and submit spam.

It is very important that the values you submit with this call match those of your comment check calls as closely as possible. In order to learn from its mistakes, Akismet needs to match your missed spam and false positive reports to the original comment-check API calls made when the content was first posted. While it is normal for less information to be available for submit-spam and submit-ham calls (most comment systems and forums will not store all metadata), you should ensure that the values that you do send match those of the original content.

See the Akismet API for more details.

Return

true if the comment was submitted, false otherwise.

+

Submit Ham. (False Positives)

This call is intended for the submission of false positives - items that were incorrectly classified as spam by Akismet. It takes identical arguments as comment check and submit spam.

It is very important that the values you submit with this call match those of your comment check calls as closely as possible. In order to learn from its mistakes, Akismet needs to match your missed spam and false positive reports to the original comment-check API calls made when the content was first posted. While it is normal for less information to be available for submit-spam and submit-ham calls (most comment systems and forums will not store all metadata), you should ensure that the values that you do send match those of the original content.

See the Akismet API for more details.

Return

true if the comment was submitted, false otherwise.

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/submit-spam.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/submit-spam.html index 0ee0cc5..22d568e 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/submit-spam.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/submit-spam.html @@ -66,10 +66,10 @@

submitSpam

-

Submit Spam. (Missed Spam)

This call is for submitting comments that weren't marked as spam but should have been.

It is very important that the values you submit with this call match those of your comment check calls as closely as possible. In order to learn from its mistakes, Akismet needs to match your missed spam and false positive reports to the original comment-check API calls made when the content was first posted. While it is normal for less information to be available for submit-spam and submit-ham calls (most comment systems and forums will not store all metadata), you should ensure that the values that you do send match those of the original content.

See the Akismet API for more details.

Return

true if the comment was submitted, false otherwise.

+

Submit Spam. (Missed Spam)

This call is for submitting comments that weren't marked as spam but should have been.

It is very important that the values you submit with this call match those of your comment check calls as closely as possible. In order to learn from its mistakes, Akismet needs to match your missed spam and false positive reports to the original comment-check API calls made when the content was first posted. While it is normal for less information to be available for submit-spam and submit-ham calls (most comment systems and forums will not store all metadata), you should ensure that the values that you do send match those of the original content.

See the Akismet API for more details.

Return

true if the comment was submitted, false otherwise.

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/verify-key.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/verify-key.html index b59bdb6..9272ecd 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/verify-key.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/verify-key.html @@ -66,10 +66,10 @@

verifyKey

-

Key Verification.

Key verification authenticates your key before calling the comment check, submit spam, or submit ham methods. This is the first call that you should make to Akismet and is especially useful if you will have multiple users with their own Akismet subscriptions using your application.

See the Akismet API for more details.

Return

true if the key is valid, false otherwise.

See also

+

Key Verification.

Key verification authenticates your key before calling the comment check, submit spam, or submit ham methods. This is the first call that you should make to Akismet and is especially useful if you will have multiple users with their own Akismet subscriptions using your application.

See the Akismet API for more details.

Return

true if the key is valid, false otherwise.

See also

diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/-builder.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/-builder.html deleted file mode 100644 index fd78ecf..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/-builder.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - Builder - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

Builder

-
-
constructor(userIp: String, userAgent: String)(source)

Parameters

userIp

IP address of the comment submitter.

userAgent

User agent string of the web browser submitting the comment.

-
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/author-email.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/author-email.html deleted file mode 100644 index 37a811e..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/author-email.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - authorEmail - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

authorEmail

-
-

Sets the email address submitted with the comment.


-
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/author-url.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/author-url.html deleted file mode 100644 index 39880c6..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/author-url.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - authorUrl - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

authorUrl

-
-

Sets the URL submitted with comment.


-
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/author.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/author.html deleted file mode 100644 index 553d17b..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/author.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - author - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

author

-
-

Sets the mame submitted with the comment.


-
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/blog-charset.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/blog-charset.html deleted file mode 100644 index f6eba16..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/blog-charset.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - blogCharset - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

blogCharset

-
-

Sets the character encoding for the form values included in comment parameters, such as UTF-8 or ISO-8859-1


-
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/blog-lang.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/blog-lang.html deleted file mode 100644 index c9820b0..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/blog-lang.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - blogLang - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

blogLang

-
-

Indicates the language(s) in use on the blog or site, in ISO 639-1 format, comma-separated.

A site with articles in English and French might use: en, fr_ca


-
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/build.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/build.html deleted file mode 100644 index 4846b23..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/build.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - build - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

build

-
-

Builds a new comment configuration.

-
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/content.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/content.html deleted file mode 100644 index ab0641a..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/content.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - content - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

content

-
-

Sets the content that was submitted.


-
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/date-gmt.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/date-gmt.html deleted file mode 100644 index 50cb95f..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/date-gmt.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - dateGmt - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

dateGmt

-
-

Sets the UTC timestamp of the creation of the comment, in ISO 8601 format.

May be omitted if the comment is sent to the API at the time it is created.

See also


-
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/index.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/index.html deleted file mode 100644 index 6989807..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/index.html +++ /dev/null @@ -1,637 +0,0 @@ - - - - - Builder - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

Builder

-
data class Builder(var userIp: String, var userAgent: String)(source)

Provides a configuration builder.

Parameters

userIp

IP address of the comment submitter.

userAgent

User agent string of the web browser submitting the comment.

-
-
-
-
-
-

Constructors

-
-
-
-
- - -
Link copied to clipboard
-
-
-
-
constructor(userIp: String, userAgent: String)
-
-
-
-
-
-
-
-

Properties

-
-
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
- -
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
- -
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
-
-
-
-

Functions

-
-
-
-
- - -
Link copied to clipboard
-
-
-
-

Sets the mame submitted with the comment.

-
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
-

Sets the email address submitted with the comment.

-
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
-

Sets the URL submitted with comment.

-
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
-

Sets the character encoding for the form values included in comment parameters, such as UTF-8 or ISO-8859-1

-
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
-

Indicates the language(s) in use on the blog or site, in ISO 639-1 format, comma-separated.

-
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
-

Builds a new comment configuration.

-
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
-

Sets the content that was submitted.

-
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
-

Sets the UTC timestamp of the creation of the comment, in ISO 8601 format.

-
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
-

This is optional. You can set it when submitting test queries to Akismet.

-
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
-

Sets the full permanent URL of the entry the comment was submitted to.

-
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
-
fun postModifiedGmt(postModifiedGmt: String): <Error class: unknown class>

Sets the UTC timestamp of the publication time for the post, page or thread on which the comment was posted.

-
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
-

If you are sending content to Akismet to be rechecked, such as a post that has been edited or old pending comments that you'd like to recheck, include this parameter with a string describing why the content is being rechecked.

-
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
-

Sets the content of the referrer header.

-
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
-

In PHP, there is an array of environmental variables called $_SERVER that contains information about the Web server itself as well as a key/value for every HTTP header sent with the request. This data is highly useful to Akismet.

-
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
-

Sets a string that describes the type of content being sent, such as:

-
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
-

Sets the user agent string of the web browser submitting the comment.

-
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
-

Sets the IP address of the comment submitter.

-
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
-

Set the user role of the user who submitted the comment. This is an optional parameter.

-
-
-
-
-
-
-
-
-
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/is-test.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/is-test.html deleted file mode 100644 index 4cfd974..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/is-test.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - isTest - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

isTest

-
-

This is optional. You can set it when submitting test queries to Akismet.


-
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/permalink.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/permalink.html deleted file mode 100644 index 7e5089b..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/permalink.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - permalink - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

permalink

-
-

Sets the full permanent URL of the entry the comment was submitted to.


-
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/post-modified-gmt.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/post-modified-gmt.html deleted file mode 100644 index d2103fa..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/post-modified-gmt.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - postModifiedGmt - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

postModifiedGmt

-
-
fun postModifiedGmt(postModifiedGmt: String): <Error class: unknown class>(source)

Sets the UTC timestamp of the publication time for the post, page or thread on which the comment was posted.

See also


-
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/recheck-reason.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/recheck-reason.html deleted file mode 100644 index ed9266f..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/recheck-reason.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - recheckReason - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

recheckReason

-
-

If you are sending content to Akismet to be rechecked, such as a post that has been edited or old pending comments that you'd like to recheck, include this parameter with a string describing why the content is being rechecked.

For example: edit


-
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/referrer.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/referrer.html deleted file mode 100644 index 1687d92..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/referrer.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - referrer - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

referrer

-
-

Sets the content of the referrer header.


-
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/server-env.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/server-env.html deleted file mode 100644 index 4fe2379..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/server-env.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - serverEnv - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

serverEnv

-
-

In PHP, there is an array of environmental variables called $_SERVER that contains information about the Web server itself as well as a key/value for every HTTP header sent with the request. This data is highly useful to Akismet.

How the submitted content interacts with the server can be very telling, so please include as much of it as possible.


-
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/type.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/type.html deleted file mode 100644 index 1223c05..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/type.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - type - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

type

-
-

Sets a string that describes the type of content being sent, such as:

You may send a value not listed above if none of them accurately describe your content.

This is further explained here.


-
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/user-agent.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/user-agent.html deleted file mode 100644 index ebe0b60..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/user-agent.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - userAgent - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

userAgent

-
-

Sets the user agent string of the web browser submitting the comment.


Parameters

userAgent

User agent string of the web browser submitting the comment.

-
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/user-ip.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/user-ip.html deleted file mode 100644 index f2b7151..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/user-ip.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - userIp - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

userIp

-
-

Sets the IP address of the comment submitter.


Parameters

userIp

IP address of the comment submitter.

-
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/user-role.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/user-role.html deleted file mode 100644 index 53891ca..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/user-role.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - userRole - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

userRole

-
-

Set the user role of the user who submitted the comment. This is an optional parameter.

If you set it to ADMIN_ROLE, Akismet will always return false.


-
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-comment-config.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-comment-config.html deleted file mode 100644 index d3106ab..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-comment-config.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - CommentConfig - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

CommentConfig

-
-
constructor(builder: CommentConfig.Builder)(source)


constructor(userIp: String, userAgent: String, referrer: String = "", permalink: String = "", type: String = "", author: String = "", authorEmail: String = "", authorUrl: String = "", content: String = "", dateGmt: String = "", postModifiedGmt: String = "", blogLang: String = "", blogCharset: String = "", userRole: String = "", isTest: Boolean = false, recheckReason: String = "", serverEnv: Map<String, String> = emptyMap())(source)

Parameters

userIp

IP address of the comment submitter.

userAgent

User agent string of the web browser submitting the comment.

-
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/author-email.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/author-email.html deleted file mode 100644 index f929016..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/author-email.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - authorEmail - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

authorEmail

-
- -
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/author-url.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/author-url.html deleted file mode 100644 index b68ae93..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/author-url.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - authorUrl - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

authorUrl

-
- -
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/author.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/author.html deleted file mode 100644 index 4dddd46..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/author.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - author - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

author

-
- -
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/blog-charset.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/blog-charset.html deleted file mode 100644 index e461179..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/blog-charset.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - blogCharset - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

blogCharset

-
- -
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/blog-lang.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/blog-lang.html deleted file mode 100644 index 2cabbb2..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/blog-lang.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - blogLang - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

blogLang

-
- -
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/content.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/content.html deleted file mode 100644 index 47f76d7..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/content.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - content - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

content

-
- -
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/date-gmt.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/date-gmt.html deleted file mode 100644 index 4fa14cb..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/date-gmt.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - dateGmt - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

dateGmt

-
- -
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/index.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/index.html deleted file mode 100644 index 6a4ceaf..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/index.html +++ /dev/null @@ -1,382 +0,0 @@ - - - - - CommentConfig - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

CommentConfig

-
class CommentConfig constructor(var userIp: String, var userAgent: String, var referrer: String = "", var permalink: String = "", var type: String = "", var author: String = "", var authorEmail: String = "", var authorUrl: String = "", var content: String = "", var dateGmt: String = "", var postModifiedGmt: String = "", var blogLang: String = "", var blogCharset: String = "", var userRole: String = "", var isTest: Boolean = false, var recheckReason: String = "", var serverEnv: Map<String, String> = emptyMap())(source)

Provides a comment configuration.

Parameters

userIp

IP address of the comment submitter.

userAgent

User agent string of the web browser submitting the comment.

-
-
-
-
-
-

Constructors

-
-
-
-
- - -
Link copied to clipboard
-
-
-
-
constructor(builder: CommentConfig.Builder)
constructor(userIp: String, userAgent: String, referrer: String = "", permalink: String = "", type: String = "", author: String = "", authorEmail: String = "", authorUrl: String = "", content: String = "", dateGmt: String = "", postModifiedGmt: String = "", blogLang: String = "", blogCharset: String = "", userRole: String = "", isTest: Boolean = false, recheckReason: String = "", serverEnv: Map<String, String> = emptyMap())
-
-
-
-
-
-
-
-

Types

-
-
-
-
- - -
Link copied to clipboard
-
-
-
-
data class Builder(var userIp: String, var userAgent: String)

Provides a configuration builder.

-
-
-
-
-
-
-
-

Properties

-
-
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
- -
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
- -
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
-
-
-
-
-
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/is-test.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/is-test.html deleted file mode 100644 index 6268169..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/is-test.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - isTest - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

isTest

-
- -
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/permalink.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/permalink.html deleted file mode 100644 index 71ced0d..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/permalink.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - permalink - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

permalink

-
- -
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/post-modified-gmt.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/post-modified-gmt.html deleted file mode 100644 index 5c5b107..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/post-modified-gmt.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - postModifiedGmt - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

postModifiedGmt

-
- -
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/recheck-reason.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/recheck-reason.html deleted file mode 100644 index 7c47420..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/recheck-reason.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - recheckReason - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

recheckReason

-
- -
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/referrer.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/referrer.html deleted file mode 100644 index 4b72c35..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/referrer.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - referrer - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

referrer

-
- -
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/server-env.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/server-env.html deleted file mode 100644 index 56a04ef..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/server-env.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - serverEnv - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

serverEnv

-
- -
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/type.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/type.html deleted file mode 100644 index f9e6853..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/type.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - type - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

type

-
- -
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/user-agent.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/user-agent.html deleted file mode 100644 index 3fe2c97..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/user-agent.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - userAgent - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

userAgent

-
-

Parameters

userAgent

User agent string of the web browser submitting the comment.

-
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/user-ip.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/user-ip.html deleted file mode 100644 index 6505d24..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/user-ip.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - userIp - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

userIp

-
-

Parameters

userIp

IP address of the comment submitter.

-
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/user-role.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/user-role.html deleted file mode 100644 index 4f5faac..0000000 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/user-role.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - userRole - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
-

userRole

-
- -
- -
-
-
- - diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/index.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/index.html index f2b4375..bbb72b5 100644 --- a/docs/-akismet -kotlin/net.thauvin.erik.akismet/index.html +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/index.html @@ -102,28 +102,13 @@ - -
-
-
-
CommentConfig
- -
Link copied to clipboard
-
-
-
-
class CommentConfig constructor(var userIp: String, var userAgent: String, var referrer: String = "", var permalink: String = "", var type: String = "", var author: String = "", var authorEmail: String = "", var authorUrl: String = "", var content: String = "", var dateGmt: String = "", var postModifiedGmt: String = "", var blogLang: String = "", var blogCharset: String = "", var userRole: String = "", var isTest: Boolean = false, var recheckReason: String = "", var serverEnv: Map<String, String> = emptyMap())

Provides a comment configuration.

-
-
-
-
diff --git a/docs/-akismet -kotlin/package-list b/docs/-akismet -kotlin/package-list index 28d612c..e7dce2a 100644 --- a/docs/-akismet -kotlin/package-list +++ b/docs/-akismet -kotlin/package-list @@ -39,7 +39,6 @@ $dokka.location:net.thauvin.erik.akismet/AkismetComment.Companion/TYPE_TWEET/#/P $dokka.location:net.thauvin.erik.akismet/AkismetComment///PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/index.html $dokka.location:net.thauvin.erik.akismet/AkismetComment/AkismetComment/#[Error type: Unresolved type for HttpServletRequest]/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-akismet-comment.html $dokka.location:net.thauvin.erik.akismet/AkismetComment/AkismetComment/#kotlin.String#kotlin.String/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-akismet-comment.html -$dokka.location:net.thauvin.erik.akismet/AkismetComment/AkismetComment/#net.thauvin.erik.akismet.CommentConfig/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-akismet-comment.html $dokka.location:net.thauvin.erik.akismet/AkismetComment/author/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/author.html $dokka.location:net.thauvin.erik.akismet/AkismetComment/authorEmail/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/author-email.html $dokka.location:net.thauvin.erik.akismet/AkismetComment/authorUrl/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/author-url.html @@ -61,62 +60,5 @@ $dokka.location:net.thauvin.erik.akismet/AkismetComment/type/#/PointingToDeclara $dokka.location:net.thauvin.erik.akismet/AkismetComment/userAgent/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/user-agent.html $dokka.location:net.thauvin.erik.akismet/AkismetComment/userIp/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/user-ip.html $dokka.location:net.thauvin.erik.akismet/AkismetComment/userRole/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/user-role.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder///PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/index.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/Builder/#kotlin.String#kotlin.String/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/-builder.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/author/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/author.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/author/#kotlin.String/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/author.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/authorEmail/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/author-email.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/authorEmail/#kotlin.String/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/author-email.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/authorUrl/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/author-url.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/authorUrl/#kotlin.String/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/author-url.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/blogCharset/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/blog-charset.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/blogCharset/#kotlin.String/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/blog-charset.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/blogLang/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/blog-lang.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/blogLang/#kotlin.String/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/blog-lang.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/build/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/build.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/content/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/content.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/content/#kotlin.String/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/content.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/dateGmt/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/date-gmt.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/dateGmt/#kotlin.String/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/date-gmt.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/isTest/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/is-test.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/isTest/#kotlin.Boolean/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/is-test.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/permalink/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/permalink.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/permalink/#kotlin.String/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/permalink.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/postModifiedGmt/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/post-modified-gmt.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/postModifiedGmt/#kotlin.String/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/post-modified-gmt.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/recheckReason/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/recheck-reason.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/recheckReason/#kotlin.String/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/recheck-reason.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/referrer/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/referrer.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/referrer/#kotlin.String/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/referrer.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/serverEnv/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/server-env.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/serverEnv/#kotlin.collections.Map[kotlin.String,kotlin.String]/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/server-env.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/type/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/type.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/type/#kotlin.String/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/type.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/userAgent/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/user-agent.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/userAgent/#kotlin.String/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/user-agent.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/userIp/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/user-ip.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/userIp/#kotlin.String/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/user-ip.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/userRole/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/user-role.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/userRole/#kotlin.String/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/user-role.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig///PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/index.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig/CommentConfig/#kotlin.String#kotlin.String#kotlin.String#kotlin.String#kotlin.String#kotlin.String#kotlin.String#kotlin.String#kotlin.String#kotlin.String#kotlin.String#kotlin.String#kotlin.String#kotlin.String#kotlin.Boolean#kotlin.String#kotlin.collections.Map[kotlin.String,kotlin.String]/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-comment-config.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig/CommentConfig/#net.thauvin.erik.akismet.CommentConfig.Builder/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-comment-config.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig/author/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/author.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig/authorEmail/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/author-email.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig/authorUrl/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/author-url.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig/blogCharset/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/blog-charset.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig/blogLang/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/blog-lang.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig/content/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/content.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig/dateGmt/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/date-gmt.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig/isTest/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/is-test.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig/permalink/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/permalink.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig/postModifiedGmt/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/post-modified-gmt.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig/recheckReason/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/recheck-reason.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig/referrer/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/referrer.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig/serverEnv/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/server-env.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig/type/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/type.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig/userAgent/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/user-agent.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig/userIp/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/user-ip.html -$dokka.location:net.thauvin.erik.akismet/CommentConfig/userRole/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/user-role.html net.thauvin.erik.akismet diff --git a/docs/images/homepage.svg b/docs/images/homepage.svg deleted file mode 100644 index e3c83b1..0000000 --- a/docs/images/homepage.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/index.html b/docs/index.html index 4a4f063..c16d667 100644 --- a/docs/index.html +++ b/docs/index.html @@ -90,7 +90,7 @@ diff --git a/docs/navigation.html b/docs/navigation.html index 08fa7f2..aff718a 100644 --- a/docs/navigation.html +++ b/docs/navigation.html @@ -14,12 +14,6 @@
Companion
-
-
CommentConfig
-
- -
-
diff --git a/docs/scripts/pages.json b/docs/scripts/pages.json index ed1cadd..bdcd091 100644 --- a/docs/scripts/pages.json +++ b/docs/scripts/pages.json @@ -1 +1 @@ -[{"name":"class CommentConfig constructor(var userIp: String, var userAgent: String, var referrer: String = \"\", var permalink: String = \"\", var type: String = \"\", var author: String = \"\", var authorEmail: String = \"\", var authorUrl: String = \"\", var content: String = \"\", var dateGmt: String = \"\", var postModifiedGmt: String = \"\", var blogLang: String = \"\", var blogCharset: String = \"\", var userRole: String = \"\", var isTest: Boolean = false, var recheckReason: String = \"\", var serverEnv: Map = emptyMap())","description":"net.thauvin.erik.akismet.CommentConfig","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/index.html","searchKeys":["CommentConfig","class CommentConfig constructor(var userIp: String, var userAgent: String, var referrer: String = \"\", var permalink: String = \"\", var type: String = \"\", var author: String = \"\", var authorEmail: String = \"\", var authorUrl: String = \"\", var content: String = \"\", var dateGmt: String = \"\", var postModifiedGmt: String = \"\", var blogLang: String = \"\", var blogCharset: String = \"\", var userRole: String = \"\", var isTest: Boolean = false, var recheckReason: String = \"\", var serverEnv: Map = emptyMap())","net.thauvin.erik.akismet.CommentConfig"]},{"name":"const val ADMIN_ROLE: String","description":"net.thauvin.erik.akismet.AkismetComment.Companion.ADMIN_ROLE","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-a-d-m-i-n_-r-o-l-e.html","searchKeys":["ADMIN_ROLE","const val ADMIN_ROLE: String","net.thauvin.erik.akismet.AkismetComment.Companion.ADMIN_ROLE"]},{"name":"const val TYPE_BLOG_POST: String","description":"net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_BLOG_POST","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-b-l-o-g_-p-o-s-t.html","searchKeys":["TYPE_BLOG_POST","const val TYPE_BLOG_POST: String","net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_BLOG_POST"]},{"name":"const val TYPE_COMMENT: String","description":"net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_COMMENT","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-c-o-m-m-e-n-t.html","searchKeys":["TYPE_COMMENT","const val TYPE_COMMENT: String","net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_COMMENT"]},{"name":"const val TYPE_CONTACT_FORM: String","description":"net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_CONTACT_FORM","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-c-o-n-t-a-c-t_-f-o-r-m.html","searchKeys":["TYPE_CONTACT_FORM","const val TYPE_CONTACT_FORM: String","net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_CONTACT_FORM"]},{"name":"const val TYPE_FORUM_POST: String","description":"net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_FORUM_POST","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-f-o-r-u-m_-p-o-s-t.html","searchKeys":["TYPE_FORUM_POST","const val TYPE_FORUM_POST: String","net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_FORUM_POST"]},{"name":"const val TYPE_MESSAGE: String","description":"net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_MESSAGE","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-m-e-s-s-a-g-e.html","searchKeys":["TYPE_MESSAGE","const val TYPE_MESSAGE: String","net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_MESSAGE"]},{"name":"const val TYPE_PINGBACK: String","description":"net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_PINGBACK","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-p-i-n-g-b-a-c-k.html","searchKeys":["TYPE_PINGBACK","const val TYPE_PINGBACK: String","net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_PINGBACK"]},{"name":"const val TYPE_REPLY: String","description":"net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_REPLY","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-r-e-p-l-y.html","searchKeys":["TYPE_REPLY","const val TYPE_REPLY: String","net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_REPLY"]},{"name":"const val TYPE_SIGNUP: String","description":"net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_SIGNUP","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-s-i-g-n-u-p.html","searchKeys":["TYPE_SIGNUP","const val TYPE_SIGNUP: String","net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_SIGNUP"]},{"name":"const val TYPE_TRACKBACK: String","description":"net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_TRACKBACK","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-t-r-a-c-k-b-a-c-k.html","searchKeys":["TYPE_TRACKBACK","const val TYPE_TRACKBACK: String","net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_TRACKBACK"]},{"name":"const val TYPE_TWEET: String","description":"net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_TWEET","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-t-w-e-e-t.html","searchKeys":["TYPE_TWEET","const val TYPE_TWEET: String","net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_TWEET"]},{"name":"constructor(apiKey: String)","description":"net.thauvin.erik.akismet.Akismet.Akismet","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-akismet.html","searchKeys":["Akismet","constructor(apiKey: String)","net.thauvin.erik.akismet.Akismet.Akismet"]},{"name":"constructor(apiKey: String, blog: String)","description":"net.thauvin.erik.akismet.Akismet.Akismet","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-akismet.html","searchKeys":["Akismet","constructor(apiKey: String, blog: String)","net.thauvin.erik.akismet.Akismet.Akismet"]},{"name":"constructor(builder: CommentConfig.Builder)","description":"net.thauvin.erik.akismet.CommentConfig.CommentConfig","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-comment-config.html","searchKeys":["CommentConfig","constructor(builder: CommentConfig.Builder)","net.thauvin.erik.akismet.CommentConfig.CommentConfig"]},{"name":"constructor(config: CommentConfig)","description":"net.thauvin.erik.akismet.AkismetComment.AkismetComment","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-akismet-comment.html","searchKeys":["AkismetComment","constructor(config: CommentConfig)","net.thauvin.erik.akismet.AkismetComment.AkismetComment"]},{"name":"constructor(request: )","description":"net.thauvin.erik.akismet.AkismetComment.AkismetComment","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-akismet-comment.html","searchKeys":["AkismetComment","constructor(request: )","net.thauvin.erik.akismet.AkismetComment.AkismetComment"]},{"name":"constructor(userIp: String, userAgent: String)","description":"net.thauvin.erik.akismet.AkismetComment.AkismetComment","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-akismet-comment.html","searchKeys":["AkismetComment","constructor(userIp: String, userAgent: String)","net.thauvin.erik.akismet.AkismetComment.AkismetComment"]},{"name":"constructor(userIp: String, userAgent: String)","description":"net.thauvin.erik.akismet.CommentConfig.Builder.Builder","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/-builder.html","searchKeys":["Builder","constructor(userIp: String, userAgent: String)","net.thauvin.erik.akismet.CommentConfig.Builder.Builder"]},{"name":"constructor(userIp: String, userAgent: String, referrer: String = \"\", permalink: String = \"\", type: String = \"\", author: String = \"\", authorEmail: String = \"\", authorUrl: String = \"\", content: String = \"\", dateGmt: String = \"\", postModifiedGmt: String = \"\", blogLang: String = \"\", blogCharset: String = \"\", userRole: String = \"\", isTest: Boolean = false, recheckReason: String = \"\", serverEnv: Map = emptyMap())","description":"net.thauvin.erik.akismet.CommentConfig.CommentConfig","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-comment-config.html","searchKeys":["CommentConfig","constructor(userIp: String, userAgent: String, referrer: String = \"\", permalink: String = \"\", type: String = \"\", author: String = \"\", authorEmail: String = \"\", authorUrl: String = \"\", content: String = \"\", dateGmt: String = \"\", postModifiedGmt: String = \"\", blogLang: String = \"\", blogCharset: String = \"\", userRole: String = \"\", isTest: Boolean = false, recheckReason: String = \"\", serverEnv: Map = emptyMap())","net.thauvin.erik.akismet.CommentConfig.CommentConfig"]},{"name":"data class Builder(var userIp: String, var userAgent: String)","description":"net.thauvin.erik.akismet.CommentConfig.Builder","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/index.html","searchKeys":["Builder","data class Builder(var userIp: String, var userAgent: String)","net.thauvin.erik.akismet.CommentConfig.Builder"]},{"name":"fun author(author: String): CommentConfig.Builder","description":"net.thauvin.erik.akismet.CommentConfig.Builder.author","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/author.html","searchKeys":["author","fun author(author: String): CommentConfig.Builder","net.thauvin.erik.akismet.CommentConfig.Builder.author"]},{"name":"fun authorEmail(authorEmail: String): CommentConfig.Builder","description":"net.thauvin.erik.akismet.CommentConfig.Builder.authorEmail","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/author-email.html","searchKeys":["authorEmail","fun authorEmail(authorEmail: String): CommentConfig.Builder","net.thauvin.erik.akismet.CommentConfig.Builder.authorEmail"]},{"name":"fun authorUrl(authorUrl: String): CommentConfig.Builder","description":"net.thauvin.erik.akismet.CommentConfig.Builder.authorUrl","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/author-url.html","searchKeys":["authorUrl","fun authorUrl(authorUrl: String): CommentConfig.Builder","net.thauvin.erik.akismet.CommentConfig.Builder.authorUrl"]},{"name":"fun blogCharset(blogCharset: String): CommentConfig.Builder","description":"net.thauvin.erik.akismet.CommentConfig.Builder.blogCharset","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/blog-charset.html","searchKeys":["blogCharset","fun blogCharset(blogCharset: String): CommentConfig.Builder","net.thauvin.erik.akismet.CommentConfig.Builder.blogCharset"]},{"name":"fun blogLang(blogLang: String): CommentConfig.Builder","description":"net.thauvin.erik.akismet.CommentConfig.Builder.blogLang","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/blog-lang.html","searchKeys":["blogLang","fun blogLang(blogLang: String): CommentConfig.Builder","net.thauvin.erik.akismet.CommentConfig.Builder.blogLang"]},{"name":"fun build(): CommentConfig","description":"net.thauvin.erik.akismet.CommentConfig.Builder.build","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/build.html","searchKeys":["build","fun build(): CommentConfig","net.thauvin.erik.akismet.CommentConfig.Builder.build"]},{"name":"fun checkComment(comment: AkismetComment, trueOnError: Boolean = false): Boolean","description":"net.thauvin.erik.akismet.Akismet.checkComment","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/check-comment.html","searchKeys":["checkComment","fun checkComment(comment: AkismetComment, trueOnError: Boolean = false): Boolean","net.thauvin.erik.akismet.Akismet.checkComment"]},{"name":"fun content(content: String): CommentConfig.Builder","description":"net.thauvin.erik.akismet.CommentConfig.Builder.content","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/content.html","searchKeys":["content","fun content(content: String): CommentConfig.Builder","net.thauvin.erik.akismet.CommentConfig.Builder.content"]},{"name":"fun dateGmt(dateGmt: String): CommentConfig.Builder","description":"net.thauvin.erik.akismet.CommentConfig.Builder.dateGmt","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/date-gmt.html","searchKeys":["dateGmt","fun dateGmt(dateGmt: String): CommentConfig.Builder","net.thauvin.erik.akismet.CommentConfig.Builder.dateGmt"]},{"name":"fun dateToGmt(date: Date): String","description":"net.thauvin.erik.akismet.Akismet.Companion.dateToGmt","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-companion/date-to-gmt.html","searchKeys":["dateToGmt","fun dateToGmt(date: Date): String","net.thauvin.erik.akismet.Akismet.Companion.dateToGmt"]},{"name":"fun dateToGmt(date: LocalDateTime): String","description":"net.thauvin.erik.akismet.Akismet.Companion.dateToGmt","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-companion/date-to-gmt.html","searchKeys":["dateToGmt","fun dateToGmt(date: LocalDateTime): String","net.thauvin.erik.akismet.Akismet.Companion.dateToGmt"]},{"name":"fun executeMethod(apiUrl: , formBody: , trueOnError: Boolean = false): Boolean","description":"net.thauvin.erik.akismet.Akismet.executeMethod","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/execute-method.html","searchKeys":["executeMethod","fun executeMethod(apiUrl: , formBody: , trueOnError: Boolean = false): Boolean","net.thauvin.erik.akismet.Akismet.executeMethod"]},{"name":"fun isTest(isTest: Boolean): CommentConfig.Builder","description":"net.thauvin.erik.akismet.CommentConfig.Builder.isTest","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/is-test.html","searchKeys":["isTest","fun isTest(isTest: Boolean): CommentConfig.Builder","net.thauvin.erik.akismet.CommentConfig.Builder.isTest"]},{"name":"fun jsonComment(json: String): AkismetComment","description":"net.thauvin.erik.akismet.Akismet.Companion.jsonComment","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-companion/json-comment.html","searchKeys":["jsonComment","fun jsonComment(json: String): AkismetComment","net.thauvin.erik.akismet.Akismet.Companion.jsonComment"]},{"name":"fun permalink(permalink: String): CommentConfig.Builder","description":"net.thauvin.erik.akismet.CommentConfig.Builder.permalink","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/permalink.html","searchKeys":["permalink","fun permalink(permalink: String): CommentConfig.Builder","net.thauvin.erik.akismet.CommentConfig.Builder.permalink"]},{"name":"fun postModifiedGmt(postModifiedGmt: String): ","description":"net.thauvin.erik.akismet.CommentConfig.Builder.postModifiedGmt","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/post-modified-gmt.html","searchKeys":["postModifiedGmt","fun postModifiedGmt(postModifiedGmt: String): ","net.thauvin.erik.akismet.CommentConfig.Builder.postModifiedGmt"]},{"name":"fun recheckReason(checkReason: String): CommentConfig.Builder","description":"net.thauvin.erik.akismet.CommentConfig.Builder.recheckReason","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/recheck-reason.html","searchKeys":["recheckReason","fun recheckReason(checkReason: String): CommentConfig.Builder","net.thauvin.erik.akismet.CommentConfig.Builder.recheckReason"]},{"name":"fun referrer(referrer: String): CommentConfig.Builder","description":"net.thauvin.erik.akismet.CommentConfig.Builder.referrer","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/referrer.html","searchKeys":["referrer","fun referrer(referrer: String): CommentConfig.Builder","net.thauvin.erik.akismet.CommentConfig.Builder.referrer"]},{"name":"fun reset()","description":"net.thauvin.erik.akismet.Akismet.reset","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/reset.html","searchKeys":["reset","fun reset()","net.thauvin.erik.akismet.Akismet.reset"]},{"name":"fun serverEnv(serverEnv: Map): CommentConfig.Builder","description":"net.thauvin.erik.akismet.CommentConfig.Builder.serverEnv","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/server-env.html","searchKeys":["serverEnv","fun serverEnv(serverEnv: Map): CommentConfig.Builder","net.thauvin.erik.akismet.CommentConfig.Builder.serverEnv"]},{"name":"fun submitHam(comment: AkismetComment): Boolean","description":"net.thauvin.erik.akismet.Akismet.submitHam","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/submit-ham.html","searchKeys":["submitHam","fun submitHam(comment: AkismetComment): Boolean","net.thauvin.erik.akismet.Akismet.submitHam"]},{"name":"fun submitSpam(comment: AkismetComment): Boolean","description":"net.thauvin.erik.akismet.Akismet.submitSpam","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/submit-spam.html","searchKeys":["submitSpam","fun submitSpam(comment: AkismetComment): Boolean","net.thauvin.erik.akismet.Akismet.submitSpam"]},{"name":"fun toJson(): String","description":"net.thauvin.erik.akismet.AkismetComment.toJson","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/to-json.html","searchKeys":["toJson","fun toJson(): String","net.thauvin.erik.akismet.AkismetComment.toJson"]},{"name":"fun type(type: String): CommentConfig.Builder","description":"net.thauvin.erik.akismet.CommentConfig.Builder.type","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/type.html","searchKeys":["type","fun type(type: String): CommentConfig.Builder","net.thauvin.erik.akismet.CommentConfig.Builder.type"]},{"name":"fun userAgent(userAgent: String): CommentConfig.Builder","description":"net.thauvin.erik.akismet.CommentConfig.Builder.userAgent","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/user-agent.html","searchKeys":["userAgent","fun userAgent(userAgent: String): CommentConfig.Builder","net.thauvin.erik.akismet.CommentConfig.Builder.userAgent"]},{"name":"fun userIp(userIp: String): CommentConfig.Builder","description":"net.thauvin.erik.akismet.CommentConfig.Builder.userIp","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/user-ip.html","searchKeys":["userIp","fun userIp(userIp: String): CommentConfig.Builder","net.thauvin.erik.akismet.CommentConfig.Builder.userIp"]},{"name":"fun userRole(userRole: String): CommentConfig.Builder","description":"net.thauvin.erik.akismet.CommentConfig.Builder.userRole","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/user-role.html","searchKeys":["userRole","fun userRole(userRole: String): CommentConfig.Builder","net.thauvin.erik.akismet.CommentConfig.Builder.userRole"]},{"name":"fun verifyKey(): Boolean","description":"net.thauvin.erik.akismet.Akismet.verifyKey","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/verify-key.html","searchKeys":["verifyKey","fun verifyKey(): Boolean","net.thauvin.erik.akismet.Akismet.verifyKey"]},{"name":"object Companion","description":"net.thauvin.erik.akismet.Akismet.Companion","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-companion/index.html","searchKeys":["Companion","object Companion","net.thauvin.erik.akismet.Akismet.Companion"]},{"name":"object Companion","description":"net.thauvin.erik.akismet.AkismetComment.Companion","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/index.html","searchKeys":["Companion","object Companion","net.thauvin.erik.akismet.AkismetComment.Companion"]},{"name":"open class Akismet(apiKey: String)","description":"net.thauvin.erik.akismet.Akismet","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/index.html","searchKeys":["Akismet","open class Akismet(apiKey: String)","net.thauvin.erik.akismet.Akismet"]},{"name":"open class AkismetComment(val userIp: String, val userAgent: String)","description":"net.thauvin.erik.akismet.AkismetComment","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/index.html","searchKeys":["AkismetComment","open class AkismetComment(val userIp: String, val userAgent: String)","net.thauvin.erik.akismet.AkismetComment"]},{"name":"open operator override fun equals(other: Any?): Boolean","description":"net.thauvin.erik.akismet.AkismetComment.equals","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/equals.html","searchKeys":["equals","open operator override fun equals(other: Any?): Boolean","net.thauvin.erik.akismet.AkismetComment.equals"]},{"name":"open override fun hashCode(): Int","description":"net.thauvin.erik.akismet.AkismetComment.hashCode","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/hash-code.html","searchKeys":["hashCode","open override fun hashCode(): Int","net.thauvin.erik.akismet.AkismetComment.hashCode"]},{"name":"open override fun toString(): String","description":"net.thauvin.erik.akismet.AkismetComment.toString","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/to-string.html","searchKeys":["toString","open override fun toString(): String","net.thauvin.erik.akismet.AkismetComment.toString"]},{"name":"val logger: Logger","description":"net.thauvin.erik.akismet.Akismet.logger","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/logger.html","searchKeys":["logger","val logger: Logger","net.thauvin.erik.akismet.Akismet.logger"]},{"name":"val userAgent: String","description":"net.thauvin.erik.akismet.AkismetComment.userAgent","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/user-agent.html","searchKeys":["userAgent","val userAgent: String","net.thauvin.erik.akismet.AkismetComment.userAgent"]},{"name":"val userIp: String","description":"net.thauvin.erik.akismet.AkismetComment.userIp","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/user-ip.html","searchKeys":["userIp","val userIp: String","net.thauvin.erik.akismet.AkismetComment.userIp"]},{"name":"var appUserAgent: String","description":"net.thauvin.erik.akismet.Akismet.appUserAgent","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/app-user-agent.html","searchKeys":["appUserAgent","var appUserAgent: String","net.thauvin.erik.akismet.Akismet.appUserAgent"]},{"name":"var author: String","description":"net.thauvin.erik.akismet.CommentConfig.Builder.author","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/author.html","searchKeys":["author","var author: String","net.thauvin.erik.akismet.CommentConfig.Builder.author"]},{"name":"var author: String","description":"net.thauvin.erik.akismet.CommentConfig.author","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/author.html","searchKeys":["author","var author: String","net.thauvin.erik.akismet.CommentConfig.author"]},{"name":"var author: String?","description":"net.thauvin.erik.akismet.AkismetComment.author","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/author.html","searchKeys":["author","var author: String?","net.thauvin.erik.akismet.AkismetComment.author"]},{"name":"var authorEmail: String","description":"net.thauvin.erik.akismet.CommentConfig.Builder.authorEmail","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/author-email.html","searchKeys":["authorEmail","var authorEmail: String","net.thauvin.erik.akismet.CommentConfig.Builder.authorEmail"]},{"name":"var authorEmail: String","description":"net.thauvin.erik.akismet.CommentConfig.authorEmail","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/author-email.html","searchKeys":["authorEmail","var authorEmail: String","net.thauvin.erik.akismet.CommentConfig.authorEmail"]},{"name":"var authorEmail: String?","description":"net.thauvin.erik.akismet.AkismetComment.authorEmail","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/author-email.html","searchKeys":["authorEmail","var authorEmail: String?","net.thauvin.erik.akismet.AkismetComment.authorEmail"]},{"name":"var authorUrl: String","description":"net.thauvin.erik.akismet.CommentConfig.Builder.authorUrl","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/author-url.html","searchKeys":["authorUrl","var authorUrl: String","net.thauvin.erik.akismet.CommentConfig.Builder.authorUrl"]},{"name":"var authorUrl: String","description":"net.thauvin.erik.akismet.CommentConfig.authorUrl","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/author-url.html","searchKeys":["authorUrl","var authorUrl: String","net.thauvin.erik.akismet.CommentConfig.authorUrl"]},{"name":"var authorUrl: String?","description":"net.thauvin.erik.akismet.AkismetComment.authorUrl","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/author-url.html","searchKeys":["authorUrl","var authorUrl: String?","net.thauvin.erik.akismet.AkismetComment.authorUrl"]},{"name":"var blog: String","description":"net.thauvin.erik.akismet.Akismet.blog","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/blog.html","searchKeys":["blog","var blog: String","net.thauvin.erik.akismet.Akismet.blog"]},{"name":"var blogCharset: String","description":"net.thauvin.erik.akismet.CommentConfig.Builder.blogCharset","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/blog-charset.html","searchKeys":["blogCharset","var blogCharset: String","net.thauvin.erik.akismet.CommentConfig.Builder.blogCharset"]},{"name":"var blogCharset: String","description":"net.thauvin.erik.akismet.CommentConfig.blogCharset","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/blog-charset.html","searchKeys":["blogCharset","var blogCharset: String","net.thauvin.erik.akismet.CommentConfig.blogCharset"]},{"name":"var blogCharset: String?","description":"net.thauvin.erik.akismet.AkismetComment.blogCharset","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/blog-charset.html","searchKeys":["blogCharset","var blogCharset: String?","net.thauvin.erik.akismet.AkismetComment.blogCharset"]},{"name":"var blogLang: String","description":"net.thauvin.erik.akismet.CommentConfig.Builder.blogLang","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/blog-lang.html","searchKeys":["blogLang","var blogLang: String","net.thauvin.erik.akismet.CommentConfig.Builder.blogLang"]},{"name":"var blogLang: String","description":"net.thauvin.erik.akismet.CommentConfig.blogLang","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/blog-lang.html","searchKeys":["blogLang","var blogLang: String","net.thauvin.erik.akismet.CommentConfig.blogLang"]},{"name":"var blogLang: String?","description":"net.thauvin.erik.akismet.AkismetComment.blogLang","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/blog-lang.html","searchKeys":["blogLang","var blogLang: String?","net.thauvin.erik.akismet.AkismetComment.blogLang"]},{"name":"var content: String","description":"net.thauvin.erik.akismet.CommentConfig.Builder.content","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/content.html","searchKeys":["content","var content: String","net.thauvin.erik.akismet.CommentConfig.Builder.content"]},{"name":"var content: String","description":"net.thauvin.erik.akismet.CommentConfig.content","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/content.html","searchKeys":["content","var content: String","net.thauvin.erik.akismet.CommentConfig.content"]},{"name":"var content: String?","description":"net.thauvin.erik.akismet.AkismetComment.content","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/content.html","searchKeys":["content","var content: String?","net.thauvin.erik.akismet.AkismetComment.content"]},{"name":"var dateGmt: String","description":"net.thauvin.erik.akismet.CommentConfig.Builder.dateGmt","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/date-gmt.html","searchKeys":["dateGmt","var dateGmt: String","net.thauvin.erik.akismet.CommentConfig.Builder.dateGmt"]},{"name":"var dateGmt: String","description":"net.thauvin.erik.akismet.CommentConfig.dateGmt","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/date-gmt.html","searchKeys":["dateGmt","var dateGmt: String","net.thauvin.erik.akismet.CommentConfig.dateGmt"]},{"name":"var dateGmt: String?","description":"net.thauvin.erik.akismet.AkismetComment.dateGmt","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/date-gmt.html","searchKeys":["dateGmt","var dateGmt: String?","net.thauvin.erik.akismet.AkismetComment.dateGmt"]},{"name":"var debugHelp: String","description":"net.thauvin.erik.akismet.Akismet.debugHelp","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/debug-help.html","searchKeys":["debugHelp","var debugHelp: String","net.thauvin.erik.akismet.Akismet.debugHelp"]},{"name":"var errorMessage: String","description":"net.thauvin.erik.akismet.Akismet.errorMessage","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/error-message.html","searchKeys":["errorMessage","var errorMessage: String","net.thauvin.erik.akismet.Akismet.errorMessage"]},{"name":"var httpStatusCode: Int","description":"net.thauvin.erik.akismet.Akismet.httpStatusCode","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/http-status-code.html","searchKeys":["httpStatusCode","var httpStatusCode: Int","net.thauvin.erik.akismet.Akismet.httpStatusCode"]},{"name":"var isDiscard: Boolean","description":"net.thauvin.erik.akismet.Akismet.isDiscard","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/is-discard.html","searchKeys":["isDiscard","var isDiscard: Boolean","net.thauvin.erik.akismet.Akismet.isDiscard"]},{"name":"var isTest: Boolean","description":"net.thauvin.erik.akismet.AkismetComment.isTest","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/is-test.html","searchKeys":["isTest","var isTest: Boolean","net.thauvin.erik.akismet.AkismetComment.isTest"]},{"name":"var isTest: Boolean","description":"net.thauvin.erik.akismet.CommentConfig.Builder.isTest","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/is-test.html","searchKeys":["isTest","var isTest: Boolean","net.thauvin.erik.akismet.CommentConfig.Builder.isTest"]},{"name":"var isTest: Boolean","description":"net.thauvin.erik.akismet.CommentConfig.isTest","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/is-test.html","searchKeys":["isTest","var isTest: Boolean","net.thauvin.erik.akismet.CommentConfig.isTest"]},{"name":"var isVerifiedKey: Boolean","description":"net.thauvin.erik.akismet.Akismet.isVerifiedKey","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/is-verified-key.html","searchKeys":["isVerifiedKey","var isVerifiedKey: Boolean","net.thauvin.erik.akismet.Akismet.isVerifiedKey"]},{"name":"var permalink: String","description":"net.thauvin.erik.akismet.CommentConfig.Builder.permalink","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/permalink.html","searchKeys":["permalink","var permalink: String","net.thauvin.erik.akismet.CommentConfig.Builder.permalink"]},{"name":"var permalink: String","description":"net.thauvin.erik.akismet.CommentConfig.permalink","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/permalink.html","searchKeys":["permalink","var permalink: String","net.thauvin.erik.akismet.CommentConfig.permalink"]},{"name":"var permalink: String?","description":"net.thauvin.erik.akismet.AkismetComment.permalink","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/permalink.html","searchKeys":["permalink","var permalink: String?","net.thauvin.erik.akismet.AkismetComment.permalink"]},{"name":"var postModifiedGmt: String","description":"net.thauvin.erik.akismet.CommentConfig.Builder.postModifiedGmt","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/post-modified-gmt.html","searchKeys":["postModifiedGmt","var postModifiedGmt: String","net.thauvin.erik.akismet.CommentConfig.Builder.postModifiedGmt"]},{"name":"var postModifiedGmt: String","description":"net.thauvin.erik.akismet.CommentConfig.postModifiedGmt","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/post-modified-gmt.html","searchKeys":["postModifiedGmt","var postModifiedGmt: String","net.thauvin.erik.akismet.CommentConfig.postModifiedGmt"]},{"name":"var postModifiedGmt: String?","description":"net.thauvin.erik.akismet.AkismetComment.postModifiedGmt","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/post-modified-gmt.html","searchKeys":["postModifiedGmt","var postModifiedGmt: String?","net.thauvin.erik.akismet.AkismetComment.postModifiedGmt"]},{"name":"var proTip: String","description":"net.thauvin.erik.akismet.Akismet.proTip","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/pro-tip.html","searchKeys":["proTip","var proTip: String","net.thauvin.erik.akismet.Akismet.proTip"]},{"name":"var recheckReason: String","description":"net.thauvin.erik.akismet.CommentConfig.Builder.recheckReason","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/recheck-reason.html","searchKeys":["recheckReason","var recheckReason: String","net.thauvin.erik.akismet.CommentConfig.Builder.recheckReason"]},{"name":"var recheckReason: String","description":"net.thauvin.erik.akismet.CommentConfig.recheckReason","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/recheck-reason.html","searchKeys":["recheckReason","var recheckReason: String","net.thauvin.erik.akismet.CommentConfig.recheckReason"]},{"name":"var recheckReason: String?","description":"net.thauvin.erik.akismet.AkismetComment.recheckReason","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/recheck-reason.html","searchKeys":["recheckReason","var recheckReason: String?","net.thauvin.erik.akismet.AkismetComment.recheckReason"]},{"name":"var referrer: String","description":"net.thauvin.erik.akismet.CommentConfig.Builder.referrer","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/referrer.html","searchKeys":["referrer","var referrer: String","net.thauvin.erik.akismet.CommentConfig.Builder.referrer"]},{"name":"var referrer: String","description":"net.thauvin.erik.akismet.CommentConfig.referrer","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/referrer.html","searchKeys":["referrer","var referrer: String","net.thauvin.erik.akismet.CommentConfig.referrer"]},{"name":"var referrer: String?","description":"net.thauvin.erik.akismet.AkismetComment.referrer","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/referrer.html","searchKeys":["referrer","var referrer: String?","net.thauvin.erik.akismet.AkismetComment.referrer"]},{"name":"var response: String","description":"net.thauvin.erik.akismet.Akismet.response","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/response.html","searchKeys":["response","var response: String","net.thauvin.erik.akismet.Akismet.response"]},{"name":"var serverEnv: Map","description":"net.thauvin.erik.akismet.AkismetComment.serverEnv","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/server-env.html","searchKeys":["serverEnv","var serverEnv: Map","net.thauvin.erik.akismet.AkismetComment.serverEnv"]},{"name":"var serverEnv: Map","description":"net.thauvin.erik.akismet.CommentConfig.Builder.serverEnv","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/server-env.html","searchKeys":["serverEnv","var serverEnv: Map","net.thauvin.erik.akismet.CommentConfig.Builder.serverEnv"]},{"name":"var serverEnv: Map","description":"net.thauvin.erik.akismet.CommentConfig.serverEnv","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/server-env.html","searchKeys":["serverEnv","var serverEnv: Map","net.thauvin.erik.akismet.CommentConfig.serverEnv"]},{"name":"var type: String","description":"net.thauvin.erik.akismet.CommentConfig.Builder.type","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/type.html","searchKeys":["type","var type: String","net.thauvin.erik.akismet.CommentConfig.Builder.type"]},{"name":"var type: String","description":"net.thauvin.erik.akismet.CommentConfig.type","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/type.html","searchKeys":["type","var type: String","net.thauvin.erik.akismet.CommentConfig.type"]},{"name":"var type: String?","description":"net.thauvin.erik.akismet.AkismetComment.type","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/type.html","searchKeys":["type","var type: String?","net.thauvin.erik.akismet.AkismetComment.type"]},{"name":"var userAgent: String","description":"net.thauvin.erik.akismet.CommentConfig.Builder.userAgent","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/user-agent.html","searchKeys":["userAgent","var userAgent: String","net.thauvin.erik.akismet.CommentConfig.Builder.userAgent"]},{"name":"var userAgent: String","description":"net.thauvin.erik.akismet.CommentConfig.userAgent","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/user-agent.html","searchKeys":["userAgent","var userAgent: String","net.thauvin.erik.akismet.CommentConfig.userAgent"]},{"name":"var userIp: String","description":"net.thauvin.erik.akismet.CommentConfig.Builder.userIp","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/user-ip.html","searchKeys":["userIp","var userIp: String","net.thauvin.erik.akismet.CommentConfig.Builder.userIp"]},{"name":"var userIp: String","description":"net.thauvin.erik.akismet.CommentConfig.userIp","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/user-ip.html","searchKeys":["userIp","var userIp: String","net.thauvin.erik.akismet.CommentConfig.userIp"]},{"name":"var userRole: String","description":"net.thauvin.erik.akismet.CommentConfig.Builder.userRole","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/user-role.html","searchKeys":["userRole","var userRole: String","net.thauvin.erik.akismet.CommentConfig.Builder.userRole"]},{"name":"var userRole: String","description":"net.thauvin.erik.akismet.CommentConfig.userRole","location":"-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/user-role.html","searchKeys":["userRole","var userRole: String","net.thauvin.erik.akismet.CommentConfig.userRole"]},{"name":"var userRole: String?","description":"net.thauvin.erik.akismet.AkismetComment.userRole","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/user-role.html","searchKeys":["userRole","var userRole: String?","net.thauvin.erik.akismet.AkismetComment.userRole"]}] +[{"name":"const val ADMIN_ROLE: String","description":"net.thauvin.erik.akismet.AkismetComment.Companion.ADMIN_ROLE","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-a-d-m-i-n_-r-o-l-e.html","searchKeys":["ADMIN_ROLE","const val ADMIN_ROLE: String","net.thauvin.erik.akismet.AkismetComment.Companion.ADMIN_ROLE"]},{"name":"const val TYPE_BLOG_POST: String","description":"net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_BLOG_POST","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-b-l-o-g_-p-o-s-t.html","searchKeys":["TYPE_BLOG_POST","const val TYPE_BLOG_POST: String","net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_BLOG_POST"]},{"name":"const val TYPE_COMMENT: String","description":"net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_COMMENT","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-c-o-m-m-e-n-t.html","searchKeys":["TYPE_COMMENT","const val TYPE_COMMENT: String","net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_COMMENT"]},{"name":"const val TYPE_CONTACT_FORM: String","description":"net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_CONTACT_FORM","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-c-o-n-t-a-c-t_-f-o-r-m.html","searchKeys":["TYPE_CONTACT_FORM","const val TYPE_CONTACT_FORM: String","net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_CONTACT_FORM"]},{"name":"const val TYPE_FORUM_POST: String","description":"net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_FORUM_POST","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-f-o-r-u-m_-p-o-s-t.html","searchKeys":["TYPE_FORUM_POST","const val TYPE_FORUM_POST: String","net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_FORUM_POST"]},{"name":"const val TYPE_MESSAGE: String","description":"net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_MESSAGE","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-m-e-s-s-a-g-e.html","searchKeys":["TYPE_MESSAGE","const val TYPE_MESSAGE: String","net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_MESSAGE"]},{"name":"const val TYPE_PINGBACK: String","description":"net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_PINGBACK","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-p-i-n-g-b-a-c-k.html","searchKeys":["TYPE_PINGBACK","const val TYPE_PINGBACK: String","net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_PINGBACK"]},{"name":"const val TYPE_REPLY: String","description":"net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_REPLY","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-r-e-p-l-y.html","searchKeys":["TYPE_REPLY","const val TYPE_REPLY: String","net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_REPLY"]},{"name":"const val TYPE_SIGNUP: String","description":"net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_SIGNUP","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-s-i-g-n-u-p.html","searchKeys":["TYPE_SIGNUP","const val TYPE_SIGNUP: String","net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_SIGNUP"]},{"name":"const val TYPE_TRACKBACK: String","description":"net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_TRACKBACK","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-t-r-a-c-k-b-a-c-k.html","searchKeys":["TYPE_TRACKBACK","const val TYPE_TRACKBACK: String","net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_TRACKBACK"]},{"name":"const val TYPE_TWEET: String","description":"net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_TWEET","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-t-w-e-e-t.html","searchKeys":["TYPE_TWEET","const val TYPE_TWEET: String","net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_TWEET"]},{"name":"constructor(apiKey: String)","description":"net.thauvin.erik.akismet.Akismet.Akismet","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-akismet.html","searchKeys":["Akismet","constructor(apiKey: String)","net.thauvin.erik.akismet.Akismet.Akismet"]},{"name":"constructor(apiKey: String, blog: String)","description":"net.thauvin.erik.akismet.Akismet.Akismet","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-akismet.html","searchKeys":["Akismet","constructor(apiKey: String, blog: String)","net.thauvin.erik.akismet.Akismet.Akismet"]},{"name":"constructor(request: )","description":"net.thauvin.erik.akismet.AkismetComment.AkismetComment","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-akismet-comment.html","searchKeys":["AkismetComment","constructor(request: )","net.thauvin.erik.akismet.AkismetComment.AkismetComment"]},{"name":"constructor(userIp: String, userAgent: String)","description":"net.thauvin.erik.akismet.AkismetComment.AkismetComment","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-akismet-comment.html","searchKeys":["AkismetComment","constructor(userIp: String, userAgent: String)","net.thauvin.erik.akismet.AkismetComment.AkismetComment"]},{"name":"fun checkComment(comment: AkismetComment, trueOnError: Boolean = false): Boolean","description":"net.thauvin.erik.akismet.Akismet.checkComment","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/check-comment.html","searchKeys":["checkComment","fun checkComment(comment: AkismetComment, trueOnError: Boolean = false): Boolean","net.thauvin.erik.akismet.Akismet.checkComment"]},{"name":"fun dateToGmt(date: Date): String","description":"net.thauvin.erik.akismet.Akismet.Companion.dateToGmt","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-companion/date-to-gmt.html","searchKeys":["dateToGmt","fun dateToGmt(date: Date): String","net.thauvin.erik.akismet.Akismet.Companion.dateToGmt"]},{"name":"fun dateToGmt(date: LocalDateTime): String","description":"net.thauvin.erik.akismet.Akismet.Companion.dateToGmt","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-companion/date-to-gmt.html","searchKeys":["dateToGmt","fun dateToGmt(date: LocalDateTime): String","net.thauvin.erik.akismet.Akismet.Companion.dateToGmt"]},{"name":"fun executeMethod(apiUrl: , formBody: , trueOnError: Boolean = false): Boolean","description":"net.thauvin.erik.akismet.Akismet.executeMethod","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/execute-method.html","searchKeys":["executeMethod","fun executeMethod(apiUrl: , formBody: , trueOnError: Boolean = false): Boolean","net.thauvin.erik.akismet.Akismet.executeMethod"]},{"name":"fun jsonComment(json: String): AkismetComment","description":"net.thauvin.erik.akismet.Akismet.Companion.jsonComment","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-companion/json-comment.html","searchKeys":["jsonComment","fun jsonComment(json: String): AkismetComment","net.thauvin.erik.akismet.Akismet.Companion.jsonComment"]},{"name":"fun reset()","description":"net.thauvin.erik.akismet.Akismet.reset","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/reset.html","searchKeys":["reset","fun reset()","net.thauvin.erik.akismet.Akismet.reset"]},{"name":"fun submitHam(comment: AkismetComment): Boolean","description":"net.thauvin.erik.akismet.Akismet.submitHam","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/submit-ham.html","searchKeys":["submitHam","fun submitHam(comment: AkismetComment): Boolean","net.thauvin.erik.akismet.Akismet.submitHam"]},{"name":"fun submitSpam(comment: AkismetComment): Boolean","description":"net.thauvin.erik.akismet.Akismet.submitSpam","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/submit-spam.html","searchKeys":["submitSpam","fun submitSpam(comment: AkismetComment): Boolean","net.thauvin.erik.akismet.Akismet.submitSpam"]},{"name":"fun toJson(): String","description":"net.thauvin.erik.akismet.AkismetComment.toJson","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/to-json.html","searchKeys":["toJson","fun toJson(): String","net.thauvin.erik.akismet.AkismetComment.toJson"]},{"name":"fun verifyKey(): Boolean","description":"net.thauvin.erik.akismet.Akismet.verifyKey","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/verify-key.html","searchKeys":["verifyKey","fun verifyKey(): Boolean","net.thauvin.erik.akismet.Akismet.verifyKey"]},{"name":"object Companion","description":"net.thauvin.erik.akismet.Akismet.Companion","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-companion/index.html","searchKeys":["Companion","object Companion","net.thauvin.erik.akismet.Akismet.Companion"]},{"name":"object Companion","description":"net.thauvin.erik.akismet.AkismetComment.Companion","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/index.html","searchKeys":["Companion","object Companion","net.thauvin.erik.akismet.AkismetComment.Companion"]},{"name":"open class Akismet(apiKey: String)","description":"net.thauvin.erik.akismet.Akismet","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/index.html","searchKeys":["Akismet","open class Akismet(apiKey: String)","net.thauvin.erik.akismet.Akismet"]},{"name":"open class AkismetComment(val userIp: String, val userAgent: String)","description":"net.thauvin.erik.akismet.AkismetComment","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/index.html","searchKeys":["AkismetComment","open class AkismetComment(val userIp: String, val userAgent: String)","net.thauvin.erik.akismet.AkismetComment"]},{"name":"open operator override fun equals(other: Any?): Boolean","description":"net.thauvin.erik.akismet.AkismetComment.equals","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/equals.html","searchKeys":["equals","open operator override fun equals(other: Any?): Boolean","net.thauvin.erik.akismet.AkismetComment.equals"]},{"name":"open override fun hashCode(): Int","description":"net.thauvin.erik.akismet.AkismetComment.hashCode","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/hash-code.html","searchKeys":["hashCode","open override fun hashCode(): Int","net.thauvin.erik.akismet.AkismetComment.hashCode"]},{"name":"open override fun toString(): String","description":"net.thauvin.erik.akismet.AkismetComment.toString","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/to-string.html","searchKeys":["toString","open override fun toString(): String","net.thauvin.erik.akismet.AkismetComment.toString"]},{"name":"val logger: Logger","description":"net.thauvin.erik.akismet.Akismet.logger","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/logger.html","searchKeys":["logger","val logger: Logger","net.thauvin.erik.akismet.Akismet.logger"]},{"name":"val userAgent: String","description":"net.thauvin.erik.akismet.AkismetComment.userAgent","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/user-agent.html","searchKeys":["userAgent","val userAgent: String","net.thauvin.erik.akismet.AkismetComment.userAgent"]},{"name":"val userIp: String","description":"net.thauvin.erik.akismet.AkismetComment.userIp","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/user-ip.html","searchKeys":["userIp","val userIp: String","net.thauvin.erik.akismet.AkismetComment.userIp"]},{"name":"var appUserAgent: String","description":"net.thauvin.erik.akismet.Akismet.appUserAgent","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/app-user-agent.html","searchKeys":["appUserAgent","var appUserAgent: String","net.thauvin.erik.akismet.Akismet.appUserAgent"]},{"name":"var author: String?","description":"net.thauvin.erik.akismet.AkismetComment.author","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/author.html","searchKeys":["author","var author: String?","net.thauvin.erik.akismet.AkismetComment.author"]},{"name":"var authorEmail: String?","description":"net.thauvin.erik.akismet.AkismetComment.authorEmail","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/author-email.html","searchKeys":["authorEmail","var authorEmail: String?","net.thauvin.erik.akismet.AkismetComment.authorEmail"]},{"name":"var authorUrl: String?","description":"net.thauvin.erik.akismet.AkismetComment.authorUrl","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/author-url.html","searchKeys":["authorUrl","var authorUrl: String?","net.thauvin.erik.akismet.AkismetComment.authorUrl"]},{"name":"var blog: String","description":"net.thauvin.erik.akismet.Akismet.blog","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/blog.html","searchKeys":["blog","var blog: String","net.thauvin.erik.akismet.Akismet.blog"]},{"name":"var blogCharset: String?","description":"net.thauvin.erik.akismet.AkismetComment.blogCharset","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/blog-charset.html","searchKeys":["blogCharset","var blogCharset: String?","net.thauvin.erik.akismet.AkismetComment.blogCharset"]},{"name":"var blogLang: String?","description":"net.thauvin.erik.akismet.AkismetComment.blogLang","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/blog-lang.html","searchKeys":["blogLang","var blogLang: String?","net.thauvin.erik.akismet.AkismetComment.blogLang"]},{"name":"var content: String?","description":"net.thauvin.erik.akismet.AkismetComment.content","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/content.html","searchKeys":["content","var content: String?","net.thauvin.erik.akismet.AkismetComment.content"]},{"name":"var dateGmt: String?","description":"net.thauvin.erik.akismet.AkismetComment.dateGmt","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/date-gmt.html","searchKeys":["dateGmt","var dateGmt: String?","net.thauvin.erik.akismet.AkismetComment.dateGmt"]},{"name":"var debugHelp: String","description":"net.thauvin.erik.akismet.Akismet.debugHelp","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/debug-help.html","searchKeys":["debugHelp","var debugHelp: String","net.thauvin.erik.akismet.Akismet.debugHelp"]},{"name":"var errorMessage: String","description":"net.thauvin.erik.akismet.Akismet.errorMessage","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/error-message.html","searchKeys":["errorMessage","var errorMessage: String","net.thauvin.erik.akismet.Akismet.errorMessage"]},{"name":"var httpStatusCode: Int","description":"net.thauvin.erik.akismet.Akismet.httpStatusCode","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/http-status-code.html","searchKeys":["httpStatusCode","var httpStatusCode: Int","net.thauvin.erik.akismet.Akismet.httpStatusCode"]},{"name":"var isDiscard: Boolean","description":"net.thauvin.erik.akismet.Akismet.isDiscard","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/is-discard.html","searchKeys":["isDiscard","var isDiscard: Boolean","net.thauvin.erik.akismet.Akismet.isDiscard"]},{"name":"var isTest: Boolean","description":"net.thauvin.erik.akismet.AkismetComment.isTest","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/is-test.html","searchKeys":["isTest","var isTest: Boolean","net.thauvin.erik.akismet.AkismetComment.isTest"]},{"name":"var isVerifiedKey: Boolean","description":"net.thauvin.erik.akismet.Akismet.isVerifiedKey","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/is-verified-key.html","searchKeys":["isVerifiedKey","var isVerifiedKey: Boolean","net.thauvin.erik.akismet.Akismet.isVerifiedKey"]},{"name":"var permalink: String?","description":"net.thauvin.erik.akismet.AkismetComment.permalink","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/permalink.html","searchKeys":["permalink","var permalink: String?","net.thauvin.erik.akismet.AkismetComment.permalink"]},{"name":"var postModifiedGmt: String?","description":"net.thauvin.erik.akismet.AkismetComment.postModifiedGmt","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/post-modified-gmt.html","searchKeys":["postModifiedGmt","var postModifiedGmt: String?","net.thauvin.erik.akismet.AkismetComment.postModifiedGmt"]},{"name":"var proTip: String","description":"net.thauvin.erik.akismet.Akismet.proTip","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/pro-tip.html","searchKeys":["proTip","var proTip: String","net.thauvin.erik.akismet.Akismet.proTip"]},{"name":"var recheckReason: String?","description":"net.thauvin.erik.akismet.AkismetComment.recheckReason","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/recheck-reason.html","searchKeys":["recheckReason","var recheckReason: String?","net.thauvin.erik.akismet.AkismetComment.recheckReason"]},{"name":"var referrer: String?","description":"net.thauvin.erik.akismet.AkismetComment.referrer","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/referrer.html","searchKeys":["referrer","var referrer: String?","net.thauvin.erik.akismet.AkismetComment.referrer"]},{"name":"var response: String","description":"net.thauvin.erik.akismet.Akismet.response","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet/response.html","searchKeys":["response","var response: String","net.thauvin.erik.akismet.Akismet.response"]},{"name":"var serverEnv: Map","description":"net.thauvin.erik.akismet.AkismetComment.serverEnv","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/server-env.html","searchKeys":["serverEnv","var serverEnv: Map","net.thauvin.erik.akismet.AkismetComment.serverEnv"]},{"name":"var type: String?","description":"net.thauvin.erik.akismet.AkismetComment.type","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/type.html","searchKeys":["type","var type: String?","net.thauvin.erik.akismet.AkismetComment.type"]},{"name":"var userRole: String?","description":"net.thauvin.erik.akismet.AkismetComment.userRole","location":"-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/user-role.html","searchKeys":["userRole","var userRole: String?","net.thauvin.erik.akismet.AkismetComment.userRole"]}] diff --git a/docs/scripts/platform-content-handler.js b/docs/scripts/platform-content-handler.js index 811c478..8c4ca53 100644 --- a/docs/scripts/platform-content-handler.js +++ b/docs/scripts/platform-content-handler.js @@ -18,6 +18,8 @@ const samplesLightThemeName = 'idea' window.addEventListener('load', () => { document.querySelectorAll("div[data-platform-hinted]") .forEach(elem => elem.addEventListener('click', (event) => togglePlatformDependent(event, elem))) + document.querySelectorAll("div[tabs-section]") + .forEach(elem => elem.addEventListener('click', (event) => toggleSectionsEventHandler(event))) const filterSection = document.getElementById('filter-section') if (filterSection) { filterSection.addEventListener('click', (event) => filterButtonHandler(event)) @@ -175,30 +177,19 @@ function handleAnchor() { } function initTabs() { - // we could have only a single type of data - classlike or package - const mainContent = document.querySelector('.main-content'); - const type = mainContent ? mainContent.getAttribute("data-page-type") : null; - const localStorageKey = "active-tab-" + type; - document.querySelectorAll('div[tabs-section]').forEach(element => { - showCorrespondingTabBody(element); - element.addEventListener('click', ({target}) => { - const togglable = target ? target.getAttribute("data-togglable") : null; - if (!togglable) return; - - localStorage.setItem(localStorageKey, JSON.stringify(togglable)); - toggleSections(target); - }); - }); - - const cached = localStorage.getItem(localStorageKey); - if (!cached) return; - - const tab = document.querySelector( - 'div[tabs-section] > button[data-togglable="' + JSON.parse(cached) + '"]' - ); - if (!tab) return; - - toggleSections(tab); + document.querySelectorAll("div[tabs-section]") + .forEach(element => { + showCorrespondingTabBody(element) + element.addEventListener('click', (event) => toggleSectionsEventHandler(event)) + }) + let cached = localStorage.getItem("active-tab") + if (cached) { + let parsed = JSON.parse(cached) + let tab = document.querySelector('div[tabs-section] > button[data-togglable="' + parsed + '"]') + if (tab) { + toggleSections(tab) + } + } } function showCorrespondingTabBody(element) { @@ -302,6 +293,12 @@ function toggleSections(target) { activateTabsBody("tabs-section-body") } +function toggleSectionsEventHandler(evt) { + if (!evt.target.getAttribute("data-togglable")) return + localStorage.setItem('active-tab', JSON.stringify(evt.target.getAttribute("data-togglable"))) + toggleSections(evt.target) +} + function togglePlatformDependent(e, container) { let target = e.target if (target.tagName != 'BUTTON') return; diff --git a/docs/styles/main.css b/docs/styles/main.css index 5f7781e..ebe1ce1 100644 --- a/docs/styles/main.css +++ b/docs/styles/main.css @@ -1,6 +1,6 @@ /*! * Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. - */#pages-search{cursor:pointer;border:none;border-radius:50%;background:transparent;fill:#fff;fill:var(--dark-mode-and-search-icon-color)}#pages-search:hover{background:var(--white-10)}.search,.search [data-test=ring-select],.search [data-test=ring-tooltip],.search [data-test=ring-select_focus],.search #pages-search{display:inline-block;padding:0;margin:0;font-size:0;line-height:0}.search-hotkey-popup{background-color:var(--background-color) !important;padding:4px}.popup-wrapper{min-width:calc(100% - 322px) !important;border:1px solid rgba(255,255,255,.2) !important;background-color:#27282c !important;color:rgba(255,255,255,.8)}.popup-wrapper [class^=filterWrapper]{border-bottom:1px solid rgba(255,255,255,.2)}.popup-wrapper input{color:rgba(255,255,255,.8) !important;font-weight:normal !important}.popup-wrapper span[data-test-custom=ring-select-popup-filter-icon]{color:#fff}.popup-wrapper button[data-test=ring-input-clear]{color:#fff !important}@media screen and (max-width: 759px){.popup-wrapper{min-width:100% !important}}.template-wrapper{display:grid;height:32px;grid-template-columns:auto auto}.template-wrapper strong{color:rgba(255,255,255,.8)}.template-wrapper span{color:rgba(255,255,255,.8);line-height:32px}.template-wrapper span.template-description{color:rgba(255,255,255,.6);justify-self:end}@media screen and (max-width: 759px){.template-wrapper{display:flex;flex-direction:column;height:auto}.template-wrapper span{line-height:unset}}.template-name{justify-self:start}[class^=fade]{display:none}[class*=hover]{background-color:rgba(255,255,255,.1) !important} + */#pages-search{cursor:pointer;border:none;border-radius:50%;background:transparent;fill:#fff;fill:var(--dark-mode-and-search-icon-color)}#pages-search:focus{outline:none}#pages-search:hover{background:var(--white-10)}.search,.search [data-test=ring-select],.search [data-test=ring-tooltip],.search [data-test=ring-select_focus],.search #pages-search{display:inline-block;padding:0;margin:0;font-size:0;line-height:0}.search-hotkey-popup{background-color:var(--background-color) !important;padding:4px}.popup-wrapper{min-width:calc(100% - 322px) !important;border:1px solid rgba(255,255,255,.2) !important;background-color:#27282c !important}.popup-wrapper [class^=filterWrapper]{border-bottom:1px solid rgba(255,255,255,.2)}.popup-wrapper input{color:rgba(255,255,255,.8) !important;font-weight:normal !important}.popup-wrapper span[data-test-custom=ring-select-popup-filter-icon]{color:#fff}.popup-wrapper button[data-test=ring-input-clear]{color:#fff !important}@media screen and (max-width: 759px){.popup-wrapper{min-width:100% !important}}.template-wrapper{display:grid;height:32px;grid-template-columns:auto auto}.template-wrapper strong{color:rgba(255,255,255,.8)}.template-wrapper span{color:rgba(255,255,255,.8);line-height:32px}.template-wrapper span.template-description{color:rgba(255,255,255,.6);justify-self:end}@media screen and (max-width: 759px){.template-wrapper{display:flex;flex-direction:column;height:auto}.template-wrapper span{line-height:unset}}.template-name{justify-self:start}[class^=fade]{display:none}[class*=hover]{background-color:rgba(255,255,255,.1) !important} /* stylelint-disable color-no-hex */ :root { diff --git a/docs/styles/style.css b/docs/styles/style.css index fc2b84d..67a899a 100644 --- a/docs/styles/style.css +++ b/docs/styles/style.css @@ -342,7 +342,6 @@ td:first-child { /* --- Navigation controls --- */ .navigation-controls { display: flex; - margin-left: 4px; } @media (min-width: 760px) { @@ -355,31 +354,37 @@ td:first-child { display: none; } -.navigation-controls--btn { +/* --- Navigation THEME --- */ +.navigation-controls--search { display: inline-flex; - align-items: center; - justify-content: center; - width: 40px; - height: 40px; + font-size: 0; + line-height: 0; +} + +.navigation-controls--theme { + display: block; border-radius: 50%; background-color: inherit; - background-position: 50% 50%; + margin-left: 4px; padding: 0; border: none; cursor: pointer; font-size: 0; line-height: 0; - transition: background-color 200ms ease-in-out; - will-change: background-color; } -.navigation-controls--btn:hover { - background-color: var(--white-10); +.navigation-controls--theme::before { + height: 40px; + width: 40px; } -.navigation-controls--theme { - background-image: url("../images/theme-toggle.svg"); - background-repeat: no-repeat; +.navigation-controls--theme:hover { + background: var(--white-10); +} + +.navigation-controls--theme::before { + display: block; + content: url("../images/theme-toggle.svg"); } @media (max-width: 759px) { @@ -387,18 +392,7 @@ td:first-child { display: none; } } - -.navigation-controls--homepage { - background-image: url("../images/homepage.svg"); - background-repeat: no-repeat; - background-size: 24px 24px; -} - -@media (max-width: 759px) { - .navigation-controls--homepage { - display: none; - } -} +/* /--- Navigation THEME --- */ .navigation .platform-selector:not([data-active]) { color: #fff; @@ -662,26 +656,6 @@ code.paragraph { text-decoration: line-through; } -/* Workaround for Firefox https://github.com/Kotlin/dokka/issues/3156 */ -@-moz-document url-prefix() { - .strikethrough { - position: relative; - text-decoration: none; - } - - /* complex selectors here are required to handle multiline cases */ - .strikethrough::after, .strikethrough span:after { - content: ''; - position: absolute; - top: 7px; - left: 0; - right: 0; - height: 1px; - background-color: currentColor; - z-index: 1; - } -} - .symbol:empty { padding: 0; } @@ -710,7 +684,7 @@ code { code:not(.block) { display: inline-block; - vertical-align: bottom; + vertical-align: middle; } .symbol > a { diff --git a/examples/bld/README.md b/examples/bld/README.md index 9786305..52ef7f3 100644 --- a/examples/bld/README.md +++ b/examples/bld/README.md @@ -8,6 +8,7 @@ To compile & run the Kotlin example: ``` ## Java Example +cd To compile & run the Java example: ```console diff --git a/examples/bld/src/main/java/com/example/AkismetSample.java b/examples/bld/src/main/java/com/example/AkismetSample.java index 6d6ced5..f70698f 100644 --- a/examples/bld/src/main/java/com/example/AkismetSample.java +++ b/examples/bld/src/main/java/com/example/AkismetSample.java @@ -2,7 +2,6 @@ package com.example; import net.thauvin.erik.akismet.Akismet; import net.thauvin.erik.akismet.AkismetComment; -import net.thauvin.erik.akismet.CommentConfig; import java.util.Date; @@ -10,26 +9,25 @@ public class AkismetSample { public static void main(String... args) { if (args.length == 1 && !args[0].isBlank()) { final Akismet akismet = new Akismet(args[0], "https://yourblogdomainname.com/blog/"); - final AkismetComment comment = new AkismetComment( - new CommentConfig.Builder("127.0.0.1", "curl/7.29.0") - .isTest(true) - .referrer("https://www.google.com") - .permalink(akismet.getBlog() + "post=1") - .type(AkismetComment.TYPE_COMMENT) - .author("admin") - .authorEmail("test@test.com") - .authorUrl("http://www.CheckOutMyCoolSite.com") - .dateGmt(Akismet.dateToGmt(new Date())) -// .userRole(AkismetComment.ADMIN_ROLE) - .content("It means a lot that you would take the time to review our software. Thanks again.") - .build() - ); + final AkismetComment comment = new AkismetComment("127.0.0.1", "curl/7.29.0"); -// final ConsoleHandler consoleHandler = new ConsoleHandler(); -// consoleHandler.setLevel(Level.FINE); -// final Logger logger = akismet.getLogger(); -// logger.addHandler(consoleHandler); -// logger.setLevel(Level.FINE); + comment.setTest(true); + + comment.setReferrer("https://www.google.com"); + comment.setPermalink(akismet.getBlog() + "post=1"); + comment.setType(AkismetComment.TYPE_COMMENT); + comment.setAuthor("admin"); + comment.setAuthorEmail("test@test.com"); + comment.setAuthorUrl("http://www.CheckOutMyCoolSite.com"); + comment.setDateGmt(Akismet.dateToGmt(new Date())); + // comment.setUserRole(AkismetComment.ADMIN_ROLE); + comment.setContent("It means a lot that you would take the time to review our software. Thanks again."); + + // final ConsoleHandler consoleHandler = new ConsoleHandler(); + // consoleHandler.setLevel(Level.FINE); + // final Logger logger = akismet.getLogger(); + // logger.addHandler(consoleHandler); + // logger.setLevel(Level.FINE); if (akismet.verifyKey()) { final boolean isSpam = akismet.checkComment(comment); diff --git a/examples/bld/src/main/kotlin/com/example/AkismetExample.kt b/examples/bld/src/main/kotlin/com/example/AkismetExample.kt index 013e633..149555f 100644 --- a/examples/bld/src/main/kotlin/com/example/AkismetExample.kt +++ b/examples/bld/src/main/kotlin/com/example/AkismetExample.kt @@ -2,14 +2,18 @@ package com.example import net.thauvin.erik.akismet.Akismet import net.thauvin.erik.akismet.AkismetComment -import java.util.* +import java.util.Date import kotlin.system.exitProcess fun main(args: Array) { + if (args.size == 1 && args[0].isNotEmpty()) { val akismet = Akismet(apiKey = args[0], blog = "https://yourblogdomainname.com/blog/") - val comment = AkismetComment(userIp = "127.0.0.1", userAgent = "curl/7.29.0").apply { + val comment = AkismetComment(userIp = "127.0.0.1", userAgent = "curl/7.29.0") + + with(comment) { isTest = true + referrer = "https://www.google.com" permalink = "${akismet.blog}post=1" type = AkismetComment.TYPE_COMMENT @@ -17,7 +21,7 @@ fun main(args: Array) { authorEmail = "test@test.com" authorUrl = "https://www.CheckOutMyCoolSite.com" dateGmt = Akismet.dateToGmt(Date()) -// userRole = AkismetComment.ADMIN_ROLE +// userRole = AkismetComment.ADMIN_ROLE content = "It means a lot that you would take the time to review our software. Thanks again." } diff --git a/examples/bld/src/main/kotlin/com/example/AkismetServlet.kt b/examples/bld/src/main/kotlin/com/example/AkismetServlet.kt index 3e776ed..4b245c8 100644 --- a/examples/bld/src/main/kotlin/com/example/AkismetServlet.kt +++ b/examples/bld/src/main/kotlin/com/example/AkismetServlet.kt @@ -20,7 +20,8 @@ class AkismetServlet : HttpServlet() { akismet.appUserAgent = request.servletContext.serverInfo - val comment = AkismetComment(request).apply { + val comment = AkismetComment(request) + with(comment) { permalink = "${akismet.blog}/comment/$id" type = AkismetComment.TYPE_COMMENT author = request.getParameter("name") diff --git a/examples/gradle/.idea/.name b/examples/gradle/.idea/.name index ac5e64e..bdb1d33 100644 --- a/examples/gradle/.idea/.name +++ b/examples/gradle/.idea/.name @@ -1 +1 @@ -akismet-examples-gradle \ No newline at end of file +akismet-examples \ No newline at end of file diff --git a/examples/gradle/.idea/kotlinc.xml b/examples/gradle/.idea/kotlinc.xml index 6d0ee1c..e805548 100644 --- a/examples/gradle/.idea/kotlinc.xml +++ b/examples/gradle/.idea/kotlinc.xml @@ -1,6 +1,6 @@ - \ No newline at end of file diff --git a/examples/gradle/.idea/misc.xml b/examples/gradle/.idea/misc.xml index 72d1c06..7940811 100644 --- a/examples/gradle/.idea/misc.xml +++ b/examples/gradle/.idea/misc.xml @@ -6,8 +6,11 @@ - + + + - + \ No newline at end of file diff --git a/examples/gradle/build.gradle.kts b/examples/gradle/build.gradle.kts index db1e416..b9c5436 100644 --- a/examples/gradle/build.gradle.kts +++ b/examples/gradle/build.gradle.kts @@ -1,3 +1,5 @@ +import org.jetbrains.kotlin.gradle.tasks.KotlinCompile + plugins { id("application") id("com.github.ben-manes.versions") version "0.51.0" @@ -13,7 +15,7 @@ repositories { dependencies { implementation("jakarta.servlet:jakarta.servlet-api:6.0.0") - implementation("net.thauvin.erik:akismet-kotlin:1.0.1-SNAPSHOT") + implementation("net.thauvin.erik:akismet-kotlin:1.0.0") } java { @@ -25,11 +27,11 @@ application { mainClass.set("com.example.AkismetExampleKt") } -kotlin { - compilerOptions.jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_11) -} - tasks { + withType().configureEach { + kotlinOptions.jvmTarget = java.targetCompatibility.toString() + } + register("runJava", JavaExec::class) { group = "application" mainClass.set("com.example.AkismetSample") diff --git a/examples/gradle/src/main/java/com/example/AkismetSample.java b/examples/gradle/src/main/java/com/example/AkismetSample.java index 6d6ced5..f70698f 100644 --- a/examples/gradle/src/main/java/com/example/AkismetSample.java +++ b/examples/gradle/src/main/java/com/example/AkismetSample.java @@ -2,7 +2,6 @@ package com.example; import net.thauvin.erik.akismet.Akismet; import net.thauvin.erik.akismet.AkismetComment; -import net.thauvin.erik.akismet.CommentConfig; import java.util.Date; @@ -10,26 +9,25 @@ public class AkismetSample { public static void main(String... args) { if (args.length == 1 && !args[0].isBlank()) { final Akismet akismet = new Akismet(args[0], "https://yourblogdomainname.com/blog/"); - final AkismetComment comment = new AkismetComment( - new CommentConfig.Builder("127.0.0.1", "curl/7.29.0") - .isTest(true) - .referrer("https://www.google.com") - .permalink(akismet.getBlog() + "post=1") - .type(AkismetComment.TYPE_COMMENT) - .author("admin") - .authorEmail("test@test.com") - .authorUrl("http://www.CheckOutMyCoolSite.com") - .dateGmt(Akismet.dateToGmt(new Date())) -// .userRole(AkismetComment.ADMIN_ROLE) - .content("It means a lot that you would take the time to review our software. Thanks again.") - .build() - ); + final AkismetComment comment = new AkismetComment("127.0.0.1", "curl/7.29.0"); -// final ConsoleHandler consoleHandler = new ConsoleHandler(); -// consoleHandler.setLevel(Level.FINE); -// final Logger logger = akismet.getLogger(); -// logger.addHandler(consoleHandler); -// logger.setLevel(Level.FINE); + comment.setTest(true); + + comment.setReferrer("https://www.google.com"); + comment.setPermalink(akismet.getBlog() + "post=1"); + comment.setType(AkismetComment.TYPE_COMMENT); + comment.setAuthor("admin"); + comment.setAuthorEmail("test@test.com"); + comment.setAuthorUrl("http://www.CheckOutMyCoolSite.com"); + comment.setDateGmt(Akismet.dateToGmt(new Date())); + // comment.setUserRole(AkismetComment.ADMIN_ROLE); + comment.setContent("It means a lot that you would take the time to review our software. Thanks again."); + + // final ConsoleHandler consoleHandler = new ConsoleHandler(); + // consoleHandler.setLevel(Level.FINE); + // final Logger logger = akismet.getLogger(); + // logger.addHandler(consoleHandler); + // logger.setLevel(Level.FINE); if (akismet.verifyKey()) { final boolean isSpam = akismet.checkComment(comment); diff --git a/examples/gradle/src/main/kotlin/com/example/AkismetExample.kt b/examples/gradle/src/main/kotlin/com/example/AkismetExample.kt index 013e633..149555f 100644 --- a/examples/gradle/src/main/kotlin/com/example/AkismetExample.kt +++ b/examples/gradle/src/main/kotlin/com/example/AkismetExample.kt @@ -2,14 +2,18 @@ package com.example import net.thauvin.erik.akismet.Akismet import net.thauvin.erik.akismet.AkismetComment -import java.util.* +import java.util.Date import kotlin.system.exitProcess fun main(args: Array) { + if (args.size == 1 && args[0].isNotEmpty()) { val akismet = Akismet(apiKey = args[0], blog = "https://yourblogdomainname.com/blog/") - val comment = AkismetComment(userIp = "127.0.0.1", userAgent = "curl/7.29.0").apply { + val comment = AkismetComment(userIp = "127.0.0.1", userAgent = "curl/7.29.0") + + with(comment) { isTest = true + referrer = "https://www.google.com" permalink = "${akismet.blog}post=1" type = AkismetComment.TYPE_COMMENT @@ -17,7 +21,7 @@ fun main(args: Array) { authorEmail = "test@test.com" authorUrl = "https://www.CheckOutMyCoolSite.com" dateGmt = Akismet.dateToGmt(Date()) -// userRole = AkismetComment.ADMIN_ROLE +// userRole = AkismetComment.ADMIN_ROLE content = "It means a lot that you would take the time to review our software. Thanks again." } diff --git a/examples/gradle/src/main/kotlin/com/example/AkismetServlet.kt b/examples/gradle/src/main/kotlin/com/example/AkismetServlet.kt index 3e776ed..4b245c8 100644 --- a/examples/gradle/src/main/kotlin/com/example/AkismetServlet.kt +++ b/examples/gradle/src/main/kotlin/com/example/AkismetServlet.kt @@ -20,7 +20,8 @@ class AkismetServlet : HttpServlet() { akismet.appUserAgent = request.servletContext.serverInfo - val comment = AkismetComment(request).apply { + val comment = AkismetComment(request) + with(comment) { permalink = "${akismet.blog}/comment/$id" type = AkismetComment.TYPE_COMMENT author = request.getParameter("name") diff --git a/lib/bld/bld-wrapper.properties b/lib/bld/bld-wrapper.properties index d83a407..1267563 100644 --- a/lib/bld/bld-wrapper.properties +++ b/lib/bld/bld-wrapper.properties @@ -1,9 +1,9 @@ bld.downloadExtensionJavadoc=false bld.downloadExtensionSources=true +bld.extensions-detekt=com.uwyn.rife2:bld-detekt:0.9.2 bld.extensions=com.uwyn.rife2:bld-generated-version:0.9.5 bld.extension-jacoco=com.uwyn.rife2:bld-jacoco-report:0.9.5 -bld.extensions-kotlin=com.uwyn.rife2:bld-kotlin:0.9.5 -bld.extensions-detekt=com.uwyn.rife2:bld-detekt:0.9.4 +bld.extensions-kotlin=com.uwyn.rife2:bld-kotlin:0.9.7 bld.repositories=MAVEN_LOCAL,MAVEN_CENTRAL,RIFE2_SNAPSHOTS,RIFE2_RELEASES bld.downloadLocation= bld.sourceDirectories= diff --git a/src/bld/java/net/thauvin/erik/AkismetBuild.java b/src/bld/java/net/thauvin/erik/AkismetBuild.java index b2db28b..2f7d983 100644 --- a/src/bld/java/net/thauvin/erik/AkismetBuild.java +++ b/src/bld/java/net/thauvin/erik/AkismetBuild.java @@ -67,7 +67,7 @@ public class AkismetBuild extends Project { repositories = List.of(MAVEN_LOCAL, MAVEN_CENTRAL); var okHttp = version(4, 12, 0); - final var kotlin = version(1, 9, 24); + final var kotlin = version(2, 0, 0); scope(compile) .include(dependency("org.jetbrains.kotlin", "kotlin-stdlib", kotlin)) .include(dependency("com.squareup.okhttp3", "okhttp", okHttp)) diff --git a/src/main/kotlin/net/thauvin/erik/akismet/AkismetComment.kt b/src/main/kotlin/net/thauvin/erik/akismet/AkismetComment.kt index dc9c163..dbfcc1c 100644 --- a/src/main/kotlin/net/thauvin/erik/akismet/AkismetComment.kt +++ b/src/main/kotlin/net/thauvin/erik/akismet/AkismetComment.kt @@ -243,24 +243,6 @@ open class AkismetComment(val userIp: String, val userAgent: String) { serverEnv = buildServerEnv(request) } - constructor(config: CommentConfig) : this(config.userIp, config.userAgent) { - referrer = config.referrer - permalink = config.permalink - type = config.type - author = config.author - authorEmail = config.authorEmail - authorUrl = config.authorUrl - content = config.content - dateGmt = config.dateGmt - postModifiedGmt = config.postModifiedGmt - blogLang = config.blogLang - blogCharset = config.blogCharset - userRole = config.userRole - isTest = config.isTest - recheckReason = config.recheckReason - serverEnv = config.serverEnv - } - /** * Returns a JSON representation of the comment. * diff --git a/src/main/kotlin/net/thauvin/erik/akismet/CommentConfig.kt b/src/main/kotlin/net/thauvin/erik/akismet/CommentConfig.kt deleted file mode 100644 index 01b0659..0000000 --- a/src/main/kotlin/net/thauvin/erik/akismet/CommentConfig.kt +++ /dev/null @@ -1,237 +0,0 @@ -/* - * CommentConfig.kt - * - * Copyright 2019-2024 Erik C. Thauvin (erik@thauvin.net) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * Neither the name of this project nor the names of its contributors may be - * used to endorse or promote products derived from this software without - * specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -package net.thauvin.erik.akismet - -import net.thauvin.erik.akismet.AkismetComment.Companion.ADMIN_ROLE -import net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_BLOG_POST -import net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_COMMENT -import net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_CONTACT_FORM -import net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_FORUM_POST -import net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_MESSAGE -import net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_PINGBACK -import net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_REPLY -import net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_SIGNUP -import net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_TRACKBACK -import net.thauvin.erik.akismet.AkismetComment.Companion.TYPE_TWEET - -/** - * Provides a comment configuration. - * - * @param userIp IP address of the comment submitter. - * @param userAgent User agent string of the web browser submitting the comment. - */ -class CommentConfig @JvmOverloads constructor( - var userIp: String, - var userAgent: String, - var referrer: String = "", - var permalink: String = "", - var type: String = "", - var author: String = "", - var authorEmail: String = "", - var authorUrl: String = "", - var content: String = "", - var dateGmt: String = "", - var postModifiedGmt: String = "", - var blogLang: String = "", - var blogCharset: String = "", - var userRole: String = "", - var isTest: Boolean = false, - var recheckReason: String = "", - var serverEnv: Map = emptyMap() - -) { - constructor(builder: Builder) : this(builder.userIp, builder.userAgent) { - referrer = builder.referrer - permalink = builder.permalink - type = builder.type - author = builder.author - authorEmail = builder.authorEmail - authorUrl = builder.authorUrl - content = builder.content - dateGmt = builder.dateGmt - postModifiedGmt = builder.postModifiedGmt - blogLang = builder.blogLang - blogCharset = builder.blogCharset - userRole = builder.userRole - isTest = builder.isTest - recheckReason = builder.recheckReason - serverEnv = builder.serverEnv - } - - /** - * Provides a configuration builder. - * - * @param userIp IP address of the comment submitter. - * @param userAgent User agent string of the web browser submitting the comment. - */ - data class Builder(var userIp: String, var userAgent: String) { - var referrer = "" - var permalink = "" - var type = "" - var author = "" - var authorEmail = "" - var authorUrl = "" - var content = "" - var dateGmt = "" - var postModifiedGmt = "" - var blogLang = "" - var blogCharset = "" - var userRole = "" - var isTest = false - var recheckReason = "" - var serverEnv: Map = emptyMap() - - /** - * Sets the IP address of the comment submitter. - */ - fun userIp(userIp: String) : Builder = apply { this.userIp = userIp } - - /** - * Sets the user agent string of the web browser submitting the comment. - */ - fun userAgent(userAgent: String) : Builder = apply { this.userAgent = userAgent } - - /** - * Sets the content of the referrer header. - */ - fun referrer(referrer: String): Builder = apply { this.referrer = referrer } - - /** - * Sets the full permanent URL of the entry the comment was submitted to. - */ - fun permalink(permalink: String): Builder = apply { this.permalink = permalink } - - /** - * Sets a string that describes the type of content being sent, such as: - * - * - [TYPE_COMMENT] - * - [TYPE_FORUM_POST] - * - [TYPE_REPLY] - * - [TYPE_BLOG_POST] - * - [TYPE_CONTACT_FORM] - * - [TYPE_SIGNUP] - * - [TYPE_MESSAGE] - * - [TYPE_PINGBACK] - * - [TYPE_TRACKBACK] - * - [TYPE_TWEET] - * - * You may send a value not listed above if none of them accurately describe your content. - * - * This is further explained [here](http://blog.akismet.com/2012/06/19/pro-tip-tell-us-your-comment_type/). - */ - fun type(type: String): Builder = apply { this.type = type } - - /** - * Sets the mame submitted with the comment. - */ - fun author(author: String): Builder = apply { this.author = author } - - /** - * Sets the email address submitted with the comment. - */ - fun authorEmail(authorEmail: String): Builder = apply { this.authorEmail = authorEmail } - - /** - * Sets the URL submitted with comment. - */ - fun authorUrl(authorUrl: String): Builder = apply { this.authorUrl = authorUrl } - - /** - * Sets the content that was submitted. - */ - fun content(content: String): Builder = apply { this.content = content } - - /** - * Sets the UTC timestamp of the creation of the comment, in ISO 8601 format. - * - * May be omitted if the comment is sent to the API at the time it is created. - * - * @see [Akismet.dateToGmt] - */ - fun dateGmt(dateGmt: String): Builder = apply { this.dateGmt = dateGmt } - - /** - * Sets the UTC timestamp of the publication time for the post, page or thread on which the comment was posted. - * - * @see [Akismet.dateToGmt] - */ - fun postModifiedGmt(postModifiedGmt: String) = apply { this.postModifiedGmt = postModifiedGmt } - - /** - * Indicates the language(s) in use on the blog or site, in ISO 639-1 format, comma-separated. - * - * A site with articles in English and French might use: `en, fr_ca` - */ - fun blogLang(blogLang: String): Builder = apply { this.blogLang = blogLang } - - /** - * Sets the character encoding for the form values included in comment parameters, such as UTF-8 or ISO-8859-1 - */ - fun blogCharset(blogCharset: String): Builder = apply { this.blogCharset = blogCharset } - - /** - * Set the user role of the user who submitted the comment. This is an optional parameter. - * - * If you set it to [ADMIN_ROLE], Akismet will always return false. - */ - fun userRole(userRole: String): Builder = apply { this.userRole = userRole } - - /** - * This is optional. You can set it when submitting test queries to Akismet. - */ - fun isTest(isTest: Boolean): Builder = apply { this.isTest = isTest } - - /** - * If you are sending content to Akismet to be rechecked, such as a post that has been edited or old pending - * comments that you'd like to recheck, include this parameter with a string describing why the content is - * being rechecked. - * - * For example: `edit` - */ - fun recheckReason(checkReason: String): Builder = apply { this.recheckReason = checkReason } - - /** - * In PHP, there is an array of environmental variables called `$_SERVER` that contains information about the - * Web server itself as well as a key/value for every HTTP header sent with the request. This data is highly - * useful to Akismet. - * - * How the submitted content interacts with the server can be very telling, so please include as much of it as - * possible. - */ - fun serverEnv(serverEnv: Map): Builder = apply { this.serverEnv = serverEnv } - - /** - * Builds a new comment configuration. - */ - fun build(): CommentConfig = CommentConfig(this) - } -} diff --git a/src/main/kotlin/net/thauvin/erik/akismet/GeneratedVersion.kt b/src/main/kotlin/net/thauvin/erik/akismet/GeneratedVersion.kt index 8f63ec2..bc2ee49 100644 --- a/src/main/kotlin/net/thauvin/erik/akismet/GeneratedVersion.kt +++ b/src/main/kotlin/net/thauvin/erik/akismet/GeneratedVersion.kt @@ -1,3 +1,34 @@ +/* + * GeneratedVersion.kt + * + * Copyright 2019-2024 Erik C. Thauvin (erik@thauvin.net) + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * + * Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * Neither the name of this project nor the names of its contributors may be + * used to endorse or promote products derived from this software without + * specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + /* * This file is automatically generated. * Do not modify! -- ALL CHANGES WILL BE ERASED! diff --git a/src/test/kotlin/net/thauvin/erik/akismet/AkismetTest.kt b/src/test/kotlin/net/thauvin/erik/akismet/AkismetTest.kt index 3074992..31f3376 100644 --- a/src/test/kotlin/net/thauvin/erik/akismet/AkismetTest.kt +++ b/src/test/kotlin/net/thauvin/erik/akismet/AkismetTest.kt @@ -118,11 +118,6 @@ class AkismetTest { assertThat(akismet::blog).isEqualTo(blog) } - @Test - fun validateConfigTest() { - assertThat(AkismetComment(config) == comment).isTrue() - } - @Test fun verifyKeyTest() { assertThat(akismet, "akismet").all { @@ -372,7 +367,6 @@ class AkismetTest { } companion object { - private const val REFERER = "http://www.google.com" private val apiKey = getKey("AKISMET_API_KEY") private val blog = getKey("AKISMET_BLOG") private val akismet = Akismet(apiKey, blog) @@ -381,40 +375,24 @@ class AkismetTest { userAgent = "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6" ) private val date = Date() - private val config = CommentConfig.Builder(comment.userIp, comment.userAgent) - .referrer(REFERER) - .permalink("http://yourblogdomainname.com/blog/post=1") - .type(AkismetComment.TYPE_COMMENT) - .author("admin") - .authorEmail("test@test.com") - .authorUrl("http://www.CheckOutMyCoolSite.com") - .content("It means a lot that you would take the time to review our software. Thanks again.") - .dateGmt(Akismet.dateToGmt(date)) - .postModifiedGmt(Akismet.dateToGmt(date)) - .blogLang("en") - .blogCharset("UTF-8") - .userRole(AkismetComment.ADMIN_ROLE) - .recheckReason("edit") - .isTest(true) - .build() private val mockComment: AkismetComment = AkismetComment(request = getMockRequest()) + private const val REFERER = "http://www.google.com" init { with(comment) { - referrer = config.referrer - permalink = config.permalink - type = config.type - author = config.author - authorEmail = config.authorEmail - authorUrl = config.authorUrl - content = config.content - dateGmt = config.dateGmt - postModifiedGmt = config.postModifiedGmt - blogLang = config.blogLang - blogCharset = config.blogCharset - userRole = config.userRole - recheckReason = config.recheckReason - isTest = config.isTest + referrer = REFERER + permalink = "http://yourblogdomainname.com/blog/post=1" + type = AkismetComment.TYPE_COMMENT + author = "admin" + authorEmail = "test@test.com" + authorUrl = "http://www.CheckOutMyCoolSite.com" + content = "It means a lot that you would take the time to review our software. Thanks again." + dateGmt = Akismet.dateToGmt(date) + postModifiedGmt = dateGmt + blogLang = "en" + blogCharset = "UTF-8" + userRole = AkismetComment.ADMIN_ROLE + isTest = true } with(mockComment) { @@ -429,7 +407,7 @@ class AkismetTest { blogLang = comment.blogLang blogCharset = comment.blogCharset userRole = comment.userRole - recheckReason = comment.recheckReason + recheckReason = "edit" isTest = true } }