diff --git a/.circleci/config.yml b/.circleci/config.yml index 86b3b8f..c781fdc 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,55 +1,62 @@ -version: 2 +version: 2.1 + +orbs: + sdkman: joshdholtz/sdkman@0.2.0 + defaults: &defaults working_directory: ~/repo environment: JVM_OPTS: -Xmx3200m TERM: dumb - CI: true + CI_NAME: "CircleCI" -defaults_gradle: &defaults_gradle - steps: - - checkout - - restore_cache: - keys: - - gradle-dependencies-{{ checksum "build.gradle.kts" }} - # fallback to using the latest cache if no exact match is found - - gradle-dependencies- - - run: - name: Gradle Dependencies - command: ./gradlew dependencies - - save_cache: - paths: ~/.m2 - key: gradle-dependencies-{{ checksum "build.gradle.kts" }} - - run: - name: Run All Checks - command: ./gradlew check - - store_artifacts: - path: build/reports/ - destination: reports - - store_test_results: - path: build/reports/ +commands: + build_and_test: + parameters: + reports-dir: + type: string + default: "build/reports/test_results" + steps: + - checkout + - sdkman/setup-sdkman + - sdkman/sdkman-install: + candidate: kotlin + version: 2.1.10 + - run: + name: Download dependencies + command: ./bld download + - run: + name: Compile source + command: ./bld compile + - run: + name: Run tests + command: ./bld jacoco -reports-dir=<< parameters.reports-dir >> + - store_test_results: + path: << parameters.reports-dir >> + - store_artifacts: + path: build/reports/jacoco/test/html jobs: - build_gradle_jdk13: + bld_jdk17: <<: *defaults docker: - - image: openjdk:13-jdk + - image: cimg/openjdk:17.0 - <<: *defaults_gradle + steps: + - build_and_test - build_gradle_jdk8: + bld_jdk21: <<: *defaults docker: - - image: circleci/openjdk:8-jdk + - image: cimg/openjdk:21.0 - <<: *defaults_gradle + steps: + - build_and_test workflows: - version: 2 - gradle: - jobs: - - build_gradle_jdk8 - - build_gradle_jdk13 - + bld: + jobs: + - bld_jdk17 + - bld_jdk21 diff --git a/.github/workflows/bld.yml b/.github/workflows/bld.yml new file mode 100644 index 0000000..be80a2f --- /dev/null +++ b/.github/workflows/bld.yml @@ -0,0 +1,51 @@ +name: bld-ci + +on: [push, pull_request, workflow_dispatch] + +env: + AKISMET_API_KEY: ${{ secrets.AKISMET_API_KEY }} + AKISMET_BLOG: ${{ secrets.AKISMET_BLOG }} + COVERAGE_JDK: "21" + COVERAGE_KOTLIN: "2.0.0" + KOTLIN_HOME: /usr/share/kotlinc + +jobs: + build-bld-project: + runs-on: ubuntu-latest + + strategy: + matrix: + java-version: [17, 21, 24] + kotlin-version: [1.9.25, 2.1.20] + + steps: + - name: Checkout source repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Set up JDK ${{ matrix.java-version }} with Kotlin ${{ matrix.kotlin-version }} + uses: actions/setup-java@v4 + with: + distribution: "zulu" + java-version: ${{ matrix.java-version }} + + - name: Download dependencies + run: ./bld download + + - name: Compile source + run: ./bld compile + + - name: Run tests + run: ./bld jacoco + + - name: Remove pom.xml + if: success() && matrix.java-version == env.COVERAGE_JDK && matrix.kotlin-version == env.COVERAGE_KOTLIN + run: rm -rf pom.xml + + - name: SonarCloud Scan + if: success() && matrix.java-version == env.COVERAGE_JDK && matrix.kotlin-version == env.COVERAGE_KOTLIN + uses: sonarsource/sonarcloud-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/.gitignore b/.gitignore index f007981..c6b13e4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,84 +1,62 @@ -.vscode/* -!.vscode/extensions.json -!.vscode/launch.json -!.vscode/settings.json -!.vscode/tasks.json - -__pycache__ -.classpath -.DS_Store .gradle -.history -.kobalt -.mtj.tmp/ -.mvn/timing.properties -.mvn/wrapper/maven-wrapper.jar -.nb-gradle -.project -.scannerwork -.settings -*.class -*.code-workspace -*.ctxt -*.iws -*.log -*.nar -*.rar -*.sublime-* -*.tar.gz -*.zip -/**/.idea_modules/ -/**/.idea/**/caches/build_file_checksums.ser -/**/.idea/**/contentModel.xml -/**/.idea/**/dataSources.ids -/**/.idea/**/dataSources.local.xml -/**/.idea/**/dataSources/ -/**/.idea/**/dbnavigator.xml -/**/.idea/**/dictionaries -/**/.idea/**/dynamic.xml -/**/.idea/**/gradle.xml -/**/.idea/**/httpRequests -/**/.idea/**/libraries -/**/.idea/**/mongoSettings.xml -/**/.idea/**/replstate.xml -/**/.idea/**/shelf -/**/.idea/**/shelf/ -/**/.idea/**/sqlDataSources.xml -/**/.idea/**/tasks.xml -/**/.idea/**/uiDesigner.xml -/**/.idea/**/usage.statistics.xml -/**/.idea/**/workspace.xml -/**/.idea/$CACHE_FILE$ -/**/.idea/$PRODUCT_WORKSPACE_FILE$ +.DS_Store +build +lib/bld/** +!lib/bld/bld-wrapper.jar +!lib/bld/bld-wrapper.properties +lib/compile/ +lib/runtime/ +lib/provided/ +lib/standalone/ +lib/test/ + +# IDEA ignores + +# User-specific +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/usage.statistics.xml +.idea/**/dictionaries +.idea/**/shelf + +# AWS User-specific +.idea/**/aws.xml + +# Generated files +.idea/**/contentModel.xml + +# Sensitive or high-churn files +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml + +# Gradle +.idea/**/gradle.xml + +# Mongo Explorer plugin +.idea/**/mongoSettings.xml + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin atlassian-ide-plugin.xml -bin/ -build/ -cmake-build-*/ -com_crashlytics_export_strings.xml -crashlytics-build.properties -crashlytics.properties -dependency-reduced-pom.xml -deploy/ -dist/ -ehthumbs.db -fabric.properties -gen/ -gradle.properties -hs_err_pid* -kobaltBuild -kobaltw*-test -lib/kotlin* -libs/ + +# Cursive Clojure plugin +.idea/replstate.xml + +# SonarLint plugin +.idea/sonarlint/ + +# Editor-based Rest Client +.idea/httpRequests + +bin +deploy +target local.properties -out/ -pom.xml.next -pom.xml.releaseBackup -pom.xml.tag -pom.xml.versionsBackup -proguard-project.txt -project.properties -release.properties -target/ -test-output -Thumbs.db -venv + diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..10b9b0f --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,24 @@ +image: fedora:latest + +variables: + CI_NAME: "GitLab CI" + +stages: + - test + +before_script: + - dnf -qy update && dnf -y install zip + - curl -s "https://get.sdkman.io" | bash + - echo sdkman_auto_answer=true > $HOME/.sdkman/etc/config + - echo sdkman_auto_selfupdate=true >> $HOME/.sdkman/etc/config + - source "$HOME/.sdkman/bin/sdkman-init.sh" + - sdk install java + - sdk install kotlin + - source "$HOME/.sdkman/bin/sdkman-init.sh" + +test: + stage: test + script: + - ./bld download + - ./bld compile + - ./bld test diff --git a/.idea/akismet-kotlin.iml b/.idea/akismet-kotlin.iml deleted file mode 100644 index 78b2cc5..0000000 --- a/.idea/akismet-kotlin.iml +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/.idea/app.iml b/.idea/app.iml new file mode 100644 index 0000000..381e063 --- /dev/null +++ b/.idea/app.iml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/bld.iml b/.idea/bld.iml new file mode 100644 index 0000000..e63e11e --- /dev/null +++ b/.idea/bld.iml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/examples/.idea/encodings.xml b/.idea/bld.xml similarity index 54% rename from examples/.idea/encodings.xml rename to .idea/bld.xml index 97626ba..6600cee 100644 --- a/examples/.idea/encodings.xml +++ b/.idea/bld.xml @@ -1,6 +1,6 @@ - - + + \ No newline at end of file diff --git a/.idea/copyright/BSD_3.xml b/.idea/copyright/BSD_3.xml new file mode 100644 index 0000000..ee0e59a --- /dev/null +++ b/.idea/copyright/BSD_3.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/copyright/Erik_s_Copyright_Notice.xml b/.idea/copyright/Erik_s_Copyright_Notice.xml deleted file mode 100644 index 9accf79..0000000 --- a/.idea/copyright/Erik_s_Copyright_Notice.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/copyright/profiles_settings.xml b/.idea/copyright/profiles_settings.xml index 1419e40..3203074 100644 --- a/.idea/copyright/profiles_settings.xml +++ b/.idea/copyright/profiles_settings.xml @@ -1,3 +1,3 @@ - + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index 8ff795e..37eb64c 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -1,53 +1,8 @@ - \ No newline at end of file + diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml new file mode 100644 index 0000000..86ebe4c --- /dev/null +++ b/.idea/kotlinc.xml @@ -0,0 +1,18 @@ + + + + + + + + + + diff --git a/.idea/libraries/bld.xml b/.idea/libraries/bld.xml new file mode 100644 index 0000000..a203de8 --- /dev/null +++ b/.idea/libraries/bld.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/compile.xml b/.idea/libraries/compile.xml new file mode 100644 index 0000000..5316b95 --- /dev/null +++ b/.idea/libraries/compile.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/runtime.xml b/.idea/libraries/runtime.xml new file mode 100644 index 0000000..d4069f2 --- /dev/null +++ b/.idea/libraries/runtime.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/test.xml b/.idea/libraries/test.xml new file mode 100644 index 0000000..05f52ce --- /dev/null +++ b/.idea/libraries/test.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index a85734c..e6cd1a9 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,19 +1,12 @@ - - - \ No newline at end of file + diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..55adcb9 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Run Tests.xml b/.idea/runConfigurations/Run Tests.xml new file mode 100644 index 0000000..d46a237 --- /dev/null +++ b/.idea/runConfigurations/Run Tests.xml @@ -0,0 +1,9 @@ + + + + diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 0fe45a9..0000000 --- a/.travis.yml +++ /dev/null @@ -1,26 +0,0 @@ -language: java -dist: trusty - -env: - global: - - CI=true - -install: - - git fetch --unshallow --tags - -addons: - sonarcloud: - organization: "ethauvin-github" - -jdk: - - oraclejdk8 - - openjdk13 - -before_install: - - chmod +x gradlew - -after_success: - - | - if [ "${TRAVIS_TEST_RESULT}" == 0 ] && [ "$TRAVIS_JDK_VERSION" == oraclejdk8 ]; then - ./gradlew sonarqube - fi diff --git a/LICENSE.txt b/LICENSE.txt index 5d36e06..d9ceb27 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,4 +1,4 @@ -Copyright (c) 2019-20, Erik C. Thauvin (erik@thauvin.net) +Copyright (c) 2019-2025, Erik C. Thauvin (erik@thauvin.net) All rights reserved. Redistribution and use in source and binary forms, with or without diff --git a/README.md b/README.md index 4c0f00b..441e433 100644 --- a/README.md +++ b/README.md @@ -1,26 +1,32 @@ -[![License (3-Clause BSD)](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg?style=flat-square)](http://opensource.org/licenses/BSD-3-Clause) [![release](https://img.shields.io/github/release/ethauvin/akismet-kotlin.svg)](https://github.com/ethauvin/akismet-kotlin/releases/latest) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/net.thauvin.erik/akismet-kotlin/badge.svg)](https://maven-badges.herokuapp.com/maven-central/net.thauvin.erik/akismet-kotlin) [![Download](https://api.bintray.com/packages/ethauvin/maven/akismet-kotlin/images/download.svg)](https://bintray.com/ethauvin/maven/akismet-kotlin/_latestVersion) \ -[![Known Vulnerabilities](https://snyk.io/test/github/ethauvin/akismet-kotlin/badge.svg?targetFile=pom.xml)](https://snyk.io/test/github/ethauvin/akismet-kotlin?targetFile=pom.xml) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=ethauvin_akismet-kotlin&metric=alert_status)](https://sonarcloud.io/dashboard?id=ethauvin_akismet-kotlin) [![Build Status](https://travis-ci.com/ethauvin/akismet-kotlin.svg?branch=master)](https://travis-ci.com/ethauvin/akismet-kotlin) [![CircleCI](https://circleci.com/gh/ethauvin/akismet-kotlin/tree/master.svg?style=shield)](https://circleci.com/gh/ethauvin/akismet-kotlin/tree/master) +[![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-2.1.20-7f52ff)](https://kotlinlang.org/) +[![bld](https://img.shields.io/badge/2.2.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/) +[![Maven Central](https://img.shields.io/maven-central/v/net.thauvin.erik/akismet-kotlin.svg?color=blue)](https://central.sonatype.com/artifact/net.thauvin.erik/akismet-kotlin) -# [Akismet](https://www.akismet.com) for Kotlin/Java +[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=ethauvin_akismet-kotlin&metric=alert_status)](https://sonarcloud.io/dashboard?id=ethauvin_akismet-kotlin) +[![GitHub CI](https://github.com/ethauvin/akismet-kotlin/actions/workflows/bld.yml/badge.svg)](https://github.com/ethauvin/akismet-kotlin/actions/workflows/bld.yml) +[![CircleCI](https://circleci.com/gh/ethauvin/akismet-kotlin/tree/master.svg?style=shield)](https://circleci.com/gh/ethauvin/akismet-kotlin/tree/master) -Akismet for Kotlin/Java is a pretty complete and straightforward implementation of the [Automattic's Akismet](https://akismet.com/development/api/) API, a free service which can be used to actively stop comments spam. +# [Akismet](https://www.akismet.com) for Kotlin, Java and Android + +A pretty complete and straightforward implementation of the [Automattic's Akismet](https://akismet.com/development/api/) API, a free service which can be used to actively stop comments spam. ## Examples (TL;DR) -#### Kotlin +### Kotlin ```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") - -with(comment) { - referrer = "http://www.google.com" - type = AkismetComment.TYPE_COMMENT +val comment = AkismetComment(userIp = "127.0.0.1", userAgent = "curl/7.29.0").apply { + referrer = "https://www.google.com" + type = CommentType.COMMENT author = "admin" authorEmail = "test@test.com" - authorUrl = "http://www.CheckOutMyCoolSite.com" + authorUrl = "https://www.CheckOutMyCoolSite.com" dateGmt = Akismet.dateToGmt(Date()) - content = "It means a lot that you would take the time to review our software." + content = "Thanks for reviewing our software." } // ... @@ -30,21 +36,23 @@ if (isSpam) { } ``` -[View Full Example](https://github.com/ethauvin/akismet-kotlin/blob/master/examples/src/main/kotlin/com/example/AkismetExample.kt) +[View Full Examples](https://github.com/ethauvin/akismet-kotlin/blob/master/examples) -#### Java +### Java ```java final Akismet akismet = new Akismet("YOUR_API_KEY", "YOUR_BLOG_URL"); -final AkismetComment comment = new AkismetComment("127.0.0.1", "curl/7.29.0"); - -comment.setReferrer("http://www.google.com"); -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.setContent("It means a lot that you would take the time to review our software."); +final AkismetComment comment = new AkismetComment( + new CommentConfig.Builder("127.0.0.1", "curl/7.29.0") + .referrer("https://www.google.com") + .type(CommentType.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 boolean isSpam = akismet.checkComment(comment); @@ -53,24 +61,36 @@ if (isSpam) { } ``` -[View Full Example](https://github.com/ethauvin/akismet-kotlin/blob/master/examples/src/main/java/com/example/AkismetSample.java) +[View Full Examples](https://github.com/ethauvin/akismet-kotlin/blob/master/examples) +## bld -### Gradle +To use with [bld](https://rife2.com/bld), include the following dependency in your [build](https://github.com/ethauvin/akismet-kotlin/blob/master/examples/bld/src/bld/java/com/example/ExampleBuild.java) file: -To use with [Gradle](https://gradle.org/), include the following dependency in your [build](https://github.com/ethauvin/akismet-kotlin/blob/master/examples/build.gradle.kts) file: +```java +repositories = List.of(MAVEN_CENTRAL, SONATYPE_SNAPSHOTS_LEGACY); + +scope(compile) + .include(dependency("net.thauvin.erik:akismet-kotlin:1.1.0-SNAPSHOT")); +``` + +## Gradle + +To use with [Gradle](https://gradle.org/), include the following dependency in your [build](https://github.com/ethauvin/akismet-kotlin/blob/master/examples/gradle/build.gradle.kts) file: ```gradle repositories { - jcenter() + mavenCentral() } dependencies { - implementation("net.thauvin.erik:akismet-kotlin:0.9.2") + implementation("net.thauvin.erik:akismet-kotlin:1.1.0-SNAPSHOT") } ``` -### HttpServletRequest +Instructions for using with Maven, Ivy, etc. can be found on [Maven Central](https://central.sonatype.com/artifact/net.thauvin.erik/akismet-kotlin). + +## HttpServletRequest The more information is sent to Akismet, the more accurate the response is. An [HttpServletRequest](https://javaee.github.io/javaee-spec/javadocs/javax/servlet/http/HttpServletRequest.html) can be used as a parameter so that all the relevant information is automatically included. @@ -80,9 +100,9 @@ AkismetComment(request = context.getRequest()) This will ensure that the user's IP, agent, referrer and various environment variables are automatically extracted from the request. -[View Full Example](https://github.com/ethauvin/akismet-kotlin/blob/master/examples/src/main/kotlin/com/example/AkismetServlet.kt) +[View Full Example](https://github.com/ethauvin/akismet-kotlin/blob/master/examples/gradle/src/main/kotlin/com/example/AkismetServlet.kt) -### JSON +## JSON Since comments mis-identified as spam or ham can be submitted to Askimet to improve the service. A comment can be saved as a JSON object to be stored in a database, etc. @@ -96,5 +116,24 @@ At a latter time, the comment can then be submitted: akismet.submitSpam(Akismet.jsonComment(json)) ``` -### More... +## Contributing + +If you want to contribute to this project, all you have to do is clone the GitHub +repository: + +```console +git clone git@github.com:ethauvin/akismet-kotlin.git +``` + +Then use [bld](https://rife2.com/bld) to build: + +```console +cd akismet-kotlin +./bld compile +``` + +The project has an [IntelliJ IDEA](https://www.jetbrains.com/idea/) project structure. You can just open it after all the dependencies were downloaded and peruse the code. + +### More… + If all else fails, there's always more [Documentation](https://ethauvin.github.io/akismet-kotlin/). diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml new file mode 100644 index 0000000..ace99d2 --- /dev/null +++ b/bitbucket-pipelines.yml @@ -0,0 +1,20 @@ +image: ubuntu:latest + +pipelines: + default: + - step: + name: Test with bld + script: + # Install latest Java & Kotlin via SDKMAN! + - apt-get update -qq && apt-get install -y curl zip + - curl -s "https://get.sdkman.io" | bash + - echo sdkman_auto_answer=true > $HOME/.sdkman/etc/config + - echo sdkman_auto_selfupdate=true >> $HOME/.sdkman/etc/config + - source "$HOME/.sdkman/bin/sdkman-init.sh" + - sdk install java + - sdk install kotlin + - source "$HOME/.sdkman/bin/sdkman-init.sh" + # Download, compile and test with bld + - ./bld download + - ./bld compile + - ./bld test diff --git a/bld b/bld new file mode 100755 index 0000000..f9906e9 --- /dev/null +++ b/bld @@ -0,0 +1,2 @@ +#!/usr/bin/env sh +java -jar "$(dirname "$0")/lib/bld/bld-wrapper.jar" "$0" --build net.thauvin.erik.AkismetBuild "$@" \ No newline at end of file diff --git a/bld.bat b/bld.bat new file mode 100644 index 0000000..5a0f2a2 --- /dev/null +++ b/bld.bat @@ -0,0 +1,4 @@ +@echo off +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +java -jar "%DIRNAME%/lib/bld/bld-wrapper.jar" "%0" --build net.thauvin.erik.AkismetBuild %* \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts deleted file mode 100644 index 1e47788..0000000 --- a/build.gradle.kts +++ /dev/null @@ -1,315 +0,0 @@ -import com.jfrog.bintray.gradle.tasks.BintrayUploadTask -import org.jetbrains.dokka.gradle.DokkaTask -import org.jetbrains.kotlin.gradle.tasks.KotlinCompile -import java.io.FileInputStream -import java.net.URL -import java.util.Date -import java.util.Properties - -plugins { - jacoco - java - `maven-publish` - id("com.github.ben-manes.versions") version "0.28.0" - id("com.jfrog.bintray") version "1.8.5" - id("io.gitlab.arturbosch.detekt") version "1.9.1" - id("net.thauvin.erik.gradle.semver") version "1.0.4" - id("org.jetbrains.dokka") version "0.10.1" - id("org.jetbrains.kotlin.jvm") version "1.3.72" - id("org.jetbrains.kotlin.kapt") version "1.3.72" - id("org.jetbrains.kotlin.plugin.serialization") version "1.3.72" - id("org.sonarqube") version "3.0" -} - -group = "net.thauvin.erik" -description = "Akismet for Kotlin/Java, a client library for accessing the Automattic Kismet (Akismet) spam comments filtering service." - -val gitHub = "ethauvin/$name" -val mavenUrl = "https://github.com/$gitHub" -val deployDir = "deploy" -var isRelease = "release" in gradle.startParameter.taskNames - -var semverProcessor = "net.thauvin.erik:semver:1.2.0" - -val publicationName = "mavenJava" - -object VersionInfo { - const val okhttp = "4.7.2" -} - -val versions: VersionInfo by extra { VersionInfo } - -// Load local.properties -File("local.properties").apply { - if (exists()) { - FileInputStream(this).use { fis -> - Properties().apply { - load(fis) - forEach { (k, v) -> - extra[k as String] = v - } - } - } - } -} - -repositories { - jcenter() -} - -dependencies { - kapt(semverProcessor) - compileOnly(semverProcessor) - - implementation("javax.servlet:javax.servlet-api:4.0.1") - - implementation("com.squareup.okhttp3:okhttp:${versions.okhttp}") - implementation("com.squareup.okhttp3:logging-interceptor:${versions.okhttp}") - - // Align versions of all Kotlin components - implementation(platform("org.jetbrains.kotlin:kotlin-bom")) - implementation(kotlin("stdlib")) - implementation("org.jetbrains.kotlinx:kotlinx-serialization-runtime:0.20.0-1.3.70-eap-274-2") - testImplementation("org.mockito:mockito-core:3.3.3") - testImplementation("org.testng:testng:7.2.0") -} - -kapt { - arguments { - arg("semver.project.dir", projectDir) - } -} - -detekt { - //input = files("src/main/kotlin", "src/test/kotlin") - //filters = ".*/resources/.*,.*/build/.*" - baseline = project.rootDir.resolve("detekt-baseline.xml") -} - -jacoco { - toolVersion = "0.8.5" -} - -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} - -sonarqube { - properties { - property("sonar.projectKey", "ethauvin_$name") - property("sonar.sourceEncoding", "UTF-8") - } -} - -val sourcesJar by tasks.creating(Jar::class) { - archiveClassifier.set("sources") - from(sourceSets.getByName("main").allSource) -} - -val javadocJar by tasks.creating(Jar::class) { - dependsOn(tasks.dokka) - from(tasks.dokka) - archiveClassifier.set("javadoc") - description = "Assembles a JAR of the generated Javadoc." - group = JavaBasePlugin.DOCUMENTATION_GROUP -} - -val dokkaDocs by tasks.creating(DokkaTask::class) { - outputFormat = "gfm" - outputDirectory = "$projectDir" - - configuration { - moduleName = "docs" - sourceLink { - path = file("$projectDir/src/main/kotlin").toURI().toString().replace("file:", "") - url = "https://github.com/ethauvin/${project.name}/tree/master/src/main/kotlin" - lineSuffix = "#L" - } - - jdkVersion = 8 - - externalDocumentationLink { - url = URL("https://javaee.github.io/javaee-spec/javadocs/") - packageListUrl = URL("https://javaee.github.io/javaee-spec/javadocs/package-list") - } - - includes = listOf("config/dokka/packages.md") - includeNonPublic = false - } -} - -tasks { - withType { - useTestNG() - } - - withType { - reports { - xml.isEnabled = true - html.isEnabled = true - } - } - - withType().configureEach { - kotlinOptions.jvmTarget = "1.8" - } - - withType { - destination = file("$projectDir/pom.xml") - } - - assemble { - dependsOn(sourcesJar, javadocJar) - } - - clean { - doLast { - project.delete(fileTree(deployDir)) - } - } - - dokka { - outputFormat = "html" - outputDirectory = "$buildDir/javadoc" - - configuration { - sourceLink { - path = file("$projectDir/src/main/kotlin").toURI().toString().replace("file:", "") - url = "https://github.com/ethauvin/${project.name}/tree/master/src/main/kotlin" - lineSuffix = "#L" - } - - jdkVersion = 8 - - externalDocumentationLink { - url = URL("https://javaee.github.io/javaee-spec/javadocs/") - packageListUrl = URL("https://javaee.github.io/javaee-spec/javadocs/package-list") - } - - includes = listOf("config/dokka/packages.md") - includeNonPublic = false - } - dependsOn(dokkaDocs) - } - - val copyToDeploy by registering(Copy::class) { - from(configurations.runtime) { - exclude("annotations-*.jar") - } - from(jar) - into(deployDir) - } - - register("deploy") { - description = "Copies all needed files to the $deployDir directory." - group = PublishingPlugin.PUBLISH_TASK_GROUP - dependsOn("build", "jar") - outputs.dir(deployDir) - inputs.files(copyToDeploy) - mustRunAfter("clean") - } - - val gitIsDirty by registering(Exec::class) { - description = "Fails if git has uncommitted changes." - group = "verification" - commandLine("git", "diff", "--quiet", "--exit-code") - } - - val gitTag by registering(Exec::class) { - description = "Tags the local repository with version ${project.version}" - group = PublishingPlugin.PUBLISH_TASK_GROUP - dependsOn(gitIsDirty) - if (isRelease) { - commandLine("git", "tag", "-a", project.version, "-m", "Version ${project.version}") - } - } - - val bintrayUpload by existing(BintrayUploadTask::class) { - dependsOn(publishToMavenLocal, gitTag) - doFirst { - versionName = "${project.version}" - versionDesc = "${project.name} ${project.version}" - versionVcsTag = "${project.version}" - versionReleased = Date().toString() - } - } - - register("release") { - description = "Publishes version ${project.version} to Bintray." - group = PublishingPlugin.PUBLISH_TASK_GROUP - dependsOn("wrapper", bintrayUpload) - } - - "sonarqube" { - dependsOn("jacocoTestReport") - } -} - -fun findProperty(s: String) = project.findProperty(s) as String? -bintray { - user = findProperty("bintray.user") - key = findProperty("bintray.apikey") - publish = isRelease - setPublications(publicationName) - pkg.apply { - repo = "maven" - name = project.name - desc = description - websiteUrl = mavenUrl - issueTrackerUrl = "$mavenUrl/issues" - githubRepo = gitHub - githubReleaseNotesFile = "README.md" - vcsUrl = "$mavenUrl.git" - setLabels("kotlin", "java", "akismet", "comments", "spam", "blog", "automattic", "kismet") - setLicenses("BSD 3-Clause") - publicDownloadNumbers = true - version.apply { - name = project.version as String - desc = description - vcsTag = project.version as String - gpg.apply { - sign = true - } - } - } -} - -publishing { - publications { - create(publicationName) { - from(components["java"]) - artifact(sourcesJar) - artifact(javadocJar) - pom.withXml { - asNode().apply { - appendNode("name", project.name) - appendNode("description", project.description) - appendNode("url", mavenUrl) - - appendNode("licenses").appendNode("license").apply { - appendNode("name", "BSD 3-Clause") - appendNode("url", "https://opensource.org/licenses/BSD-3-Clause") - } - - appendNode("developers").appendNode("developer").apply { - appendNode("id", "ethauvin") - appendNode("name", "Erik C. Thauvin") - appendNode("email", "erik@thauvin.net") - } - - appendNode("scm").apply { - appendNode("connection", "scm:git:$mavenUrl.git") - appendNode("developerConnection", "scm:git:git@github.com:$gitHub.git") - appendNode("url", mavenUrl) - } - - appendNode("issueManagement").apply { - appendNode("system", "GitHub") - appendNode("url", "$mavenUrl/issues") - } - } - } - } - } -} diff --git a/config/detekt/baseline.xml b/config/detekt/baseline.xml new file mode 100644 index 0000000..a418973 --- /dev/null +++ b/config/detekt/baseline.xml @@ -0,0 +1,17 @@ + + + + + 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 ) + 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/config/detekt/detekt.yml b/config/detekt/detekt.yml deleted file mode 100644 index f24d8c1..0000000 --- a/config/detekt/detekt.yml +++ /dev/null @@ -1,551 +0,0 @@ -build: - maxIssues: 10 - weights: - # complexity: 2 - # LongParameterList: 1 - # style: 1 - # comments: 1 - -processors: - active: true - exclude: - # - 'DetektProgressListener' - # - 'FunctionCountProcessor' - # - 'PropertyCountProcessor' - # - 'ClassCountProcessor' - # - 'PackageCountProcessor' - # - 'KtFileCountProcessor' - -console-reports: - active: true - exclude: - # - 'ProjectStatisticsReport' - # - 'ComplexityReport' - # - 'NotificationReport' - # - 'FindingsReport' - # - 'BuildFailureReport' - -comments: - active: true - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - CommentOverPrivateFunction: - active: false - CommentOverPrivateProperty: - active: false - EndOfSentenceFormat: - active: false - endOfSentenceFormat: ([.?!][ \t\n\r\f<])|([.?!:]$) - UndocumentedPublicClass: - active: false - searchInNestedClass: true - searchInInnerClass: true - searchInInnerObject: true - searchInInnerInterface: true - UndocumentedPublicFunction: - active: false - -complexity: - active: true - ComplexCondition: - active: true - threshold: 4 - ComplexInterface: - active: false - threshold: 10 - includeStaticDeclarations: false - ComplexMethod: - active: true - threshold: 10 - ignoreSingleWhenExpression: false - ignoreSimpleWhenEntries: false - LabeledExpression: - active: false - ignoredLabels: "" - LargeClass: - active: true - threshold: 600 - LongMethod: - active: true - threshold: 60 - LongParameterList: - active: false - constructorThreshold: 6 - functionThreshold: 6 - ignoreDefaultParameters: false - MethodOverloading: - active: false - threshold: 6 - NestedBlockDepth: - active: true - threshold: 4 - StringLiteralDuplication: - active: false - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - threshold: 3 - ignoreAnnotation: true - excludeStringsWithLessThan5Characters: true - ignoreStringsRegex: '$^' - TooManyFunctions: - active: true - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - thresholdInFiles: 11 - thresholdInClasses: 11 - thresholdInInterfaces: 11 - thresholdInObjects: 11 - thresholdInEnums: 11 - ignoreDeprecated: false - ignorePrivate: false - ignoreOverridden: false - -empty-blocks: - active: true - EmptyCatchBlock: - active: true - allowedExceptionNameRegex: "^(_|(ignore|expected).*)" - EmptyClassBlock: - active: true - EmptyDefaultConstructor: - active: true - EmptyDoWhileBlock: - active: true - EmptyElseBlock: - active: true - EmptyFinallyBlock: - active: true - EmptyForBlock: - active: true - EmptyFunctionBlock: - active: true - ignoreOverridden: false - EmptyIfBlock: - active: true - EmptyInitBlock: - active: true - EmptyKtFile: - active: true - EmptySecondaryConstructor: - active: true - EmptyWhenBlock: - active: true - EmptyWhileBlock: - active: true - -exceptions: - active: true - ExceptionRaisedInUnexpectedLocation: - active: false - methodNames: 'toString,hashCode,equals,finalize' - InstanceOfCheckForException: - active: false - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - NotImplementedDeclaration: - active: false - PrintStackTrace: - active: false - RethrowCaughtException: - active: false - ReturnFromFinally: - active: false - SwallowedException: - active: false - ignoredExceptionTypes: 'InterruptedException,NumberFormatException,ParseException,MalformedURLException' - allowedExceptionNameRegex: "^(_|(ignore|expected).*)" - ThrowingExceptionFromFinally: - active: false - ThrowingExceptionInMain: - active: false - ThrowingExceptionsWithoutMessageOrCause: - active: false - exceptions: 'IllegalArgumentException,IllegalStateException,IOException' - ThrowingNewInstanceOfSameException: - active: false - TooGenericExceptionCaught: - active: true - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - exceptionNames: - - ArrayIndexOutOfBoundsException - - Error - - Exception - - IllegalMonitorStateException - - NullPointerException - - IndexOutOfBoundsException - - RuntimeException - - Throwable - allowedExceptionNameRegex: "^(_|(ignore|expected).*)" - TooGenericExceptionThrown: - active: true - exceptionNames: - - Error - - Exception - - Throwable - - RuntimeException - -formatting: - active: true - android: false - autoCorrect: true - AnnotationOnSeparateLine: - active: false - autoCorrect: true - ChainWrapping: - active: true - autoCorrect: true - CommentSpacing: - active: true - autoCorrect: true - Filename: - active: true - FinalNewline: - active: true - autoCorrect: true - ImportOrdering: - active: false - autoCorrect: true - Indentation: - active: false - autoCorrect: true - indentSize: 4 - continuationIndentSize: 4 - MaximumLineLength: - active: true - maxLineLength: 120 - ModifierOrdering: - active: true - autoCorrect: true - MultiLineIfElse: - active: true - autoCorrect: true - NoBlankLineBeforeRbrace: - active: true - autoCorrect: true - NoConsecutiveBlankLines: - active: true - autoCorrect: true - NoEmptyClassBody: - active: true - autoCorrect: true - NoLineBreakAfterElse: - active: true - autoCorrect: true - NoLineBreakBeforeAssignment: - active: true - autoCorrect: true - NoMultipleSpaces: - active: true - autoCorrect: true - NoSemicolons: - active: true - autoCorrect: true - NoTrailingSpaces: - active: true - autoCorrect: true - NoUnitReturn: - active: true - autoCorrect: true - NoUnusedImports: - active: true - autoCorrect: true - NoWildcardImports: - active: true - PackageName: - active: true - autoCorrect: true - ParameterListWrapping: - active: true - autoCorrect: true - indentSize: 4 - SpacingAroundColon: - active: true - autoCorrect: true - SpacingAroundComma: - active: true - autoCorrect: true - SpacingAroundCurly: - active: true - autoCorrect: true - SpacingAroundDot: - active: true - autoCorrect: true - SpacingAroundKeyword: - active: true - autoCorrect: true - SpacingAroundOperators: - active: true - autoCorrect: true - SpacingAroundParens: - active: true - autoCorrect: true - SpacingAroundRangeOperator: - active: true - autoCorrect: true - StringTemplate: - active: true - autoCorrect: true - -naming: - active: true - ClassNaming: - active: true - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - classPattern: '[A-Z$][a-zA-Z0-9$]*' - ConstructorParameterNaming: - active: true - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - parameterPattern: '[a-z][A-Za-z0-9]*' - privateParameterPattern: '[a-z][A-Za-z0-9]*' - excludeClassPattern: '$^' - EnumNaming: - active: true - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - enumEntryPattern: '^[A-Z][_a-zA-Z0-9]*' - ForbiddenClassName: - active: false - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - forbiddenName: '' - FunctionMaxLength: - active: false - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - maximumFunctionNameLength: 30 - FunctionMinLength: - active: false - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - minimumFunctionNameLength: 3 - FunctionNaming: - active: true - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - functionPattern: '^([a-z$][a-zA-Z$0-9]*)|(`.*`)$' - excludeClassPattern: '$^' - ignoreOverridden: true - FunctionParameterNaming: - active: true - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - parameterPattern: '[a-z][A-Za-z0-9]*' - excludeClassPattern: '$^' - ignoreOverridden: true - InvalidPackageDeclaration: - active: false - rootPackage: '' - MatchingDeclarationName: - active: true - MemberNameEqualsClassName: - active: false - ignoreOverridden: true - ObjectPropertyNaming: - active: true - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - constantPattern: '[A-Za-z][_A-Za-z0-9]*' - propertyPattern: '[A-Za-z][_A-Za-z0-9]*' - privatePropertyPattern: '(_)?[A-Za-z][_A-Za-z0-9]*' - PackageNaming: - active: true - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - packagePattern: '^[a-z]+(\.[a-z][A-Za-z0-9]*)*$' - TopLevelPropertyNaming: - active: true - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - constantPattern: '[A-Z][_A-Z0-9]*' - propertyPattern: '[A-Za-z][_A-Za-z0-9]*' - privatePropertyPattern: '_?[A-Za-z][_A-Za-z0-9]*' - VariableMaxLength: - active: false - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - maximumVariableNameLength: 64 - VariableMinLength: - active: false - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - minimumVariableNameLength: 1 - VariableNaming: - active: true - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - variablePattern: '[a-z][A-Za-z0-9]*' - privateVariablePattern: '(_)?[a-z][A-Za-z0-9]*' - excludeClassPattern: '$^' - ignoreOverridden: true - -performance: - active: true - ArrayPrimitive: - active: false - ForEachOnRange: - active: true - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - SpreadOperator: - active: true - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - UnnecessaryTemporaryInstantiation: - active: true - -potential-bugs: - active: true - DuplicateCaseInWhenExpression: - active: true - EqualsAlwaysReturnsTrueOrFalse: - active: false - EqualsWithHashCodeExist: - active: true - ExplicitGarbageCollectionCall: - active: true - InvalidRange: - active: false - IteratorHasNextCallsNextMethod: - active: false - IteratorNotThrowingNoSuchElementException: - active: false - LateinitUsage: - active: false - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - excludeAnnotatedProperties: "" - ignoreOnClassesPattern: "" - MissingWhenCase: - active: false - RedundantElseInWhen: - active: false - UnconditionalJumpStatementInLoop: - active: false - UnreachableCode: - active: true - UnsafeCallOnNullableType: - active: false - UnsafeCast: - active: false - UselessPostfixExpression: - active: false - WrongEqualsTypeParameter: - active: false - -style: - active: true - CollapsibleIfStatements: - active: false - DataClassContainsFunctions: - active: false - conversionFunctionPrefix: 'to' - DataClassShouldBeImmutable: - active: false - EqualsNullCall: - active: false - EqualsOnSignatureLine: - active: false - ExplicitItLambdaParameter: - active: false - ExpressionBodySyntax: - active: false - includeLineWrapping: false - ForbiddenComment: - active: true - values: 'TODO:,FIXME:,STOPSHIP:' - ForbiddenImport: - active: false - imports: '' - ForbiddenVoid: - active: false - ignoreOverridden: false - ignoreUsageInGenerics: false - FunctionOnlyReturningConstant: - active: false - ignoreOverridableFunction: true - excludedFunctions: 'describeContents' - LibraryCodeMustSpecifyReturnType: - active: false - LoopWithTooManyJumpStatements: - active: false - maxJumpCount: 1 - MagicNumber: - active: true - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - ignoreNumbers: '-1,0,1,2' - ignoreHashCodeFunction: true - ignorePropertyDeclaration: false - ignoreConstantDeclaration: true - ignoreCompanionObjectPropertyDeclaration: true - ignoreAnnotation: false - ignoreNamedArgument: true - ignoreEnums: false - ignoreRanges: false - MandatoryBracesIfStatements: - active: false - MaxLineLength: - active: true - maxLineLength: 120 - excludePackageStatements: true - excludeImportStatements: true - excludeCommentStatements: false - MayBeConst: - active: false - ModifierOrder: - active: true - NestedClassesVisibility: - active: false - NewLineAtEndOfFile: - active: true - NoTabs: - active: false - OptionalAbstractKeyword: - active: true - OptionalUnit: - active: false - OptionalWhenBraces: - active: false - PreferToOverPairSyntax: - active: false - ProtectedMemberInFinalClass: - active: false - RedundantVisibilityModifierRule: - active: false - ReturnCount: - active: true - max: 2 - excludedFunctions: "equals" - excludeLabeled: false - excludeReturnFromLambda: true - SafeCast: - active: true - SerialVersionUIDInSerializableClass: - active: false - SpacingBetweenPackageAndImports: - active: false - ThrowsCount: - active: true - max: 2 - TrailingWhitespace: - active: false - UnderscoresInNumericLiterals: - active: false - acceptableDecimalLength: 5 - UnnecessaryAbstractClass: - active: false - excludeAnnotatedClasses: "dagger.Module" - UnnecessaryApply: - active: false - UnnecessaryInheritance: - active: false - UnnecessaryLet: - active: false - UnnecessaryParentheses: - active: false - UntilInsteadOfRangeTo: - active: false - UnusedImports: - active: false - UnusedPrivateClass: - active: false - UnusedPrivateMember: - active: false - allowedNames: "(_|ignored|expected|serialVersionUID)" - UseCheckOrError: - active: false - UseDataClass: - active: false - excludeAnnotatedClasses: "" - UseRequire: - active: false - UselessCallOnNotNull: - active: false - UtilityClassWithPublicConstructor: - active: false - VarCouldBeVal: - active: false - WildcardImport: - active: true - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - excludeImports: 'java.util.*,kotlinx.android.synthetic.*' diff --git a/config/dokka/packages.md b/config/dokka/packages.md index 688738d..0183a6f 100644 --- a/config/dokka/packages.md +++ b/config/dokka/packages.md @@ -2,8 +2,7 @@ [Akismet for Kotlin/Java](https://github.com/ethauvin/akismet-kotlin), a client library for accessing the [Automattic Kismet](https://www.akismet.com/) (Akismet) spam comments filtering service. -# package net.thauvin.erik.akismet +# Package net.thauvin.erik.akismet A Kotlin/Java library for accessing the Akismet service. - diff --git a/detekt-baseline.xml b/detekt-baseline.xml deleted file mode 100644 index 4af77c9..0000000 --- a/detekt-baseline.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - ComplexMethod:Akismet.kt$Akismet$ @JvmOverloads fun executeMethod(apiUrl: HttpUrl?, formBody: FormBody, trueOnError: Boolean = false): Boolean - ComplexMethod:Akismet.kt$Akismet$private fun buildFormBody(comment: AkismetComment): FormBody - ComplexMethod:AkismetComment.kt$AkismetComment$ @Suppress("DuplicatedCode") override fun equals(other: Any?): Boolean - MagicNumber:Akismet.kt$Akismet$12 - MagicNumber:Akismet.kt$Akismet.<no name provided>$8 - MaxLineLength:Akismet.kt$Akismet$/** * 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. * * Read more about this feature in this * [Akismet blog post](https://blog.akismet.com/2014/04/23/theres-a-ninja-in-your-akismet/). * * @see [Akismet.isDiscard] */ @Suppress("MemberVisibilityCanBePrivate") var proTip: String = "" private set - NestedBlockDepth:Akismet.kt$Akismet$ @JvmOverloads fun executeMethod(apiUrl: HttpUrl?, formBody: FormBody, trueOnError: Boolean = false): Boolean - NestedBlockDepth:AkismetTest.kt$fun getKey(key: String): String - ReturnCount:Akismet.kt$Akismet$ @JvmOverloads fun executeMethod(apiUrl: HttpUrl?, formBody: FormBody, trueOnError: Boolean = false): Boolean - TooManyFunctions:Akismet.kt$Akismet - - 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 new file mode 100644 index 0000000..11d8349 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-akismet-comment.html @@ -0,0 +1,80 @@ + + + + + AkismetComment + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

AkismetComment

+
+
constructor(request: HttpServletRequest)(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.

+
+ +
+
+
+ + 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 new file mode 100644 index 0000000..fb1d46f --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-a-d-m-i-n_-r-o-l-e.html @@ -0,0 +1,80 @@ + + + + + ADMIN_ROLE + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

ADMIN_ROLE

+
+

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 new file mode 100644 index 0000000..6c48b56 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-b-l-o-g_-p-o-s-t.html @@ -0,0 +1,80 @@ + + + + + TYPE_BLOG_POST + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

TYPE_BLOG_POST

+
+

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 new file mode 100644 index 0000000..f4812cc --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-c-o-m-m-e-n-t.html @@ -0,0 +1,80 @@ + + + + + TYPE_COMMENT + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

TYPE_COMMENT

+
+

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 new file mode 100644 index 0000000..8fae3a3 --- /dev/null +++ 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 @@ -0,0 +1,80 @@ + + + + + TYPE_CONTACT_FORM + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

TYPE_CONTACT_FORM

+
+

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 new file mode 100644 index 0000000..410c349 --- /dev/null +++ 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 @@ -0,0 +1,80 @@ + + + + + TYPE_FORUM_POST + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

TYPE_FORUM_POST

+
+

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 new file mode 100644 index 0000000..b495a44 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-m-e-s-s-a-g-e.html @@ -0,0 +1,80 @@ + + + + + TYPE_MESSAGE + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

TYPE_MESSAGE

+
+

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 new file mode 100644 index 0000000..8da9d4c --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-p-i-n-g-b-a-c-k.html @@ -0,0 +1,80 @@ + + + + + TYPE_PINGBACK + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

TYPE_PINGBACK

+
+

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 new file mode 100644 index 0000000..f2fec4a --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-r-e-p-l-y.html @@ -0,0 +1,80 @@ + + + + + TYPE_REPLY + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

TYPE_REPLY

+
+

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 new file mode 100644 index 0000000..c665a02 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-s-i-g-n-u-p.html @@ -0,0 +1,80 @@ + + + + + TYPE_SIGNUP + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

TYPE_SIGNUP

+
+

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 new file mode 100644 index 0000000..945d496 --- /dev/null +++ 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 @@ -0,0 +1,80 @@ + + + + + TYPE_TRACKBACK + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

TYPE_TRACKBACK

+
+

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 new file mode 100644 index 0000000..a042273 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-t-y-p-e_-t-w-e-e-t.html @@ -0,0 +1,80 @@ + + + + + TYPE_TWEET + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

TYPE_TWEET

+
+

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 new file mode 100644 index 0000000..7c4d295 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/index.html @@ -0,0 +1,104 @@ + + + + + Companion + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Companion

+ +
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
const val ADMIN_ROLE: String

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

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + 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 new file mode 100644 index 0000000..42fcc4e --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/author-email.html @@ -0,0 +1,80 @@ + + + + + authorEmail + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

authorEmail

+
+

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 new file mode 100644 index 0000000..3504120 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/author-url.html @@ -0,0 +1,80 @@ + + + + + authorUrl + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

authorUrl

+
+

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 new file mode 100644 index 0000000..ded74c2 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/author.html @@ -0,0 +1,80 @@ + + + + + author + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

author

+
+

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 new file mode 100644 index 0000000..4041d4c --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/blog-charset.html @@ -0,0 +1,80 @@ + + + + + blogCharset + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

blogCharset

+
+

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 new file mode 100644 index 0000000..0c95d14 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/blog-lang.html @@ -0,0 +1,80 @@ + + + + + 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/-akismet-comment/content.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/content.html new file mode 100644 index 0000000..93ebd83 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/content.html @@ -0,0 +1,80 @@ + + + + + content + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

content

+
+

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 new file mode 100644 index 0000000..d6d0129 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/date-gmt.html @@ -0,0 +1,80 @@ + + + + + dateGmt + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

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

+
+ +
+
+
+ + 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 new file mode 100644 index 0000000..5b07d23 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/equals.html @@ -0,0 +1,80 @@ + + + + + equals + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

equals

+
+
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 new file mode 100644 index 0000000..0da7001 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/hash-code.html @@ -0,0 +1,80 @@ + + + + + hashCode + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

hashCode

+
+
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 new file mode 100644 index 0000000..1b9d9dd --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/index.html @@ -0,0 +1,446 @@ + + + + + AkismetComment + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

AkismetComment

+
@Serializable
open class AkismetComment(val userIp: String, val userAgent: String)(source)

A comment to send to Akismet.

Most everything is optional. 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.

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.

+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
constructor(request: HttpServletRequest)

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.

+
+
+
+
+
+
+
+

Types

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
object Companion
+
+
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+

Name submitted with the comment.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Email address submitted with the comment.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

URL submitted with comment.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

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
+
+
+
+

The content that was submitted.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

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

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

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

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

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

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

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
+
+
+
+

The content of the referer header should be set here.

+
+
+
+
+ +
+
+
+ + +
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
+
+
+
+

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

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+ +
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+ +
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

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

+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
open operator override fun equals(other: Any?): Boolean

Indicates whether some other object is equal to this one.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
open override fun hashCode(): Int

Returns a hash code value for the object.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
fun toJson(): String

Returns a JSON representation of the comment.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
open override fun toString(): String

Returns a JSON representation of the comment.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + 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 new file mode 100644 index 0000000..84ee583 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/is-test.html @@ -0,0 +1,80 @@ + + + + + isTest + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

isTest

+
+

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 new file mode 100644 index 0000000..726e840 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/permalink.html @@ -0,0 +1,80 @@ + + + + + permalink + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

permalink

+
+

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 new file mode 100644 index 0000000..938165e --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/post-modified-gmt.html @@ -0,0 +1,80 @@ + + + + + postModifiedGmt + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

postModifiedGmt

+
+

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 new file mode 100644 index 0000000..843ff0a --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/recheck-reason.html @@ -0,0 +1,80 @@ + + + + + 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/-akismet-comment/referrer.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/referrer.html new file mode 100644 index 0000000..1f98cd5 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/referrer.html @@ -0,0 +1,80 @@ + + + + + referrer + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

referrer

+
+

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 new file mode 100644 index 0000000..7a7315a --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/server-env.html @@ -0,0 +1,80 @@ + + + + + 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/-akismet-comment/to-json.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/to-json.html new file mode 100644 index 0000000..87ffa29 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/to-json.html @@ -0,0 +1,80 @@ + + + + + toJson + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

toJson

+
+

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 new file mode 100644 index 0000000..8f8bc1b --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/to-string.html @@ -0,0 +1,80 @@ + + + + + toString + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

toString

+
+
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 new file mode 100644 index 0000000..3756d68 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/type.html @@ -0,0 +1,80 @@ + + + + + type + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

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.

+
+ +
+
+
+ + 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 new file mode 100644 index 0000000..53f9d4d --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/user-agent.html @@ -0,0 +1,80 @@ + + + + + userAgent + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

userAgent

+
+

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 new file mode 100644 index 0000000..45255c9 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/user-ip.html @@ -0,0 +1,80 @@ + + + + + userIp + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

userIp

+
+

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 new file mode 100644 index 0000000..0859ea8 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/user-role.html @@ -0,0 +1,80 @@ + + + + + userRole + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

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.

+
+ +
+
+
+ + diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-akismet.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-akismet.html new file mode 100644 index 0000000..7ce8321 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-akismet.html @@ -0,0 +1,80 @@ + + + + + Akismet + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Akismet

+
+
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 new file mode 100644 index 0000000..0924417 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-companion/date-to-gmt.html @@ -0,0 +1,80 @@ + + + + + dateToGmt + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

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

+
+ +
+
+
+ + 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 new file mode 100644 index 0000000..d877405 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-companion/index.html @@ -0,0 +1,119 @@ + + + + + Companion + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Companion

+ +
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+

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

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

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

(Re)Creates a comment from a JSON string.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + 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 new file mode 100644 index 0000000..ed8f7c5 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-companion/json-comment.html @@ -0,0 +1,80 @@ + + + + + jsonComment + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

jsonComment

+
+

(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 new file mode 100644 index 0000000..84ee7ab --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/app-user-agent.html @@ -0,0 +1,80 @@ + + + + + appUserAgent + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

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.

+
+ +
+
+
+ + diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/blog.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/blog.html new file mode 100644 index 0000000..99d2d9f --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/blog.html @@ -0,0 +1,80 @@ + + + + + blog + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

blog

+
+

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 new file mode 100644 index 0000000..aba5c2e --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/check-comment.html @@ -0,0 +1,80 @@ + + + + + checkComment + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

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.

+
+ +
+
+
+ + 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 new file mode 100644 index 0000000..164d211 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/debug-help.html @@ -0,0 +1,80 @@ + + + + + debugHelp + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

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.

+
+ +
+
+
+ + 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 new file mode 100644 index 0000000..51fd206 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/error-message.html @@ -0,0 +1,80 @@ + + + + + errorMessage + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

errorMessage

+
+

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 new file mode 100644 index 0000000..dc6eb87 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/execute-method.html @@ -0,0 +1,80 @@ + + + + + executeMethod + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

executeMethod

+
+
fun executeMethod(apiUrl: HttpUrl, formBody: FormBody, 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 new file mode 100644 index 0000000..c814e4f --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/http-status-code.html @@ -0,0 +1,80 @@ + + + + + httpStatusCode + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

httpStatusCode

+
+

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 new file mode 100644 index 0000000..91c5041 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/index.html @@ -0,0 +1,371 @@ + + + + + Akismet + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Akismet

+
open class Akismet(apiKey: String)(source)

Provides access to the Akismet API.

+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
constructor(apiKey: String, blog: String)

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

constructor(apiKey: String)

Creates a new instance using the provided Akismet API key.

+
+
+
+
+
+
+
+

Types

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
object Companion
+
+
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+

The application user agent to be sent to Akismet.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

The URL registered with Akismet.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

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

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

The error message.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

The HTTP status code of the last operation.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

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.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Set to true if the API Key has been verified.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

The logger instance.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

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

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

The actual response sent by Akismet from the last operation.

+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
fun checkComment(comment: AkismetComment, trueOnError: Boolean = false): Boolean

Comment Check.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
fun executeMethod(apiUrl: HttpUrl, formBody: FormBody, trueOnError: Boolean = false): Boolean

Executes a call to an Akismet REST API method.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+ +
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Submit Ham. (False Positives)

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Submit Spam. (Missed Spam)

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Key Verification.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + 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 new file mode 100644 index 0000000..79df4f8 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/is-discard.html @@ -0,0 +1,80 @@ + + + + + isDiscard + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

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

+
+ +
+
+
+ + 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 new file mode 100644 index 0000000..5bca9eb --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/is-verified-key.html @@ -0,0 +1,80 @@ + + + + + isVerifiedKey + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

isVerifiedKey

+
+

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 new file mode 100644 index 0000000..fe5dea7 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/logger.html @@ -0,0 +1,80 @@ + + + + + logger + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

logger

+
+

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 new file mode 100644 index 0000000..3e51d23 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/pro-tip.html @@ -0,0 +1,80 @@ + + + + + proTip + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

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

+
+ +
+
+
+ + diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/reset.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/reset.html new file mode 100644 index 0000000..50d9d77 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/reset.html @@ -0,0 +1,80 @@ + + + + + reset + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

reset

+
+ +
+ +
+
+
+ + diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/response.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/response.html new file mode 100644 index 0000000..decd352 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/response.html @@ -0,0 +1,80 @@ + + + + + response + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

response

+
+

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 new file mode 100644 index 0000000..ffe5ab1 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/submit-ham.html @@ -0,0 +1,80 @@ + + + + + submitHam + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

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.

+
+ +
+
+
+ + 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 new file mode 100644 index 0000000..9594d52 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/submit-spam.html @@ -0,0 +1,80 @@ + + + + + submitSpam + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

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.

+
+ +
+
+
+ + 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 new file mode 100644 index 0000000..759cacd --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/verify-key.html @@ -0,0 +1,80 @@ + + + + + verifyKey + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

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

+
+ +
+
+
+ + 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 new file mode 100644 index 0000000..42409f0 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/-builder.html @@ -0,0 +1,80 @@ + + + + + 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 new file mode 100644 index 0000000..b0a3249 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/author-email.html @@ -0,0 +1,80 @@ + + + + + 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 new file mode 100644 index 0000000..4fc1885 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/author-url.html @@ -0,0 +1,80 @@ + + + + + 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 new file mode 100644 index 0000000..b5d6c1f --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/author.html @@ -0,0 +1,80 @@ + + + + + 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 new file mode 100644 index 0000000..79bb7b3 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/blog-charset.html @@ -0,0 +1,80 @@ + + + + + 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 new file mode 100644 index 0000000..efba3c8 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/blog-lang.html @@ -0,0 +1,80 @@ + + + + + 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 new file mode 100644 index 0000000..2caccd8 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/build.html @@ -0,0 +1,80 @@ + + + + + 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 new file mode 100644 index 0000000..5a1ca4b --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/content.html @@ -0,0 +1,80 @@ + + + + + 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 new file mode 100644 index 0000000..5bac02b --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/date-gmt.html @@ -0,0 +1,80 @@ + + + + + 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 new file mode 100644 index 0000000..0657f64 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/index.html @@ -0,0 +1,637 @@ + + + + + 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
+
+
+
+

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 new file mode 100644 index 0000000..8d5b03c --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/is-test.html @@ -0,0 +1,80 @@ + + + + + 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 new file mode 100644 index 0000000..03b6af0 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/permalink.html @@ -0,0 +1,80 @@ + + + + + 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 new file mode 100644 index 0000000..d3e7f69 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/post-modified-gmt.html @@ -0,0 +1,80 @@ + + + + + postModifiedGmt + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

postModifiedGmt

+
+

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 new file mode 100644 index 0000000..e63aeb0 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/recheck-reason.html @@ -0,0 +1,80 @@ + + + + + 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 new file mode 100644 index 0000000..120085b --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/referrer.html @@ -0,0 +1,80 @@ + + + + + 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 new file mode 100644 index 0000000..e6ec6d7 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/server-env.html @@ -0,0 +1,80 @@ + + + + + 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 new file mode 100644 index 0000000..e0bc2f7 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/type.html @@ -0,0 +1,80 @@ + + + + + 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 new file mode 100644 index 0000000..4bdc28f --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/user-agent.html @@ -0,0 +1,80 @@ + + + + + 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 new file mode 100644 index 0000000..8a35616 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/user-ip.html @@ -0,0 +1,80 @@ + + + + + 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 new file mode 100644 index 0000000..8e1095a --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-builder/user-role.html @@ -0,0 +1,80 @@ + + + + + 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 new file mode 100644 index 0000000..92cb19d --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/-comment-config.html @@ -0,0 +1,80 @@ + + + + + CommentConfig + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

CommentConfig

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


constructor(userIp: String, userAgent: String, referrer: String = "", permalink: String = "", type: CommentType = CommentType.NONE, 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 new file mode 100644 index 0000000..0f84c08 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/author-email.html @@ -0,0 +1,80 @@ + + + + + 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 new file mode 100644 index 0000000..333ee15 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/author-url.html @@ -0,0 +1,80 @@ + + + + + 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 new file mode 100644 index 0000000..953e1ec --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/author.html @@ -0,0 +1,80 @@ + + + + + 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 new file mode 100644 index 0000000..08be284 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/blog-charset.html @@ -0,0 +1,80 @@ + + + + + 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 new file mode 100644 index 0000000..2eb0196 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/blog-lang.html @@ -0,0 +1,80 @@ + + + + + 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 new file mode 100644 index 0000000..607cff5 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/content.html @@ -0,0 +1,80 @@ + + + + + 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 new file mode 100644 index 0000000..3ae7ad7 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/date-gmt.html @@ -0,0 +1,80 @@ + + + + + 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 new file mode 100644 index 0000000..2f6d1be --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/index.html @@ -0,0 +1,382 @@ + + + + + CommentConfig + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

CommentConfig

+
class CommentConfigĀ @JvmOverloadsĀ constructor(var userIp: String, var userAgent: String, var referrer: String = "", var permalink: String = "", var type: CommentType = CommentType.NONE, 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: CommentType = CommentType.NONE, 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 new file mode 100644 index 0000000..38be6ab --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/is-test.html @@ -0,0 +1,80 @@ + + + + + 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 new file mode 100644 index 0000000..a4d80d1 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/permalink.html @@ -0,0 +1,80 @@ + + + + + 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 new file mode 100644 index 0000000..d6ea740 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/post-modified-gmt.html @@ -0,0 +1,80 @@ + + + + + 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 new file mode 100644 index 0000000..637a275 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/recheck-reason.html @@ -0,0 +1,80 @@ + + + + + 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 new file mode 100644 index 0000000..21c0d83 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/referrer.html @@ -0,0 +1,80 @@ + + + + + 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 new file mode 100644 index 0000000..8956bbb --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/server-env.html @@ -0,0 +1,80 @@ + + + + + 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 new file mode 100644 index 0000000..6e58405 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/type.html @@ -0,0 +1,80 @@ + + + + + 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 new file mode 100644 index 0000000..d7f041a --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/user-agent.html @@ -0,0 +1,80 @@ + + + + + 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 new file mode 100644 index 0000000..175e7ff --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/user-ip.html @@ -0,0 +1,80 @@ + + + + + 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 new file mode 100644 index 0000000..32f14b6 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-config/user-role.html @@ -0,0 +1,80 @@ + + + + + userRole + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

userRole

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

CommentType

+
+
constructor(value: String)(source)
+
+ +
+
+
+ + diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-b-l-o-g_-p-o-s-t.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-b-l-o-g_-p-o-s-t.html new file mode 100644 index 0000000..4a5d2f0 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-b-l-o-g_-p-o-s-t.html @@ -0,0 +1,80 @@ + + + + + BLOG_POST + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

BLOG_POST

+
+ +
+ +
+
+
+ + diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-c-o-m-m-e-n-t.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-c-o-m-m-e-n-t.html new file mode 100644 index 0000000..cb2eb0d --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-c-o-m-m-e-n-t.html @@ -0,0 +1,80 @@ + + + + + COMMENT + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

COMMENT

+
+

A blog comment.

+
+ +
+
+
+ + diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-c-o-n-t-a-c-t_-f-o-r-m.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-c-o-n-t-a-c-t_-f-o-r-m.html new file mode 100644 index 0000000..26881e1 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-c-o-n-t-a-c-t_-f-o-r-m.html @@ -0,0 +1,80 @@ + + + + + CONTACT_FORM + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

CONTACT_FORM

+
+

A contact form or feedback form submission.

+
+ +
+
+
+ + diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-f-o-r-u-m_-p-o-s-t.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-f-o-r-u-m_-p-o-s-t.html new file mode 100644 index 0000000..fb57de8 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-f-o-r-u-m_-p-o-s-t.html @@ -0,0 +1,80 @@ + + + + + FORUM_POST + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

FORUM_POST

+
+

A top-level forum post.

+
+ +
+
+
+ + diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-m-e-s-s-a-g-e.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-m-e-s-s-a-g-e.html new file mode 100644 index 0000000..8865a1c --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-m-e-s-s-a-g-e.html @@ -0,0 +1,80 @@ + + + + + MESSAGE + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

MESSAGE

+
+

A message sent between just a few users.

+
+ +
+
+
+ + diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-n-o-n-e.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-n-o-n-e.html new file mode 100644 index 0000000..b38dedd --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-n-o-n-e.html @@ -0,0 +1,80 @@ + + + + + NONE + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

NONE

+
+

Undefined type.

+
+ +
+
+
+ + diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-p-i-n-g-b-a-c-k.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-p-i-n-g-b-a-c-k.html new file mode 100644 index 0000000..acd5dba --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-p-i-n-g-b-a-c-k.html @@ -0,0 +1,80 @@ + + + + + PINGBACK + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

PINGBACK

+
+ +
+ +
+
+
+ + diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-r-e-p-l-y.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-r-e-p-l-y.html new file mode 100644 index 0000000..e922c1e --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-r-e-p-l-y.html @@ -0,0 +1,80 @@ + + + + + REPLY + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

REPLY

+
+

A reply to a top-level forum post.

+
+ +
+
+
+ + diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-s-i-g-n-u-p.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-s-i-g-n-u-p.html new file mode 100644 index 0000000..582c4e7 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-s-i-g-n-u-p.html @@ -0,0 +1,80 @@ + + + + + SIGNUP + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

SIGNUP

+
+

A new user account.

+
+ +
+
+
+ + diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-t-r-a-c-k-b-a-c-k.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-t-r-a-c-k-b-a-c-k.html new file mode 100644 index 0000000..fb98b3d --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-t-r-a-c-k-b-a-c-k.html @@ -0,0 +1,80 @@ + + + + + TRACKBACK + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

TRACKBACK

+
+ +
+ +
+
+
+ + diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-t-w-e-e-t.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-t-w-e-e-t.html new file mode 100644 index 0000000..7388be1 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-t-w-e-e-t.html @@ -0,0 +1,80 @@ + + + + + TWEET + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

TWEET

+
+

A Twitter message.

+
+ +
+
+
+ + diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/index.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/index.html new file mode 100644 index 0000000..7a08dfa --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/index.html @@ -0,0 +1,254 @@ + + + + + Companion + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Companion

+ +
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+

A blog post.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

A blog comment.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

A contact form or feedback form submission.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

A top-level forum post.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

A message sent between just a few users.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Undefined type.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

A pingback.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

A reply to a top-level forum post.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

A new user account.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

A trackback.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

A Twitter message.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/index.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/index.html new file mode 100644 index 0000000..40c11a5 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/index.html @@ -0,0 +1,142 @@ + + + + + CommentType + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

CommentType

+
@Serializable
data class CommentType(var value: String)(source)

Defines the comment types.

+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
constructor(value: String)
+
+
+
+
+
+
+
+

Types

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
object Companion
+
+
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+ +
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/value.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/value.html new file mode 100644 index 0000000..ea7ae3d --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/value.html @@ -0,0 +1,80 @@ + + + + + value + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

value

+
+ +
+ +
+
+
+ + diff --git a/docs/-akismet -kotlin/net.thauvin.erik.akismet/index.html b/docs/-akismet -kotlin/net.thauvin.erik.akismet/index.html new file mode 100644 index 0000000..d28b509 --- /dev/null +++ b/docs/-akismet -kotlin/net.thauvin.erik.akismet/index.html @@ -0,0 +1,149 @@ + + + + + net.thauvin.erik.akismet + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Package-level declarations

+

A Kotlin/Java library for accessing the Akismet service.

+
+
+
+
+
+

Types

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
open class Akismet(apiKey: String)

Provides access to the Akismet API.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
@Serializable
open class AkismetComment(val userIp: String, val userAgent: String)

A comment to send to Akismet.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
class CommentConfigĀ @JvmOverloadsĀ constructor(var userIp: String, var userAgent: String, var referrer: String = "", var permalink: String = "", var type: CommentType = CommentType.NONE, 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.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
@Serializable
data class CommentType(var value: String)

Defines the comment types.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/docs/-akismet -kotlin/package-list b/docs/-akismet -kotlin/package-list new file mode 100644 index 0000000..5372bf1 --- /dev/null +++ b/docs/-akismet -kotlin/package-list @@ -0,0 +1,127 @@ +$dokka.format:html-v1 +$dokka.linkExtension:html +$dokka.location:net.thauvin.erik.akismet////PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/index.html +$dokka.location:net.thauvin.erik.akismet/Akismet.Companion///PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-companion/index.html +$dokka.location:net.thauvin.erik.akismet/Akismet.Companion/dateToGmt/#java.time.LocalDateTime/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-companion/date-to-gmt.html +$dokka.location:net.thauvin.erik.akismet/Akismet.Companion/dateToGmt/#java.util.Date/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-companion/date-to-gmt.html +$dokka.location:net.thauvin.erik.akismet/Akismet.Companion/jsonComment/#kotlin.String/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-companion/json-comment.html +$dokka.location:net.thauvin.erik.akismet/Akismet///PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/index.html +$dokka.location:net.thauvin.erik.akismet/Akismet/Akismet/#kotlin.String#kotlin.String/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-akismet.html +$dokka.location:net.thauvin.erik.akismet/Akismet/Akismet/#kotlin.String/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/-akismet.html +$dokka.location:net.thauvin.erik.akismet/Akismet/appUserAgent/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/app-user-agent.html +$dokka.location:net.thauvin.erik.akismet/Akismet/blog/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/blog.html +$dokka.location:net.thauvin.erik.akismet/Akismet/checkComment/#net.thauvin.erik.akismet.AkismetComment#kotlin.Boolean/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/check-comment.html +$dokka.location:net.thauvin.erik.akismet/Akismet/debugHelp/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/debug-help.html +$dokka.location:net.thauvin.erik.akismet/Akismet/errorMessage/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/error-message.html +$dokka.location:net.thauvin.erik.akismet/Akismet/executeMethod/#okhttp3.HttpUrl#okhttp3.FormBody#kotlin.Boolean/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/execute-method.html +$dokka.location:net.thauvin.erik.akismet/Akismet/httpStatusCode/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/http-status-code.html +$dokka.location:net.thauvin.erik.akismet/Akismet/isDiscard/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/is-discard.html +$dokka.location:net.thauvin.erik.akismet/Akismet/isVerifiedKey/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/is-verified-key.html +$dokka.location:net.thauvin.erik.akismet/Akismet/logger/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/logger.html +$dokka.location:net.thauvin.erik.akismet/Akismet/proTip/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/pro-tip.html +$dokka.location:net.thauvin.erik.akismet/Akismet/reset/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/reset.html +$dokka.location:net.thauvin.erik.akismet/Akismet/response/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/response.html +$dokka.location:net.thauvin.erik.akismet/Akismet/submitHam/#net.thauvin.erik.akismet.AkismetComment/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/submit-ham.html +$dokka.location:net.thauvin.erik.akismet/Akismet/submitSpam/#net.thauvin.erik.akismet.AkismetComment/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/submit-spam.html +$dokka.location:net.thauvin.erik.akismet/Akismet/verifyKey/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet/verify-key.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment.Companion///PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/index.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment.Companion/ADMIN_ROLE/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/-companion/-a-d-m-i-n_-r-o-l-e.html +$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/#jakarta.servlet.http.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 +$dokka.location:net.thauvin.erik.akismet/AkismetComment/blogCharset/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/blog-charset.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment/blogLang/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/blog-lang.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment/content/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/content.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment/dateGmt/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/date-gmt.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment/equals/#kotlin.Any?/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/equals.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment/hashCode/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/hash-code.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment/isTest/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/is-test.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment/permalink/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/permalink.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment/postModifiedGmt/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/post-modified-gmt.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment/recheckReason/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/recheck-reason.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment/referrer/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/referrer.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment/serverEnv/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/server-env.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment/toJson/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/to-json.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment/toString/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/to-string.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment/type/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-akismet-comment/type.html +$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/#net.thauvin.erik.akismet.CommentType/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#net.thauvin.erik.akismet.CommentType#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 +$dokka.location:net.thauvin.erik.akismet/CommentType.Companion///PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/index.html +$dokka.location:net.thauvin.erik.akismet/CommentType.Companion/BLOG_POST/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-b-l-o-g_-p-o-s-t.html +$dokka.location:net.thauvin.erik.akismet/CommentType.Companion/COMMENT/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-c-o-m-m-e-n-t.html +$dokka.location:net.thauvin.erik.akismet/CommentType.Companion/CONTACT_FORM/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-c-o-n-t-a-c-t_-f-o-r-m.html +$dokka.location:net.thauvin.erik.akismet/CommentType.Companion/FORUM_POST/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-f-o-r-u-m_-p-o-s-t.html +$dokka.location:net.thauvin.erik.akismet/CommentType.Companion/MESSAGE/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-m-e-s-s-a-g-e.html +$dokka.location:net.thauvin.erik.akismet/CommentType.Companion/NONE/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-n-o-n-e.html +$dokka.location:net.thauvin.erik.akismet/CommentType.Companion/PINGBACK/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-p-i-n-g-b-a-c-k.html +$dokka.location:net.thauvin.erik.akismet/CommentType.Companion/REPLY/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-r-e-p-l-y.html +$dokka.location:net.thauvin.erik.akismet/CommentType.Companion/SIGNUP/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-s-i-g-n-u-p.html +$dokka.location:net.thauvin.erik.akismet/CommentType.Companion/TRACKBACK/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-t-r-a-c-k-b-a-c-k.html +$dokka.location:net.thauvin.erik.akismet/CommentType.Companion/TWEET/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-companion/-t-w-e-e-t.html +$dokka.location:net.thauvin.erik.akismet/CommentType///PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/index.html +$dokka.location:net.thauvin.erik.akismet/CommentType/CommentType/#kotlin.String/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/-comment-type.html +$dokka.location:net.thauvin.erik.akismet/CommentType/value/#/PointingToDeclaration/-akismet -kotlin/net.thauvin.erik.akismet/-comment-type/value.html +net.thauvin.erik.akismet + diff --git a/docs/alltypes/index.md b/docs/alltypes/index.md deleted file mode 100644 index 71262c1..0000000 --- a/docs/alltypes/index.md +++ /dev/null @@ -1,22 +0,0 @@ - - -[Akismet for Kotlin/Java](https://github.com/ethauvin/akismet-kotlin), a client library for accessing the [Automattic Kismet](https://www.akismet.com/) (Akismet) spam comments filtering service. - -### All Types - -| Name | Summary | -|---|---| -| - -##### [net.thauvin.erik.akismet.Akismet](../net.thauvin.erik.akismet/-akismet/index.md) - -Provides access to the [Akismet API](https://akismet.com/development/api/). - - -| - -##### [net.thauvin.erik.akismet.AkismetComment](../net.thauvin.erik.akismet/-akismet-comment/index.md) - -A comment to send to Akismet. - - diff --git a/docs/images/anchor-copy-button.svg b/docs/images/anchor-copy-button.svg new file mode 100644 index 0000000..19c1fa3 --- /dev/null +++ b/docs/images/anchor-copy-button.svg @@ -0,0 +1,8 @@ + + + + + + diff --git a/docs/images/arrow_down.svg b/docs/images/arrow_down.svg new file mode 100644 index 0000000..639aaf1 --- /dev/null +++ b/docs/images/arrow_down.svg @@ -0,0 +1,7 @@ + + + + + diff --git a/docs/images/burger.svg b/docs/images/burger.svg new file mode 100644 index 0000000..fcca732 --- /dev/null +++ b/docs/images/burger.svg @@ -0,0 +1,9 @@ + + + + + + + diff --git a/docs/images/copy-icon.svg b/docs/images/copy-icon.svg new file mode 100644 index 0000000..2cb02ec --- /dev/null +++ b/docs/images/copy-icon.svg @@ -0,0 +1,7 @@ + + + + + diff --git a/docs/images/copy-successful-icon.svg b/docs/images/copy-successful-icon.svg new file mode 100644 index 0000000..c4b9538 --- /dev/null +++ b/docs/images/copy-successful-icon.svg @@ -0,0 +1,7 @@ + + + + + diff --git a/docs/images/footer-go-to-link.svg b/docs/images/footer-go-to-link.svg new file mode 100644 index 0000000..a87add7 --- /dev/null +++ b/docs/images/footer-go-to-link.svg @@ -0,0 +1,7 @@ + + + + + diff --git a/docs/images/go-to-top-icon.svg b/docs/images/go-to-top-icon.svg new file mode 100644 index 0000000..abc3d1c --- /dev/null +++ b/docs/images/go-to-top-icon.svg @@ -0,0 +1,8 @@ + + + + + + diff --git a/docs/images/homepage.svg b/docs/images/homepage.svg new file mode 100644 index 0000000..e3c83b1 --- /dev/null +++ b/docs/images/homepage.svg @@ -0,0 +1,3 @@ + + + diff --git a/docs/images/logo-icon.svg b/docs/images/logo-icon.svg new file mode 100644 index 0000000..e42f957 --- /dev/null +++ b/docs/images/logo-icon.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + diff --git a/docs/images/nav-icons/abstract-class-kotlin.svg b/docs/images/nav-icons/abstract-class-kotlin.svg new file mode 100644 index 0000000..19d6148 --- /dev/null +++ b/docs/images/nav-icons/abstract-class-kotlin.svg @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/images/nav-icons/abstract-class.svg b/docs/images/nav-icons/abstract-class.svg new file mode 100644 index 0000000..6018203 --- /dev/null +++ b/docs/images/nav-icons/abstract-class.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/docs/images/nav-icons/annotation-kotlin.svg b/docs/images/nav-icons/annotation-kotlin.svg new file mode 100644 index 0000000..b90f508 --- /dev/null +++ b/docs/images/nav-icons/annotation-kotlin.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + diff --git a/docs/images/nav-icons/annotation.svg b/docs/images/nav-icons/annotation.svg new file mode 100644 index 0000000..b80c54b --- /dev/null +++ b/docs/images/nav-icons/annotation.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/docs/images/nav-icons/class-kotlin.svg b/docs/images/nav-icons/class-kotlin.svg new file mode 100644 index 0000000..797a242 --- /dev/null +++ b/docs/images/nav-icons/class-kotlin.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + diff --git a/docs/images/nav-icons/class.svg b/docs/images/nav-icons/class.svg new file mode 100644 index 0000000..3f1ad16 --- /dev/null +++ b/docs/images/nav-icons/class.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/docs/images/nav-icons/enum-kotlin.svg b/docs/images/nav-icons/enum-kotlin.svg new file mode 100644 index 0000000..775a7cc --- /dev/null +++ b/docs/images/nav-icons/enum-kotlin.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + diff --git a/docs/images/nav-icons/enum.svg b/docs/images/nav-icons/enum.svg new file mode 100644 index 0000000..fa7f247 --- /dev/null +++ b/docs/images/nav-icons/enum.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/docs/images/nav-icons/exception-class.svg b/docs/images/nav-icons/exception-class.svg new file mode 100644 index 0000000..c0b2bde --- /dev/null +++ b/docs/images/nav-icons/exception-class.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/docs/images/nav-icons/field-value.svg b/docs/images/nav-icons/field-value.svg new file mode 100644 index 0000000..2771ee5 --- /dev/null +++ b/docs/images/nav-icons/field-value.svg @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/docs/images/nav-icons/field-variable.svg b/docs/images/nav-icons/field-variable.svg new file mode 100644 index 0000000..e2d2bbd --- /dev/null +++ b/docs/images/nav-icons/field-variable.svg @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/docs/images/nav-icons/function.svg b/docs/images/nav-icons/function.svg new file mode 100644 index 0000000..f0da64a --- /dev/null +++ b/docs/images/nav-icons/function.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/docs/images/nav-icons/interface-kotlin.svg b/docs/images/nav-icons/interface-kotlin.svg new file mode 100644 index 0000000..5e16326 --- /dev/null +++ b/docs/images/nav-icons/interface-kotlin.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + diff --git a/docs/images/nav-icons/interface.svg b/docs/images/nav-icons/interface.svg new file mode 100644 index 0000000..32063ba --- /dev/null +++ b/docs/images/nav-icons/interface.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/docs/images/nav-icons/object.svg b/docs/images/nav-icons/object.svg new file mode 100644 index 0000000..31f0ee3 --- /dev/null +++ b/docs/images/nav-icons/object.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + diff --git a/docs/images/nav-icons/typealias-kotlin.svg b/docs/images/nav-icons/typealias-kotlin.svg new file mode 100644 index 0000000..f4bb238 --- /dev/null +++ b/docs/images/nav-icons/typealias-kotlin.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + diff --git a/docs/images/theme-toggle.svg b/docs/images/theme-toggle.svg new file mode 100644 index 0000000..df86202 --- /dev/null +++ b/docs/images/theme-toggle.svg @@ -0,0 +1,7 @@ + + + + + diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..798d096 --- /dev/null +++ b/docs/index.html @@ -0,0 +1,101 @@ + + + + + Akismet Kotlin + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Akismet Kotlin

+
+

Packages

+
+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+ +
+
+
+
+

A Kotlin/Java library for accessing the Akismet service.

+
+
+
+
+
+ +
+
+
+ + diff --git a/docs/index.md b/docs/index.md deleted file mode 100644 index e0b1b1e..0000000 --- a/docs/index.md +++ /dev/null @@ -1,13 +0,0 @@ -[docs](./index.md) - -[Akismet for Kotlin/Java](https://github.com/ethauvin/akismet-kotlin), a client library for accessing the [Automattic Kismet](https://www.akismet.com/) (Akismet) spam comments filtering service. - -### Packages - -| Name | Summary | -|---|---| -| [net.thauvin.erik.akismet](net.thauvin.erik.akismet/index.md) | A Kotlin/Java library for accessing the Akismet service. | - -### Index - -[All Types](alltypes/index.md) \ No newline at end of file diff --git a/docs/navigation.html b/docs/navigation.html new file mode 100644 index 0000000..8d2ea7d --- /dev/null +++ b/docs/navigation.html @@ -0,0 +1,31 @@ + + diff --git a/docs/net.thauvin.erik.akismet/-akismet-comment/-a-d-m-i-n_-r-o-l-e.md b/docs/net.thauvin.erik.akismet/-akismet-comment/-a-d-m-i-n_-r-o-l-e.md deleted file mode 100644 index a567a6d..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet-comment/-a-d-m-i-n_-r-o-l-e.md +++ /dev/null @@ -1,8 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [AkismetComment](index.md) / [ADMIN_ROLE](./-a-d-m-i-n_-r-o-l-e.md) - -# ADMIN_ROLE - -`const val ADMIN_ROLE: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/AkismetComment.kt#L93) - -Administrator role. If used, Akismet will always return false. - diff --git a/docs/net.thauvin.erik.akismet/-akismet-comment/-init-.md b/docs/net.thauvin.erik.akismet/-akismet-comment/-init-.md deleted file mode 100644 index 82e489b..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet-comment/-init-.md +++ /dev/null @@ -1,36 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [AkismetComment](index.md) / [<init>](./-init-.md) - -# <init> - -`AkismetComment(request: `[`HttpServletRequest`](https://javaee.github.io/javaee-spec/javadocs/javax/servlet/http/HttpServletRequest.html)`)` - -Create an Akismet comment extracting the [userIp](user-ip.md), [userAgent](user-agent.md), [referrer](referrer.md) and [serverEnv](server-env.md) environment variables -from a Servlet request. - -See the -[Akismet API](https://akismet.com/development/api/#comment-check) for more details. - -**See Also** - -[serverEnv](server-env.md) - -`AkismetComment(userIp: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, userAgent: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` - -Create an Akismet comment instance. - -See the [Akismet API](https://akismet.com/development/api/#comment-check) for more details. - -### Parameters - -`userIp` - IP address of the comment submitter. - -`userAgent` - User agent string of the web browser submitting the comment. - -**Constructor** - -Create an Akismet comment instance. - - - -See the [Akismet API](https://akismet.com/development/api/#comment-check) for more details. - diff --git a/docs/net.thauvin.erik.akismet/-akismet-comment/-t-y-p-e_-b-l-o-g_-p-o-s-t.md b/docs/net.thauvin.erik.akismet/-akismet-comment/-t-y-p-e_-b-l-o-g_-p-o-s-t.md deleted file mode 100644 index b93f825..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet-comment/-t-y-p-e_-b-l-o-g_-p-o-s-t.md +++ /dev/null @@ -1,8 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [AkismetComment](index.md) / [TYPE_BLOG_POST](./-t-y-p-e_-b-l-o-g_-p-o-s-t.md) - -# TYPE_BLOG_POST - -`const val TYPE_BLOG_POST: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/AkismetComment.kt#L72) - -A blog post. - diff --git a/docs/net.thauvin.erik.akismet/-akismet-comment/-t-y-p-e_-c-o-m-m-e-n-t.md b/docs/net.thauvin.erik.akismet/-akismet-comment/-t-y-p-e_-c-o-m-m-e-n-t.md deleted file mode 100644 index 84c1dc5..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet-comment/-t-y-p-e_-c-o-m-m-e-n-t.md +++ /dev/null @@ -1,8 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [AkismetComment](index.md) / [TYPE_COMMENT](./-t-y-p-e_-c-o-m-m-e-n-t.md) - -# TYPE_COMMENT - -`const val TYPE_COMMENT: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/AkismetComment.kt#L63) - -A blog comment. - diff --git a/docs/net.thauvin.erik.akismet/-akismet-comment/-t-y-p-e_-c-o-n-t-a-c-t_-f-o-r-m.md b/docs/net.thauvin.erik.akismet/-akismet-comment/-t-y-p-e_-c-o-n-t-a-c-t_-f-o-r-m.md deleted file mode 100644 index 3b10983..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet-comment/-t-y-p-e_-c-o-n-t-a-c-t_-f-o-r-m.md +++ /dev/null @@ -1,8 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [AkismetComment](index.md) / [TYPE_CONTACT_FORM](./-t-y-p-e_-c-o-n-t-a-c-t_-f-o-r-m.md) - -# TYPE_CONTACT_FORM - -`const val TYPE_CONTACT_FORM: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/AkismetComment.kt#L75) - -A contact form or feedback form submission. - diff --git a/docs/net.thauvin.erik.akismet/-akismet-comment/-t-y-p-e_-f-o-r-u-m_-p-o-s-t.md b/docs/net.thauvin.erik.akismet/-akismet-comment/-t-y-p-e_-f-o-r-u-m_-p-o-s-t.md deleted file mode 100644 index 13f7b30..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet-comment/-t-y-p-e_-f-o-r-u-m_-p-o-s-t.md +++ /dev/null @@ -1,8 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [AkismetComment](index.md) / [TYPE_FORUM_POST](./-t-y-p-e_-f-o-r-u-m_-p-o-s-t.md) - -# TYPE_FORUM_POST - -`const val TYPE_FORUM_POST: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/AkismetComment.kt#L66) - -A top-level forum post. - diff --git a/docs/net.thauvin.erik.akismet/-akismet-comment/-t-y-p-e_-m-e-s-s-a-g-e.md b/docs/net.thauvin.erik.akismet/-akismet-comment/-t-y-p-e_-m-e-s-s-a-g-e.md deleted file mode 100644 index 120bd77..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet-comment/-t-y-p-e_-m-e-s-s-a-g-e.md +++ /dev/null @@ -1,8 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [AkismetComment](index.md) / [TYPE_MESSAGE](./-t-y-p-e_-m-e-s-s-a-g-e.md) - -# TYPE_MESSAGE - -`const val TYPE_MESSAGE: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/AkismetComment.kt#L81) - -A message sent between just a few users. - diff --git a/docs/net.thauvin.erik.akismet/-akismet-comment/-t-y-p-e_-p-i-n-g-b-a-c-k.md b/docs/net.thauvin.erik.akismet/-akismet-comment/-t-y-p-e_-p-i-n-g-b-a-c-k.md deleted file mode 100644 index a4fed1b..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet-comment/-t-y-p-e_-p-i-n-g-b-a-c-k.md +++ /dev/null @@ -1,8 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [AkismetComment](index.md) / [TYPE_PINGBACK](./-t-y-p-e_-p-i-n-g-b-a-c-k.md) - -# TYPE_PINGBACK - -`const val TYPE_PINGBACK: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/AkismetComment.kt#L84) - -A pingback. - diff --git a/docs/net.thauvin.erik.akismet/-akismet-comment/-t-y-p-e_-r-e-p-l-y.md b/docs/net.thauvin.erik.akismet/-akismet-comment/-t-y-p-e_-r-e-p-l-y.md deleted file mode 100644 index c135cbd..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet-comment/-t-y-p-e_-r-e-p-l-y.md +++ /dev/null @@ -1,8 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [AkismetComment](index.md) / [TYPE_REPLY](./-t-y-p-e_-r-e-p-l-y.md) - -# TYPE_REPLY - -`const val TYPE_REPLY: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/AkismetComment.kt#L69) - -A reply to a top-level forum post. - diff --git a/docs/net.thauvin.erik.akismet/-akismet-comment/-t-y-p-e_-s-i-g-n-u-p.md b/docs/net.thauvin.erik.akismet/-akismet-comment/-t-y-p-e_-s-i-g-n-u-p.md deleted file mode 100644 index 4238737..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet-comment/-t-y-p-e_-s-i-g-n-u-p.md +++ /dev/null @@ -1,8 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [AkismetComment](index.md) / [TYPE_SIGNUP](./-t-y-p-e_-s-i-g-n-u-p.md) - -# TYPE_SIGNUP - -`const val TYPE_SIGNUP: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/AkismetComment.kt#L78) - -A new user account. - diff --git a/docs/net.thauvin.erik.akismet/-akismet-comment/-t-y-p-e_-t-r-a-c-k-b-a-c-k.md b/docs/net.thauvin.erik.akismet/-akismet-comment/-t-y-p-e_-t-r-a-c-k-b-a-c-k.md deleted file mode 100644 index 8643403..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet-comment/-t-y-p-e_-t-r-a-c-k-b-a-c-k.md +++ /dev/null @@ -1,8 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [AkismetComment](index.md) / [TYPE_TRACKBACK](./-t-y-p-e_-t-r-a-c-k-b-a-c-k.md) - -# TYPE_TRACKBACK - -`const val TYPE_TRACKBACK: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/AkismetComment.kt#L87) - -A trackback. - diff --git a/docs/net.thauvin.erik.akismet/-akismet-comment/-t-y-p-e_-t-w-e-e-t.md b/docs/net.thauvin.erik.akismet/-akismet-comment/-t-y-p-e_-t-w-e-e-t.md deleted file mode 100644 index e831c8e..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet-comment/-t-y-p-e_-t-w-e-e-t.md +++ /dev/null @@ -1,8 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [AkismetComment](index.md) / [TYPE_TWEET](./-t-y-p-e_-t-w-e-e-t.md) - -# TYPE_TWEET - -`const val TYPE_TWEET: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/AkismetComment.kt#L90) - -A Twitter message. - diff --git a/docs/net.thauvin.erik.akismet/-akismet-comment/author-email.md b/docs/net.thauvin.erik.akismet/-akismet-comment/author-email.md deleted file mode 100644 index ff71cc6..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet-comment/author-email.md +++ /dev/null @@ -1,8 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [AkismetComment](index.md) / [authorEmail](./author-email.md) - -# authorEmail - -`var authorEmail: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/AkismetComment.kt#L138) - -Email address submitted with the comment. - diff --git a/docs/net.thauvin.erik.akismet/-akismet-comment/author-url.md b/docs/net.thauvin.erik.akismet/-akismet-comment/author-url.md deleted file mode 100644 index 7aac7ad..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet-comment/author-url.md +++ /dev/null @@ -1,8 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [AkismetComment](index.md) / [authorUrl](./author-url.md) - -# authorUrl - -`var authorUrl: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/AkismetComment.kt#L144) - -URL submitted with comment. - diff --git a/docs/net.thauvin.erik.akismet/-akismet-comment/author.md b/docs/net.thauvin.erik.akismet/-akismet-comment/author.md deleted file mode 100644 index 47d105a..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet-comment/author.md +++ /dev/null @@ -1,8 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [AkismetComment](index.md) / [author](./author.md) - -# author - -`var author: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/AkismetComment.kt#L132) - -Name submitted with the comment. - diff --git a/docs/net.thauvin.erik.akismet/-akismet-comment/blog-charset.md b/docs/net.thauvin.erik.akismet/-akismet-comment/blog-charset.md deleted file mode 100644 index 3fafe04..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet-comment/blog-charset.md +++ /dev/null @@ -1,8 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [AkismetComment](index.md) / [blogCharset](./blog-charset.md) - -# blogCharset - -`var blogCharset: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/AkismetComment.kt#L190) - -The character encoding for the form values included in comment parameters, such as UTF-8 or ISO-8859-1 - diff --git a/docs/net.thauvin.erik.akismet/-akismet-comment/blog-lang.md b/docs/net.thauvin.erik.akismet/-akismet-comment/blog-lang.md deleted file mode 100644 index e04e4fc..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet-comment/blog-lang.md +++ /dev/null @@ -1,10 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [AkismetComment](index.md) / [blogLang](./blog-lang.md) - -# blogLang - -`var blogLang: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/AkismetComment.kt#L182) - -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/net.thauvin.erik.akismet/-akismet-comment/content.md b/docs/net.thauvin.erik.akismet/-akismet-comment/content.md deleted file mode 100644 index d6c5450..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet-comment/content.md +++ /dev/null @@ -1,8 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [AkismetComment](index.md) / [content](./content.md) - -# content - -`var content: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/AkismetComment.kt#L150) - -The content that was submitted. - diff --git a/docs/net.thauvin.erik.akismet/-akismet-comment/date-gmt.md b/docs/net.thauvin.erik.akismet/-akismet-comment/date-gmt.md deleted file mode 100644 index afe199e..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet-comment/date-gmt.md +++ /dev/null @@ -1,14 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [AkismetComment](index.md) / [dateGmt](./date-gmt.md) - -# dateGmt - -`var dateGmt: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/AkismetComment.kt#L162) - -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** - -[Akismet.dateToGmt](../-akismet/date-to-gmt.md) - diff --git a/docs/net.thauvin.erik.akismet/-akismet-comment/equals.md b/docs/net.thauvin.erik.akismet/-akismet-comment/equals.md deleted file mode 100644 index 2c62689..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet-comment/equals.md +++ /dev/null @@ -1,8 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [AkismetComment](index.md) / [equals](./equals.md) - -# equals - -`open fun equals(other: `[`Any`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)`?): `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/AkismetComment.kt#L269) - -Indicates whether some other object is *equal to* this one. - diff --git a/docs/net.thauvin.erik.akismet/-akismet-comment/hash-code.md b/docs/net.thauvin.erik.akismet/-akismet-comment/hash-code.md deleted file mode 100644 index a0621ad..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet-comment/hash-code.md +++ /dev/null @@ -1,8 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [AkismetComment](index.md) / [hashCode](./hash-code.md) - -# hashCode - -`open fun hashCode(): `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/AkismetComment.kt#L300) - -Returns a hash code value for the object. - diff --git a/docs/net.thauvin.erik.akismet/-akismet-comment/index.md b/docs/net.thauvin.erik.akismet/-akismet-comment/index.md deleted file mode 100644 index 4653a84..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet-comment/index.md +++ /dev/null @@ -1,66 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [AkismetComment](./index.md) - -# AkismetComment - -`open class AkismetComment` [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/AkismetComment.kt#L59) - -A comment to send to Akismet. - -Most everything is optional. 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. - -See the [Akismet API](https://akismet.com/development/api/#comment-check) for more details. - -### Constructors - -| Name | Summary | -|---|---| -| [<init>](-init-.md) | Create an Akismet comment extracting the [userIp](user-ip.md), [userAgent](user-agent.md), [referrer](referrer.md) and [serverEnv](server-env.md) environment variables from a Servlet request.`AkismetComment(request: `[`HttpServletRequest`](https://javaee.github.io/javaee-spec/javadocs/javax/servlet/http/HttpServletRequest.html)`)`
Create an Akismet comment instance.`AkismetComment(userIp: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, userAgent: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` | - -### Properties - -| Name | Summary | -|---|---| -| [author](author.md) | Name submitted with the comment.`var author: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` | -| [authorEmail](author-email.md) | Email address submitted with the comment.`var authorEmail: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` | -| [authorUrl](author-url.md) | URL submitted with comment.`var authorUrl: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` | -| [blogCharset](blog-charset.md) | The character encoding for the form values included in comment parameters, such as UTF-8 or ISO-8859-1`var blogCharset: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` | -| [blogLang](blog-lang.md) | Indicates the language(s) in use on the blog or site, in ISO 639-1 format, comma-separated.`var blogLang: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` | -| [content](content.md) | The content that was submitted.`var content: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` | -| [dateGmt](date-gmt.md) | The UTC timestamp of the creation of the comment, in ISO 8601 format.`var dateGmt: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` | -| [isTest](is-test.md) | This is an optional parameter. You can use it when submitting test queries to Akismet.`var isTest: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | -| [permalink](permalink.md) | The full permanent URL of the entry the comment was submitted to.`var permalink: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` | -| [postModifiedGmt](post-modified-gmt.md) | The UTC timestamp of the publication time for the post, page or thread on which the comment was posted.`var postModifiedGmt: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` | -| [recheckReason](recheck-reason.md) | 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.`var recheckReason: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` | -| [referrer](referrer.md) | The content of the referer header should be set here.`var referrer: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` | -| [serverEnv](server-env.md) | 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.`var serverEnv: `[`Map`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)`<`[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`>` | -| [type](type.md) | A string that describes the type of content being sent, such as:`var type: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` | -| [userAgent](user-agent.md) | User agent string of the web browser submitting the comment.`val userAgent: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | -| [userIp](user-ip.md) | IP address of the comment submitter.`val userIp: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | -| [userRole](user-role.md) | The user role of the user who submitted the comment. This is an optional parameter.`var userRole: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` | - -### Functions - -| Name | Summary | -|---|---| -| [equals](equals.md) | Indicates whether some other object is *equal to* this one.`open fun equals(other: `[`Any`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)`?): `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | -| [hashCode](hash-code.md) | Returns a hash code value for the object.`open fun hashCode(): `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | -| [toJson](to-json.md) | Returns a JSON representation of the comment.`fun toJson(): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | -| [toString](to-string.md) | Returns a JSON representation of the comment.`open fun toString(): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | - -### Companion Object Properties - -| Name | Summary | -|---|---| -| [ADMIN_ROLE](-a-d-m-i-n_-r-o-l-e.md) | Administrator role. If used, Akismet will always return false.`const val ADMIN_ROLE: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | -| [TYPE_BLOG_POST](-t-y-p-e_-b-l-o-g_-p-o-s-t.md) | A blog post.`const val TYPE_BLOG_POST: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | -| [TYPE_COMMENT](-t-y-p-e_-c-o-m-m-e-n-t.md) | A blog comment.`const val TYPE_COMMENT: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | -| [TYPE_CONTACT_FORM](-t-y-p-e_-c-o-n-t-a-c-t_-f-o-r-m.md) | A contact form or feedback form submission.`const val TYPE_CONTACT_FORM: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | -| [TYPE_FORUM_POST](-t-y-p-e_-f-o-r-u-m_-p-o-s-t.md) | A top-level forum post.`const val TYPE_FORUM_POST: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | -| [TYPE_MESSAGE](-t-y-p-e_-m-e-s-s-a-g-e.md) | A message sent between just a few users.`const val TYPE_MESSAGE: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | -| [TYPE_PINGBACK](-t-y-p-e_-p-i-n-g-b-a-c-k.md) | A pingback.`const val TYPE_PINGBACK: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | -| [TYPE_REPLY](-t-y-p-e_-r-e-p-l-y.md) | A reply to a top-level forum post.`const val TYPE_REPLY: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | -| [TYPE_SIGNUP](-t-y-p-e_-s-i-g-n-u-p.md) | A new user account.`const val TYPE_SIGNUP: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | -| [TYPE_TRACKBACK](-t-y-p-e_-t-r-a-c-k-b-a-c-k.md) | A trackback.`const val TYPE_TRACKBACK: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | -| [TYPE_TWEET](-t-y-p-e_-t-w-e-e-t.md) | A Twitter message.`const val TYPE_TWEET: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/docs/net.thauvin.erik.akismet/-akismet-comment/is-test.md b/docs/net.thauvin.erik.akismet/-akismet-comment/is-test.md deleted file mode 100644 index af49fb6..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet-comment/is-test.md +++ /dev/null @@ -1,8 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [AkismetComment](index.md) / [isTest](./is-test.md) - -# isTest - -`var isTest: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/AkismetComment.kt#L206) - -This is an optional parameter. You can use it when submitting test queries to Akismet. - diff --git a/docs/net.thauvin.erik.akismet/-akismet-comment/permalink.md b/docs/net.thauvin.erik.akismet/-akismet-comment/permalink.md deleted file mode 100644 index 3c36968..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet-comment/permalink.md +++ /dev/null @@ -1,8 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [AkismetComment](index.md) / [permalink](./permalink.md) - -# permalink - -`var permalink: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/AkismetComment.kt#L103) - -The full permanent URL of the entry the comment was submitted to. - diff --git a/docs/net.thauvin.erik.akismet/-akismet-comment/post-modified-gmt.md b/docs/net.thauvin.erik.akismet/-akismet-comment/post-modified-gmt.md deleted file mode 100644 index 54a9ff4..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet-comment/post-modified-gmt.md +++ /dev/null @@ -1,12 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [AkismetComment](index.md) / [postModifiedGmt](./post-modified-gmt.md) - -# postModifiedGmt - -`var postModifiedGmt: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/AkismetComment.kt#L172) - -The UTC timestamp of the publication time for the post, page or thread on which the comment was posted. - -**See Also** - -[Akismet.dateToGmt](../-akismet/date-to-gmt.md) - diff --git a/docs/net.thauvin.erik.akismet/-akismet-comment/recheck-reason.md b/docs/net.thauvin.erik.akismet/-akismet-comment/recheck-reason.md deleted file mode 100644 index 7c1437b..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet-comment/recheck-reason.md +++ /dev/null @@ -1,12 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [AkismetComment](index.md) / [recheckReason](./recheck-reason.md) - -# recheckReason - -`var recheckReason: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/AkismetComment.kt#L215) - -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/net.thauvin.erik.akismet/-akismet-comment/referrer.md b/docs/net.thauvin.erik.akismet/-akismet-comment/referrer.md deleted file mode 100644 index 0eb9867..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet-comment/referrer.md +++ /dev/null @@ -1,8 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [AkismetComment](index.md) / [referrer](./referrer.md) - -# referrer - -`var referrer: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/AkismetComment.kt#L97) - -The content of the referer header should be set here. - diff --git a/docs/net.thauvin.erik.akismet/-akismet-comment/server-env.md b/docs/net.thauvin.erik.akismet/-akismet-comment/server-env.md deleted file mode 100644 index 0d7297a..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet-comment/server-env.md +++ /dev/null @@ -1,13 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [AkismetComment](index.md) / [serverEnv](./server-env.md) - -# serverEnv - -`var serverEnv: `[`Map`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)`<`[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`>` [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/AkismetComment.kt#L228) - -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/net.thauvin.erik.akismet/-akismet-comment/to-json.md b/docs/net.thauvin.erik.akismet/-akismet-comment/to-json.md deleted file mode 100644 index 6c2cd3b..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet-comment/to-json.md +++ /dev/null @@ -1,12 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [AkismetComment](index.md) / [toJson](./to-json.md) - -# toJson - -`fun toJson(): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/AkismetComment.kt#L252) - -Returns a JSON representation of the comment. - -**See Also** - -[Akismet.jsonComment](../-akismet/json-comment.md) - diff --git a/docs/net.thauvin.erik.akismet/-akismet-comment/to-string.md b/docs/net.thauvin.erik.akismet/-akismet-comment/to-string.md deleted file mode 100644 index 5be0702..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet-comment/to-string.md +++ /dev/null @@ -1,12 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [AkismetComment](index.md) / [toString](./to-string.md) - -# toString - -`open fun toString(): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/AkismetComment.kt#L261) - -Returns a JSON representation of the comment. - -**See Also** - -[Akismet.jsonComment](../-akismet/json-comment.md) - diff --git a/docs/net.thauvin.erik.akismet/-akismet-comment/type.md b/docs/net.thauvin.erik.akismet/-akismet-comment/type.md deleted file mode 100644 index f91a68e..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet-comment/type.md +++ /dev/null @@ -1,23 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [AkismetComment](index.md) / [type](./type.md) - -# type - -`var type: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/AkismetComment.kt#L126) - -A string that describes the type of content being sent, such as: - -* [TYPE_COMMENT](-t-y-p-e_-c-o-m-m-e-n-t.md) -* [TYPE_FORUM_POST](-t-y-p-e_-f-o-r-u-m_-p-o-s-t.md) -* [TYPE_REPLY](-t-y-p-e_-r-e-p-l-y.md) -* [TYPE_BLOG_POST](-t-y-p-e_-b-l-o-g_-p-o-s-t.md) -* [TYPE_CONTACT_FORM](-t-y-p-e_-c-o-n-t-a-c-t_-f-o-r-m.md) -* [TYPE_SIGNUP](-t-y-p-e_-s-i-g-n-u-p.md) -* [TYPE_MESSAGE](-t-y-p-e_-m-e-s-s-a-g-e.md) -* [TYPE_PINGBACK](-t-y-p-e_-p-i-n-g-b-a-c-k.md) -* [TYPE_TRACKBACK](-t-y-p-e_-t-r-a-c-k-b-a-c-k.md) -* [TYPE_TWEET](-t-y-p-e_-t-w-e-e-t.md) - -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/). - diff --git a/docs/net.thauvin.erik.akismet/-akismet-comment/user-agent.md b/docs/net.thauvin.erik.akismet/-akismet-comment/user-agent.md deleted file mode 100644 index 2f4e9d2..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet-comment/user-agent.md +++ /dev/null @@ -1,8 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [AkismetComment](index.md) / [userAgent](./user-agent.md) - -# userAgent - -`val userAgent: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/AkismetComment.kt#L59) - -User agent string of the web browser submitting the comment. - diff --git a/docs/net.thauvin.erik.akismet/-akismet-comment/user-ip.md b/docs/net.thauvin.erik.akismet/-akismet-comment/user-ip.md deleted file mode 100644 index 48d7b05..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet-comment/user-ip.md +++ /dev/null @@ -1,8 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [AkismetComment](index.md) / [userIp](./user-ip.md) - -# userIp - -`val userIp: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/AkismetComment.kt#L59) - -IP address of the comment submitter. - diff --git a/docs/net.thauvin.erik.akismet/-akismet-comment/user-role.md b/docs/net.thauvin.erik.akismet/-akismet-comment/user-role.md deleted file mode 100644 index bc4dabe..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet-comment/user-role.md +++ /dev/null @@ -1,10 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [AkismetComment](index.md) / [userRole](./user-role.md) - -# userRole - -`var userRole: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/AkismetComment.kt#L200) - -The user role of the user who submitted the comment. This is an optional parameter. - -If you set it to [ADMIN_ROLE](-a-d-m-i-n_-r-o-l-e.md), Akismet will always return false. - diff --git a/docs/net.thauvin.erik.akismet/-akismet/-init-.md b/docs/net.thauvin.erik.akismet/-akismet/-init-.md deleted file mode 100644 index 15b2f79..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet/-init-.md +++ /dev/null @@ -1,15 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [Akismet](index.md) / [<init>](./-init-.md) - -# <init> - -`Akismet(apiKey: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, blog: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` - -Create a new instance using an [Akismet](https://www.askimet.com/) API key and URL registered with Akismet. - -`Akismet(apiKey: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` - -Creates new instance using the provided [Akismet](https://www.askimet.com/) API key. - -**Constructor** -Creates new instance using the provided [Akismet](https://www.askimet.com/) API key. - diff --git a/docs/net.thauvin.erik.akismet/-akismet/app-user-agent.md b/docs/net.thauvin.erik.akismet/-akismet/app-user-agent.md deleted file mode 100644 index 2043255..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet/app-user-agent.md +++ /dev/null @@ -1,18 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [Akismet](index.md) / [appUserAgent](./app-user-agent.md) - -# appUserAgent - -`var appUserAgent: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/Akismet.kt#L126) - -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](https://akismet.com/development/api/#detailed-docs) for more details. - diff --git a/docs/net.thauvin.erik.akismet/-akismet/blog.md b/docs/net.thauvin.erik.akismet/-akismet/blog.md deleted file mode 100644 index d31ab8b..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet/blog.md +++ /dev/null @@ -1,8 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [Akismet](index.md) / [blog](./blog.md) - -# blog - -`var blog: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/Akismet.kt#L107) - -The URL registered with Akismet. - diff --git a/docs/net.thauvin.erik.akismet/-akismet/check-comment.md b/docs/net.thauvin.erik.akismet/-akismet/check-comment.md deleted file mode 100644 index 504dcda..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet/check-comment.md +++ /dev/null @@ -1,25 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [Akismet](index.md) / [checkComment](./check-comment.md) - -# checkComment - -`@JvmOverloads fun checkComment(comment: `[`AkismetComment`](../-akismet-comment/index.md)`, trueOnError: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)` = false): `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/Akismet.kt#L275) - -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](https://akismet.com/development/api/#comment-check) for more details. - -### Parameters - -`trueOnError` - Set to return `true` on error. - -**Return** -`true` if the comment is spam, `false` if the comment is not. - diff --git a/docs/net.thauvin.erik.akismet/-akismet/date-to-gmt.md b/docs/net.thauvin.erik.akismet/-akismet/date-to-gmt.md deleted file mode 100644 index 2d42959..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet/date-to-gmt.md +++ /dev/null @@ -1,24 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [Akismet](index.md) / [dateToGmt](./date-to-gmt.md) - -# dateToGmt - -`@JvmStatic fun dateToGmt(date: `[`Date`](https://docs.oracle.com/javase/8/docs/api/java/util/Date.html)`): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/Akismet.kt#L78) - -Convert a date to a UTC timestamp. (ISO 8601) - -**See Also** - -[AkismetComment.dateGmt](../-akismet-comment/date-gmt.md) - -[AkismetComment.postModifiedGmt](../-akismet-comment/post-modified-gmt.md) - -`@JvmStatic fun dateToGmt(date: `[`LocalDateTime`](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDateTime.html)`): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/Akismet.kt#L91) - -Convert a locale date/time to a UTC timestamp. (ISO 8601) - -**See Also** - -[AkismetComment.dateGmt](../-akismet-comment/date-gmt.md) - -[AkismetComment.postModifiedGmt](../-akismet-comment/post-modified-gmt.md) - diff --git a/docs/net.thauvin.erik.akismet/-akismet/debug-help.md b/docs/net.thauvin.erik.akismet/-akismet/debug-help.md deleted file mode 100644 index f213bf0..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet/debug-help.md +++ /dev/null @@ -1,16 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [Akismet](index.md) / [debugHelp](./debug-help.md) - -# debugHelp - -`var debugHelp: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/Akismet.kt#L199) - -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](https://akismet.com/development/api/#comment-check) for more details. - diff --git a/docs/net.thauvin.erik.akismet/-akismet/error-message.md b/docs/net.thauvin.erik.akismet/-akismet/error-message.md deleted file mode 100644 index f17c669..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet/error-message.md +++ /dev/null @@ -1,14 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [Akismet](index.md) / [errorMessage](./error-message.md) - -# errorMessage - -`var errorMessage: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/Akismet.kt#L159) - -The error message. - -The error (IO, empty response from Akismet, etc.) message is also logged as a warning. - -**See Also** - -[Akismet.checkComment](check-comment.md) - diff --git a/docs/net.thauvin.erik.akismet/-akismet/execute-method.md b/docs/net.thauvin.erik.akismet/-akismet/execute-method.md deleted file mode 100644 index 667df74..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet/execute-method.md +++ /dev/null @@ -1,15 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [Akismet](index.md) / [executeMethod](./execute-method.md) - -# executeMethod - -`@JvmOverloads fun executeMethod(apiUrl: HttpUrl?, formBody: FormBody, trueOnError: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)` = false): `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/Akismet.kt#L329) - -Execute 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.) \ No newline at end of file diff --git a/docs/net.thauvin.erik.akismet/-akismet/http-status-code.md b/docs/net.thauvin.erik.akismet/-akismet/http-status-code.md deleted file mode 100644 index ec3dfbe..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet/http-status-code.md +++ /dev/null @@ -1,8 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [Akismet](index.md) / [httpStatusCode](./http-status-code.md) - -# httpStatusCode - -`var httpStatusCode: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/Akismet.kt#L140) - -The [HTTP status code](https://www.restapitutorial.com/httpstatuscodes.html) of the last operation. - diff --git a/docs/net.thauvin.erik.akismet/-akismet/index.md b/docs/net.thauvin.erik.akismet/-akismet/index.md deleted file mode 100644 index 5ac379d..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet/index.md +++ /dev/null @@ -1,46 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [Akismet](./index.md) - -# Akismet - -`open class Akismet` [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/Akismet.kt#L59) - -Provides access to the [Akismet API](https://akismet.com/development/api/). - -### Constructors - -| Name | Summary | -|---|---| -| [<init>](-init-.md) | Create a new instance using an [Akismet](https://www.askimet.com/) API key and URL registered with Akismet.`Akismet(apiKey: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, blog: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)`
Creates new instance using the provided [Akismet](https://www.askimet.com/) API key.`Akismet(apiKey: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` | - -### Properties - -| Name | Summary | -|---|---| -| [appUserAgent](app-user-agent.md) | The application user agent to be sent to Akismet.`var appUserAgent: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | -| [blog](blog.md) | The URL registered with Akismet.`var blog: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | -| [debugHelp](debug-help.md) | The `x-akismet-debug-help` header from the last operation, if any.`var debugHelp: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | -| [errorMessage](error-message.md) | The error message.`var errorMessage: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | -| [httpStatusCode](http-status-code.md) | The [HTTP status code](https://www.restapitutorial.com/httpstatuscodes.html) of the last operation.`var httpStatusCode: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | -| [isDiscard](is-discard.md) | Set to true if Akismet has determined that the last [checked comment](check-comment.md) is blatant spam, and you can safely discard it without saving it in any spam queue.`var isDiscard: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | -| [isVerifiedKey](is-verified-key.md) | Check if the API Key has been verified`var isVerifiedKey: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | -| [logger](logger.md) | The logger instance.`val logger: `[`Logger`](https://docs.oracle.com/javase/8/docs/api/java/util/logging/Logger.html) | -| [proTip](pro-tip.md) | The `x-akismet-pro-tip` header from the last operation, if any.`var proTip: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | -| [response](response.md) | The actual response sent by Akismet from the last operation.`var response: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | - -### Functions - -| Name | Summary | -|---|---| -| [checkComment](check-comment.md) | Comment Check.`fun checkComment(comment: `[`AkismetComment`](../-akismet-comment/index.md)`, trueOnError: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)` = false): `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | -| [executeMethod](execute-method.md) | Execute a call to an Akismet REST API method.`fun executeMethod(apiUrl: HttpUrl?, formBody: FormBody, trueOnError: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)` = false): `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | -| [reset](reset.md) | Reset the [debugHelp](debug-help.md), [errorMessage](error-message.md), [httpStatusCode](http-status-code.md), [isDiscard](is-discard.md), [isVerifiedKey](is-verified-key.md), [proTip](pro-tip.md), and [response](response.md) properties.`fun reset(): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | -| [submitHam](submit-ham.md) | Submit Ham. (False Positives)`fun submitHam(comment: `[`AkismetComment`](../-akismet-comment/index.md)`): `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | -| [submitSpam](submit-spam.md) | Submit Spam. (Missed Spam)`fun submitSpam(comment: `[`AkismetComment`](../-akismet-comment/index.md)`): `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | -| [verifyKey](verify-key.md) | Key Verification.`fun verifyKey(): `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | - -### Companion Object Functions - -| Name | Summary | -|---|---| -| [dateToGmt](date-to-gmt.md) | Convert a date to a UTC timestamp. (ISO 8601)`fun dateToGmt(date: `[`Date`](https://docs.oracle.com/javase/8/docs/api/java/util/Date.html)`): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
Convert a locale date/time to a UTC timestamp. (ISO 8601)`fun dateToGmt(date: `[`LocalDateTime`](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDateTime.html)`): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | -| [jsonComment](json-comment.md) | (Re)Create a [comment](../-akismet-comment/index.md) from a JSON string.`fun jsonComment(json: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`): `[`AkismetComment`](../-akismet-comment/index.md) | diff --git a/docs/net.thauvin.erik.akismet/-akismet/is-discard.md b/docs/net.thauvin.erik.akismet/-akismet/is-discard.md deleted file mode 100644 index c090ebd..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet/is-discard.md +++ /dev/null @@ -1,15 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [Akismet](index.md) / [isDiscard](./is-discard.md) - -# isDiscard - -`var isDiscard: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/Akismet.kt#L185) - -Set to true if Akismet has determined that the last [checked comment](check-comment.md) is blatant spam, and you -can safely discard it without saving it in any spam queue. - -See the [Akismet API](https://akismet.com/development/api/#comment-check) for more details. - -**See Also** - -[Akismet.proTip](pro-tip.md) - diff --git a/docs/net.thauvin.erik.akismet/-akismet/is-verified-key.md b/docs/net.thauvin.erik.akismet/-akismet/is-verified-key.md deleted file mode 100644 index 5f37c57..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet/is-verified-key.md +++ /dev/null @@ -1,12 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [Akismet](index.md) / [isVerifiedKey](./is-verified-key.md) - -# isVerifiedKey - -`var isVerifiedKey: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/Akismet.kt#L133) - -Check if the API Key has been verified - -**See Also** - -[Akismet.verifyKey](verify-key.md) - diff --git a/docs/net.thauvin.erik.akismet/-akismet/json-comment.md b/docs/net.thauvin.erik.akismet/-akismet/json-comment.md deleted file mode 100644 index e057896..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet/json-comment.md +++ /dev/null @@ -1,12 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [Akismet](index.md) / [jsonComment](./json-comment.md) - -# jsonComment - -`@JvmStatic fun jsonComment(json: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`): `[`AkismetComment`](../-akismet-comment/index.md) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/Akismet.kt#L67) - -(Re)Create a [comment](../-akismet-comment/index.md) from a JSON string. - -**See Also** - -[AkismetComment.toString](../-akismet-comment/to-string.md) - diff --git a/docs/net.thauvin.erik.akismet/-akismet/logger.md b/docs/net.thauvin.erik.akismet/-akismet/logger.md deleted file mode 100644 index 141e9ae..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet/logger.md +++ /dev/null @@ -1,12 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [Akismet](index.md) / [logger](./logger.md) - -# logger - -`val logger: `[`Logger`](https://docs.oracle.com/javase/8/docs/api/java/util/logging/Logger.html) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/Akismet.kt#L205) - -The logger instance. - -**Getter** - -The logger instance. - diff --git a/docs/net.thauvin.erik.akismet/-akismet/pro-tip.md b/docs/net.thauvin.erik.akismet/-akismet/pro-tip.md deleted file mode 100644 index 2ba0339..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet/pro-tip.md +++ /dev/null @@ -1,17 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [Akismet](index.md) / [proTip](./pro-tip.md) - -# proTip - -`var proTip: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/Akismet.kt#L173) - -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](https://akismet.com/development/api/#comment-check) for more details. - -**See Also** - -[Akismet.isDiscard](is-discard.md) - diff --git a/docs/net.thauvin.erik.akismet/-akismet/reset.md b/docs/net.thauvin.erik.akismet/-akismet/reset.md deleted file mode 100644 index 768d27f..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet/reset.md +++ /dev/null @@ -1,9 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [Akismet](index.md) / [reset](./reset.md) - -# reset - -`fun reset(): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/Akismet.kt#L378) - -Reset the [debugHelp](debug-help.md), [errorMessage](error-message.md), [httpStatusCode](http-status-code.md), [isDiscard](is-discard.md), [isVerifiedKey](is-verified-key.md), [proTip](pro-tip.md), and -[response](response.md) properties. - diff --git a/docs/net.thauvin.erik.akismet/-akismet/response.md b/docs/net.thauvin.erik.akismet/-akismet/response.md deleted file mode 100644 index f3a9b80..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet/response.md +++ /dev/null @@ -1,10 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [Akismet](index.md) / [response](./response.md) - -# response - -`var response: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/Akismet.kt#L149) - -The actual response sent by Akismet from the last operation. - -For example: `true`, `false`, `valid`, `invalid`, etc. - diff --git a/docs/net.thauvin.erik.akismet/-akismet/submit-ham.md b/docs/net.thauvin.erik.akismet/-akismet/submit-ham.md deleted file mode 100644 index ba60e72..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet/submit-ham.md +++ /dev/null @@ -1,24 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [Akismet](index.md) / [submitHam](./submit-ham.md) - -# submitHam - -`fun submitHam(comment: `[`AkismetComment`](../-akismet-comment/index.md)`): `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/Akismet.kt#L317) - -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](check-comment.md) and -[submit spam](submit-spam.md). - -It is very important that the values you submit with this call match those of your -[comment check](check-comment.md) 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](https://akismet.com/development/api/#submit-ham) for more details. - -**Return** -`true` if the comment was submitted, `false` otherwise. - diff --git a/docs/net.thauvin.erik.akismet/-akismet/submit-spam.md b/docs/net.thauvin.erik.akismet/-akismet/submit-spam.md deleted file mode 100644 index b71cc8c..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet/submit-spam.md +++ /dev/null @@ -1,22 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [Akismet](index.md) / [submitSpam](./submit-spam.md) - -# submitSpam - -`fun submitSpam(comment: `[`AkismetComment`](../-akismet-comment/index.md)`): `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/Akismet.kt#L295) - -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](check-comment.md) 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](https://akismet.com/development/api/#submit-spam) for more details. - -**Return** -`true` if the comment was submitted, `false` otherwise. - diff --git a/docs/net.thauvin.erik.akismet/-akismet/verify-key.md b/docs/net.thauvin.erik.akismet/-akismet/verify-key.md deleted file mode 100644 index c7b6ca2..0000000 --- a/docs/net.thauvin.erik.akismet/-akismet/verify-key.md +++ /dev/null @@ -1,22 +0,0 @@ -[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [Akismet](index.md) / [verifyKey](./verify-key.md) - -# verifyKey - -`fun verifyKey(): `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/Akismet.kt#L249) - -Key Verification. - -Key verification authenticates your key before calling the [comment check](check-comment.md), -[submit spam](submit-spam.md), or [submit ham](submit-ham.md) 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](https://akismet.com/development/api/#verify-key) for more details. - -**Return** -`true` if the key is valid, `false` otherwise. - -**See Also** - -[Akismet.isVerifiedKey](is-verified-key.md) - diff --git a/docs/net.thauvin.erik.akismet/index.md b/docs/net.thauvin.erik.akismet/index.md deleted file mode 100644 index d8e9a22..0000000 --- a/docs/net.thauvin.erik.akismet/index.md +++ /dev/null @@ -1,12 +0,0 @@ -[docs](../index.md) / [net.thauvin.erik.akismet](./index.md) - -## Package net.thauvin.erik.akismet - -A Kotlin/Java library for accessing the Akismet service. - -### Types - -| Name | Summary | -|---|---| -| [Akismet](-akismet/index.md) | Provides access to the [Akismet API](https://akismet.com/development/api/).`open class Akismet` | -| [AkismetComment](-akismet-comment/index.md) | A comment to send to Akismet.`open class AkismetComment` | diff --git a/docs/package-list b/docs/package-list deleted file mode 100644 index 5f10e95..0000000 --- a/docs/package-list +++ /dev/null @@ -1,4 +0,0 @@ -$dokka.format:gfm -$dokka.linkExtension:md - -net.thauvin.erik.akismet diff --git a/docs/root/net.thauvin.erik.akismet/-akismet-comment/-akismet-comment.html b/docs/root/net.thauvin.erik.akismet/-akismet-comment/-akismet-comment.html new file mode 100644 index 0000000..c4dc2d9 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet-comment/-akismet-comment.html @@ -0,0 +1,80 @@ + + + + + AkismetComment + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

AkismetComment

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

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)


constructor(userIp: String, userAgent: String)

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/root/net.thauvin.erik.akismet/-akismet-comment/-companion/-a-d-m-i-n_-r-o-l-e.html b/docs/root/net.thauvin.erik.akismet/-akismet-comment/-companion/-a-d-m-i-n_-r-o-l-e.html new file mode 100644 index 0000000..5313584 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet-comment/-companion/-a-d-m-i-n_-r-o-l-e.html @@ -0,0 +1,80 @@ + + + + + ADMIN_ROLE + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

ADMIN_ROLE

+
+
const val ADMIN_ROLE: String

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

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-akismet-comment/-companion/index.html b/docs/root/net.thauvin.erik.akismet/-akismet-comment/-companion/index.html new file mode 100644 index 0000000..be496c0 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet-comment/-companion/index.html @@ -0,0 +1,104 @@ + + + + + Companion + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Companion

+
object Companion
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
const val ADMIN_ROLE: String

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

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-akismet-comment/author-email.html b/docs/root/net.thauvin.erik.akismet/-akismet-comment/author-email.html new file mode 100644 index 0000000..39a43b3 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet-comment/author-email.html @@ -0,0 +1,80 @@ + + + + + authorEmail + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

authorEmail

+
+

Email address submitted with the comment.

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-akismet-comment/author-url.html b/docs/root/net.thauvin.erik.akismet/-akismet-comment/author-url.html new file mode 100644 index 0000000..4fc00f8 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet-comment/author-url.html @@ -0,0 +1,80 @@ + + + + + authorUrl + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

authorUrl

+
+

URL submitted with comment.

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-akismet-comment/author.html b/docs/root/net.thauvin.erik.akismet/-akismet-comment/author.html new file mode 100644 index 0000000..6d6acda --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet-comment/author.html @@ -0,0 +1,80 @@ + + + + + author + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

author

+
+

Name submitted with the comment.

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-akismet-comment/blog-charset.html b/docs/root/net.thauvin.erik.akismet/-akismet-comment/blog-charset.html new file mode 100644 index 0000000..95d456a --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet-comment/blog-charset.html @@ -0,0 +1,80 @@ + + + + + blogCharset + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

blogCharset

+
+

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

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-akismet-comment/blog-lang.html b/docs/root/net.thauvin.erik.akismet/-akismet-comment/blog-lang.html new file mode 100644 index 0000000..87f364e --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet-comment/blog-lang.html @@ -0,0 +1,80 @@ + + + + + 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/root/net.thauvin.erik.akismet/-akismet-comment/content.html b/docs/root/net.thauvin.erik.akismet/-akismet-comment/content.html new file mode 100644 index 0000000..744a94f --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet-comment/content.html @@ -0,0 +1,80 @@ + + + + + content + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

content

+
+

The content that was submitted.

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-akismet-comment/date-gmt.html b/docs/root/net.thauvin.erik.akismet/-akismet-comment/date-gmt.html new file mode 100644 index 0000000..bf91cd0 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet-comment/date-gmt.html @@ -0,0 +1,80 @@ + + + + + dateGmt + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

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

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-akismet-comment/equals.html b/docs/root/net.thauvin.erik.akismet/-akismet-comment/equals.html new file mode 100644 index 0000000..1d016a3 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet-comment/equals.html @@ -0,0 +1,80 @@ + + + + + equals + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

equals

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

Indicates whether some other object is equal to this one.

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-akismet-comment/hash-code.html b/docs/root/net.thauvin.erik.akismet/-akismet-comment/hash-code.html new file mode 100644 index 0000000..f0b4cf5 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet-comment/hash-code.html @@ -0,0 +1,80 @@ + + + + + hashCode + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

hashCode

+
+
open override fun hashCode(): Int

Returns a hash code value for the object.

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-akismet-comment/index.html b/docs/root/net.thauvin.erik.akismet/-akismet-comment/index.html new file mode 100644 index 0000000..c32b8f2 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet-comment/index.html @@ -0,0 +1,446 @@ + + + + + AkismetComment + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

AkismetComment

+
open class AkismetComment(val userIp: String, val userAgent: String)

A comment to send to Akismet.

Most everything is optional. 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.

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.

+
+
+
+
+
+

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.

+
+
+
+
+
+
+
+

Types

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
object Companion
+
+
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+

Name submitted with the comment.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Email address submitted with the comment.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

URL submitted with comment.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

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
+
+
+
+

The content that was submitted.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

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

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

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

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

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

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

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
+
+
+
+

The content of the referer header should be set here.

+
+
+
+
+ +
+
+
+ + +
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
+
+
+
+

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

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+ +
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+ +
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

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

+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
open operator override fun equals(other: Any?): Boolean

Indicates whether some other object is equal to this one.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
open override fun hashCode(): Int

Returns a hash code value for the object.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
fun toJson(): String

Returns a JSON representation of the comment.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
open override fun toString(): String

Returns a JSON representation of the comment.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-akismet-comment/is-test.html b/docs/root/net.thauvin.erik.akismet/-akismet-comment/is-test.html new file mode 100644 index 0000000..71b3c62 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet-comment/is-test.html @@ -0,0 +1,80 @@ + + + + + isTest + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

isTest

+
+

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

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-akismet-comment/permalink.html b/docs/root/net.thauvin.erik.akismet/-akismet-comment/permalink.html new file mode 100644 index 0000000..5f18f9f --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet-comment/permalink.html @@ -0,0 +1,80 @@ + + + + + permalink + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

permalink

+
+

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

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-akismet-comment/post-modified-gmt.html b/docs/root/net.thauvin.erik.akismet/-akismet-comment/post-modified-gmt.html new file mode 100644 index 0000000..8674bcf --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet-comment/post-modified-gmt.html @@ -0,0 +1,80 @@ + + + + + postModifiedGmt + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

postModifiedGmt

+
+

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/root/net.thauvin.erik.akismet/-akismet-comment/recheck-reason.html b/docs/root/net.thauvin.erik.akismet/-akismet-comment/recheck-reason.html new file mode 100644 index 0000000..82e0075 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet-comment/recheck-reason.html @@ -0,0 +1,80 @@ + + + + + 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/root/net.thauvin.erik.akismet/-akismet-comment/referrer.html b/docs/root/net.thauvin.erik.akismet/-akismet-comment/referrer.html new file mode 100644 index 0000000..a9a67a1 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet-comment/referrer.html @@ -0,0 +1,80 @@ + + + + + referrer + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

referrer

+
+

The content of the referer header should be set here.

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-akismet-comment/server-env.html b/docs/root/net.thauvin.erik.akismet/-akismet-comment/server-env.html new file mode 100644 index 0000000..e92a50e --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet-comment/server-env.html @@ -0,0 +1,80 @@ + + + + + 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/root/net.thauvin.erik.akismet/-akismet-comment/to-json.html b/docs/root/net.thauvin.erik.akismet/-akismet-comment/to-json.html new file mode 100644 index 0000000..bc88e62 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet-comment/to-json.html @@ -0,0 +1,80 @@ + + + + + toJson + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

toJson

+
+
fun toJson(): String

Returns a JSON representation of the comment.

See also

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-akismet-comment/to-string.html b/docs/root/net.thauvin.erik.akismet/-akismet-comment/to-string.html new file mode 100644 index 0000000..f61a2d9 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet-comment/to-string.html @@ -0,0 +1,80 @@ + + + + + toString + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

toString

+
+
open override fun toString(): String

Returns a JSON representation of the comment.

See also

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-akismet-comment/type.html b/docs/root/net.thauvin.erik.akismet/-akismet-comment/type.html new file mode 100644 index 0000000..8e18d92 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet-comment/type.html @@ -0,0 +1,80 @@ + + + + + type + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

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.

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-akismet-comment/user-agent.html b/docs/root/net.thauvin.erik.akismet/-akismet-comment/user-agent.html new file mode 100644 index 0000000..6127697 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet-comment/user-agent.html @@ -0,0 +1,80 @@ + + + + + userAgent + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

userAgent

+
+

Parameters

userAgent

User agent string of the web browser submitting the comment.

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-akismet-comment/user-ip.html b/docs/root/net.thauvin.erik.akismet/-akismet-comment/user-ip.html new file mode 100644 index 0000000..1fbc4a0 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet-comment/user-ip.html @@ -0,0 +1,80 @@ + + + + + userIp + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

userIp

+
+

Parameters

userIp

IP address of the comment submitter.

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-akismet-comment/user-role.html b/docs/root/net.thauvin.erik.akismet/-akismet-comment/user-role.html new file mode 100644 index 0000000..41435e8 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet-comment/user-role.html @@ -0,0 +1,80 @@ + + + + + userRole + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

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.

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-akismet/-akismet.html b/docs/root/net.thauvin.erik.akismet/-akismet/-akismet.html new file mode 100644 index 0000000..a37f73b --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet/-akismet.html @@ -0,0 +1,80 @@ + + + + + Akismet + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Akismet

+
+
constructor(apiKey: String, blog: String)

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


constructor(apiKey: String)

Creates a new instance using the provided Akismet API key.

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-akismet/-companion/date-to-gmt.html b/docs/root/net.thauvin.erik.akismet/-akismet/-companion/date-to-gmt.html new file mode 100644 index 0000000..d90afff --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet/-companion/date-to-gmt.html @@ -0,0 +1,80 @@ + + + + + dateToGmt + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

dateToGmt

+
+
fun dateToGmt(date: Date): String

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/root/net.thauvin.erik.akismet/-akismet/-companion/index.html b/docs/root/net.thauvin.erik.akismet/-akismet/-companion/index.html new file mode 100644 index 0000000..88e459c --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet/-companion/index.html @@ -0,0 +1,119 @@ + + + + + Companion + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Companion

+
object Companion
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+

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)

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

(Re)Creates a comment from a JSON string.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-akismet/-companion/json-comment.html b/docs/root/net.thauvin.erik.akismet/-akismet/-companion/json-comment.html new file mode 100644 index 0000000..8fae673 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet/-companion/json-comment.html @@ -0,0 +1,80 @@ + + + + + jsonComment + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

jsonComment

+
+

(Re)Creates a comment from a JSON string.

See also

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-akismet/app-user-agent.html b/docs/root/net.thauvin.erik.akismet/-akismet/app-user-agent.html new file mode 100644 index 0000000..b2ad48f --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet/app-user-agent.html @@ -0,0 +1,80 @@ + + + + + appUserAgent + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

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.

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-akismet/blog.html b/docs/root/net.thauvin.erik.akismet/-akismet/blog.html new file mode 100644 index 0000000..06fe121 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet/blog.html @@ -0,0 +1,80 @@ + + + + + blog + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

blog

+
+

The URL registered with Akismet.

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-akismet/check-comment.html b/docs/root/net.thauvin.erik.akismet/-akismet/check-comment.html new file mode 100644 index 0000000..1624ea3 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet/check-comment.html @@ -0,0 +1,80 @@ + + + + + checkComment + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

checkComment

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

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/root/net.thauvin.erik.akismet/-akismet/debug-help.html b/docs/root/net.thauvin.erik.akismet/-akismet/debug-help.html new file mode 100644 index 0000000..7042eab --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet/debug-help.html @@ -0,0 +1,80 @@ + + + + + debugHelp + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

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.

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-akismet/error-message.html b/docs/root/net.thauvin.erik.akismet/-akismet/error-message.html new file mode 100644 index 0000000..8cdc08e --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet/error-message.html @@ -0,0 +1,80 @@ + + + + + errorMessage + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

errorMessage

+
+

The error message.

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

See also

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-akismet/execute-method.html b/docs/root/net.thauvin.erik.akismet/-akismet/execute-method.html new file mode 100644 index 0000000..fa730ea --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet/execute-method.html @@ -0,0 +1,80 @@ + + + + + executeMethod + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

executeMethod

+
+
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.

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/root/net.thauvin.erik.akismet/-akismet/http-status-code.html b/docs/root/net.thauvin.erik.akismet/-akismet/http-status-code.html new file mode 100644 index 0000000..51a6eb8 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet/http-status-code.html @@ -0,0 +1,80 @@ + + + + + httpStatusCode + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

httpStatusCode

+
+

The HTTP status code of the last operation.

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-akismet/index.html b/docs/root/net.thauvin.erik.akismet/-akismet/index.html new file mode 100644 index 0000000..f8deedb --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet/index.html @@ -0,0 +1,371 @@ + + + + + Akismet + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Akismet

+
open class Akismet(apiKey: String)

Provides access to the Akismet API.

+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
constructor(apiKey: String, blog: String)

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

constructor(apiKey: String)

Creates a new instance using the provided Akismet API key.

+
+
+
+
+
+
+
+

Types

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
object Companion
+
+
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+

The application user agent to be sent to Akismet.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

The URL registered with Akismet.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

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

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

The error message.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

The HTTP status code of the last operation.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

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.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Set to true if the API Key has been verified.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

The logger instance.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

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

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

The actual response sent by Akismet from the last operation.

+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
fun checkComment(comment: AkismetComment, trueOnError: Boolean = false): Boolean

Comment Check.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
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.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+ +
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Submit Ham. (False Positives)

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Submit Spam. (Missed Spam)

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Key Verification.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-akismet/is-discard.html b/docs/root/net.thauvin.erik.akismet/-akismet/is-discard.html new file mode 100644 index 0000000..b6320e1 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet/is-discard.html @@ -0,0 +1,80 @@ + + + + + isDiscard + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

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

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-akismet/is-verified-key.html b/docs/root/net.thauvin.erik.akismet/-akismet/is-verified-key.html new file mode 100644 index 0000000..9842b5f --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet/is-verified-key.html @@ -0,0 +1,80 @@ + + + + + isVerifiedKey + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

isVerifiedKey

+
+

Set to true if the API Key has been verified.

See also

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-akismet/logger.html b/docs/root/net.thauvin.erik.akismet/-akismet/logger.html new file mode 100644 index 0000000..c037a09 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet/logger.html @@ -0,0 +1,80 @@ + + + + + logger + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

logger

+
+

The logger instance.

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-akismet/pro-tip.html b/docs/root/net.thauvin.erik.akismet/-akismet/pro-tip.html new file mode 100644 index 0000000..04b1892 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet/pro-tip.html @@ -0,0 +1,80 @@ + + + + + proTip + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

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

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-akismet/reset.html b/docs/root/net.thauvin.erik.akismet/-akismet/reset.html new file mode 100644 index 0000000..bf460c2 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet/reset.html @@ -0,0 +1,80 @@ + + + + + reset + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

reset

+
+ +
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-akismet/response.html b/docs/root/net.thauvin.erik.akismet/-akismet/response.html new file mode 100644 index 0000000..d973e99 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet/response.html @@ -0,0 +1,80 @@ + + + + + response + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

response

+
+

The actual response sent by Akismet from the last operation.

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

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-akismet/submit-ham.html b/docs/root/net.thauvin.erik.akismet/-akismet/submit-ham.html new file mode 100644 index 0000000..6f0b288 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet/submit-ham.html @@ -0,0 +1,80 @@ + + + + + submitHam + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

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.

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-akismet/submit-spam.html b/docs/root/net.thauvin.erik.akismet/-akismet/submit-spam.html new file mode 100644 index 0000000..855a3f2 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet/submit-spam.html @@ -0,0 +1,80 @@ + + + + + submitSpam + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

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.

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-akismet/verify-key.html b/docs/root/net.thauvin.erik.akismet/-akismet/verify-key.html new file mode 100644 index 0000000..1c92d1e --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-akismet/verify-key.html @@ -0,0 +1,80 @@ + + + + + verifyKey + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

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

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

Builder

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

Parameters

userIp

IP address of the comment submitter.

userAgent

User agent string of the web browser submitting the comment.

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

authorEmail

+
+

Sets the email address submitted with the comment.


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

authorUrl

+
+

Sets the URL submitted with comment.


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

author

+
+

Sets the mame submitted with the comment.


+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-comment-config/-builder/blog-charset.html b/docs/root/net.thauvin.erik.akismet/-comment-config/-builder/blog-charset.html new file mode 100644 index 0000000..0a9fc21 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-comment-config/-builder/blog-charset.html @@ -0,0 +1,80 @@ + + + + + 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/root/net.thauvin.erik.akismet/-comment-config/-builder/blog-lang.html b/docs/root/net.thauvin.erik.akismet/-comment-config/-builder/blog-lang.html new file mode 100644 index 0000000..59190c3 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-comment-config/-builder/blog-lang.html @@ -0,0 +1,80 @@ + + + + + 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/root/net.thauvin.erik.akismet/-comment-config/-builder/build.html b/docs/root/net.thauvin.erik.akismet/-comment-config/-builder/build.html new file mode 100644 index 0000000..72cde0b --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-comment-config/-builder/build.html @@ -0,0 +1,80 @@ + + + + + build + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

build

+
+

Builds a new comment configuration.

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

content

+
+

Sets the content that was submitted.


+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-comment-config/-builder/date-gmt.html b/docs/root/net.thauvin.erik.akismet/-comment-config/-builder/date-gmt.html new file mode 100644 index 0000000..b406e6e --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-comment-config/-builder/date-gmt.html @@ -0,0 +1,80 @@ + + + + + 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/root/net.thauvin.erik.akismet/-comment-config/-builder/index.html b/docs/root/net.thauvin.erik.akismet/-comment-config/-builder/index.html new file mode 100644 index 0000000..7208193 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-comment-config/-builder/index.html @@ -0,0 +1,637 @@ + + + + + Builder + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Builder

+
data class Builder(var userIp: String, var userAgent: String)

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
+
+
+
+

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/root/net.thauvin.erik.akismet/-comment-config/-builder/is-test.html b/docs/root/net.thauvin.erik.akismet/-comment-config/-builder/is-test.html new file mode 100644 index 0000000..c76fffb --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-comment-config/-builder/is-test.html @@ -0,0 +1,80 @@ + + + + + isTest + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

isTest

+
+

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


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

permalink

+
+

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


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

postModifiedGmt

+
+

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/root/net.thauvin.erik.akismet/-comment-config/-builder/recheck-reason.html b/docs/root/net.thauvin.erik.akismet/-comment-config/-builder/recheck-reason.html new file mode 100644 index 0000000..c6efd7c --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-comment-config/-builder/recheck-reason.html @@ -0,0 +1,80 @@ + + + + + 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/root/net.thauvin.erik.akismet/-comment-config/-builder/referrer.html b/docs/root/net.thauvin.erik.akismet/-comment-config/-builder/referrer.html new file mode 100644 index 0000000..19b3f1e --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-comment-config/-builder/referrer.html @@ -0,0 +1,80 @@ + + + + + referrer + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

referrer

+
+

Sets the content of the referrer header.


+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-comment-config/-builder/server-env.html b/docs/root/net.thauvin.erik.akismet/-comment-config/-builder/server-env.html new file mode 100644 index 0000000..6fd5770 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-comment-config/-builder/server-env.html @@ -0,0 +1,80 @@ + + + + + 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/root/net.thauvin.erik.akismet/-comment-config/-builder/type.html b/docs/root/net.thauvin.erik.akismet/-comment-config/-builder/type.html new file mode 100644 index 0000000..1013420 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-comment-config/-builder/type.html @@ -0,0 +1,80 @@ + + + + + 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/root/net.thauvin.erik.akismet/-comment-config/-builder/user-agent.html b/docs/root/net.thauvin.erik.akismet/-comment-config/-builder/user-agent.html new file mode 100644 index 0000000..70fd9f9 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-comment-config/-builder/user-agent.html @@ -0,0 +1,80 @@ + + + + + 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/root/net.thauvin.erik.akismet/-comment-config/-builder/user-ip.html b/docs/root/net.thauvin.erik.akismet/-comment-config/-builder/user-ip.html new file mode 100644 index 0000000..b368893 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-comment-config/-builder/user-ip.html @@ -0,0 +1,80 @@ + + + + + userIp + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

userIp

+
+

Sets the IP address of the comment submitter.


Parameters

userIp

IP address of the comment submitter.

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-comment-config/-builder/user-role.html b/docs/root/net.thauvin.erik.akismet/-comment-config/-builder/user-role.html new file mode 100644 index 0000000..b28cd4d --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-comment-config/-builder/user-role.html @@ -0,0 +1,80 @@ + + + + + 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/root/net.thauvin.erik.akismet/-comment-config/-comment-config.html b/docs/root/net.thauvin.erik.akismet/-comment-config/-comment-config.html new file mode 100644 index 0000000..bd0b374 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-comment-config/-comment-config.html @@ -0,0 +1,80 @@ + + + + + CommentConfig + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

CommentConfig

+
+
constructor(builder: CommentConfig.Builder)


constructor(userIp: String, userAgent: String, referrer: String = "", permalink: String = "", type: CommentType = CommentType.NONE, 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())

Parameters

userIp

IP address of the comment submitter.

userAgent

User agent string of the web browser submitting the comment.

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

authorEmail

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

authorUrl

+
+ +
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-comment-config/author.html b/docs/root/net.thauvin.erik.akismet/-comment-config/author.html new file mode 100644 index 0000000..658fcae --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-comment-config/author.html @@ -0,0 +1,80 @@ + + + + + author + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

author

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

blogCharset

+
+ +
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-comment-config/blog-lang.html b/docs/root/net.thauvin.erik.akismet/-comment-config/blog-lang.html new file mode 100644 index 0000000..8e9a388 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-comment-config/blog-lang.html @@ -0,0 +1,80 @@ + + + + + blogLang + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

blogLang

+
+ +
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-comment-config/content.html b/docs/root/net.thauvin.erik.akismet/-comment-config/content.html new file mode 100644 index 0000000..66718fd --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-comment-config/content.html @@ -0,0 +1,80 @@ + + + + + content + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

content

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

dateGmt

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

CommentConfig

+
class CommentConfigĀ constructor(var userIp: String, var userAgent: String, var referrer: String = "", var permalink: String = "", var type: CommentType = CommentType.NONE, 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.

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: CommentType = CommentType.NONE, 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/root/net.thauvin.erik.akismet/-comment-config/is-test.html b/docs/root/net.thauvin.erik.akismet/-comment-config/is-test.html new file mode 100644 index 0000000..3c48603 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-comment-config/is-test.html @@ -0,0 +1,80 @@ + + + + + isTest + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

isTest

+
+ +
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-comment-config/permalink.html b/docs/root/net.thauvin.erik.akismet/-comment-config/permalink.html new file mode 100644 index 0000000..0274fb2 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-comment-config/permalink.html @@ -0,0 +1,80 @@ + + + + + permalink + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

permalink

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

postModifiedGmt

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

recheckReason

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

referrer

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

serverEnv

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

type

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

userAgent

+
+

Parameters

userAgent

User agent string of the web browser submitting the comment.

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

userIp

+
+

Parameters

userIp

IP address of the comment submitter.

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

userRole

+
+ +
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-comment-type/-comment-type.html b/docs/root/net.thauvin.erik.akismet/-comment-type/-comment-type.html new file mode 100644 index 0000000..3e4278f --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-comment-type/-comment-type.html @@ -0,0 +1,80 @@ + + + + + CommentType + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

CommentType

+
+
constructor(value: String)
+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-comment-type/-companion/-b-l-o-g_-p-o-s-t.html b/docs/root/net.thauvin.erik.akismet/-comment-type/-companion/-b-l-o-g_-p-o-s-t.html new file mode 100644 index 0000000..8b14809 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-comment-type/-companion/-b-l-o-g_-p-o-s-t.html @@ -0,0 +1,80 @@ + + + + + BLOG_POST + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

BLOG_POST

+
+

A blog post.

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-comment-type/-companion/-c-o-m-m-e-n-t.html b/docs/root/net.thauvin.erik.akismet/-comment-type/-companion/-c-o-m-m-e-n-t.html new file mode 100644 index 0000000..e3b36ed --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-comment-type/-companion/-c-o-m-m-e-n-t.html @@ -0,0 +1,80 @@ + + + + + COMMENT + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

COMMENT

+
+

A blog comment.

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-comment-type/-companion/-c-o-n-t-a-c-t_-f-o-r-m.html b/docs/root/net.thauvin.erik.akismet/-comment-type/-companion/-c-o-n-t-a-c-t_-f-o-r-m.html new file mode 100644 index 0000000..f02eb18 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-comment-type/-companion/-c-o-n-t-a-c-t_-f-o-r-m.html @@ -0,0 +1,80 @@ + + + + + CONTACT_FORM + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

CONTACT_FORM

+
+

A contact form or feedback form submission.

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-comment-type/-companion/-f-o-r-u-m_-p-o-s-t.html b/docs/root/net.thauvin.erik.akismet/-comment-type/-companion/-f-o-r-u-m_-p-o-s-t.html new file mode 100644 index 0000000..224ba40 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-comment-type/-companion/-f-o-r-u-m_-p-o-s-t.html @@ -0,0 +1,80 @@ + + + + + FORUM_POST + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

FORUM_POST

+
+

A top-level forum post.

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-comment-type/-companion/-m-e-s-s-a-g-e.html b/docs/root/net.thauvin.erik.akismet/-comment-type/-companion/-m-e-s-s-a-g-e.html new file mode 100644 index 0000000..09b8770 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-comment-type/-companion/-m-e-s-s-a-g-e.html @@ -0,0 +1,80 @@ + + + + + MESSAGE + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

MESSAGE

+
+

A message sent between just a few users.

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-comment-type/-companion/-n-o-n-e.html b/docs/root/net.thauvin.erik.akismet/-comment-type/-companion/-n-o-n-e.html new file mode 100644 index 0000000..b8a3ece --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-comment-type/-companion/-n-o-n-e.html @@ -0,0 +1,80 @@ + + + + + NONE + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

NONE

+
+

Undefined type.

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-comment-type/-companion/-p-i-n-g-b-a-c-k.html b/docs/root/net.thauvin.erik.akismet/-comment-type/-companion/-p-i-n-g-b-a-c-k.html new file mode 100644 index 0000000..4771580 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-comment-type/-companion/-p-i-n-g-b-a-c-k.html @@ -0,0 +1,80 @@ + + + + + PINGBACK + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

PINGBACK

+
+

A pingback.

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-comment-type/-companion/-r-e-p-l-y.html b/docs/root/net.thauvin.erik.akismet/-comment-type/-companion/-r-e-p-l-y.html new file mode 100644 index 0000000..8685765 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-comment-type/-companion/-r-e-p-l-y.html @@ -0,0 +1,80 @@ + + + + + REPLY + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

REPLY

+
+

A reply to a top-level forum post.

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-comment-type/-companion/-s-i-g-n-u-p.html b/docs/root/net.thauvin.erik.akismet/-comment-type/-companion/-s-i-g-n-u-p.html new file mode 100644 index 0000000..9031d4a --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-comment-type/-companion/-s-i-g-n-u-p.html @@ -0,0 +1,80 @@ + + + + + SIGNUP + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

SIGNUP

+
+

A new user account.

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-comment-type/-companion/-t-r-a-c-k-b-a-c-k.html b/docs/root/net.thauvin.erik.akismet/-comment-type/-companion/-t-r-a-c-k-b-a-c-k.html new file mode 100644 index 0000000..2c06ff2 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-comment-type/-companion/-t-r-a-c-k-b-a-c-k.html @@ -0,0 +1,80 @@ + + + + + TRACKBACK + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

TRACKBACK

+
+

A trackback.

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-comment-type/-companion/-t-w-e-e-t.html b/docs/root/net.thauvin.erik.akismet/-comment-type/-companion/-t-w-e-e-t.html new file mode 100644 index 0000000..553ac98 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-comment-type/-companion/-t-w-e-e-t.html @@ -0,0 +1,80 @@ + + + + + TWEET + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

TWEET

+
+

A Twitter message.

+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-comment-type/-companion/index.html b/docs/root/net.thauvin.erik.akismet/-comment-type/-companion/index.html new file mode 100644 index 0000000..6fdb31f --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-comment-type/-companion/index.html @@ -0,0 +1,254 @@ + + + + + Companion + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Companion

+
object Companion
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+

A blog post.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

A blog comment.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

A contact form or feedback form submission.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

A top-level forum post.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

A message sent between just a few users.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Undefined type.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

A pingback.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

A reply to a top-level forum post.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

A new user account.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

A trackback.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

A Twitter message.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-comment-type/index.html b/docs/root/net.thauvin.erik.akismet/-comment-type/index.html new file mode 100644 index 0000000..e0c2306 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-comment-type/index.html @@ -0,0 +1,142 @@ + + + + + CommentType + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

CommentType

+
data class CommentType(var value: String)

Defines the comment types.

+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
constructor(value: String)
+
+
+
+
+
+
+
+

Types

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
object Companion
+
+
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+ +
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/-comment-type/value.html b/docs/root/net.thauvin.erik.akismet/-comment-type/value.html new file mode 100644 index 0000000..07cce74 --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/-comment-type/value.html @@ -0,0 +1,80 @@ + + + + + value + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

value

+
+ +
+ +
+
+
+ + diff --git a/docs/root/net.thauvin.erik.akismet/index.html b/docs/root/net.thauvin.erik.akismet/index.html new file mode 100644 index 0000000..766f3df --- /dev/null +++ b/docs/root/net.thauvin.erik.akismet/index.html @@ -0,0 +1,148 @@ + + + + + net.thauvin.erik.akismet + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Package-level declarations

+
+
+
+
+
+

Types

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
open class Akismet(apiKey: String)

Provides access to the Akismet API.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
open class AkismetComment(val userIp: String, val userAgent: String)

A comment to send to Akismet.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
class CommentConfigĀ constructor(var userIp: String, var userAgent: String, var referrer: String = "", var permalink: String = "", var type: CommentType = CommentType.NONE, 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.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
data class CommentType(var value: String)

Defines the comment types.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/docs/root/package-list b/docs/root/package-list new file mode 100644 index 0000000..2b8e2fd --- /dev/null +++ b/docs/root/package-list @@ -0,0 +1,127 @@ +$dokka.format:html-v1 +$dokka.linkExtension:html +$dokka.location:net.thauvin.erik.akismet////PointingToDeclaration/root/net.thauvin.erik.akismet/index.html +$dokka.location:net.thauvin.erik.akismet/Akismet.Companion///PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet/-companion/index.html +$dokka.location:net.thauvin.erik.akismet/Akismet.Companion/dateToGmt/#java.time.LocalDateTime/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet/-companion/date-to-gmt.html +$dokka.location:net.thauvin.erik.akismet/Akismet.Companion/dateToGmt/#java.util.Date/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet/-companion/date-to-gmt.html +$dokka.location:net.thauvin.erik.akismet/Akismet.Companion/jsonComment/#kotlin.String/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet/-companion/json-comment.html +$dokka.location:net.thauvin.erik.akismet/Akismet///PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet/index.html +$dokka.location:net.thauvin.erik.akismet/Akismet/Akismet/#kotlin.String#kotlin.String/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet/-akismet.html +$dokka.location:net.thauvin.erik.akismet/Akismet/Akismet/#kotlin.String/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet/-akismet.html +$dokka.location:net.thauvin.erik.akismet/Akismet/appUserAgent/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet/app-user-agent.html +$dokka.location:net.thauvin.erik.akismet/Akismet/blog/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet/blog.html +$dokka.location:net.thauvin.erik.akismet/Akismet/checkComment/#net.thauvin.erik.akismet.AkismetComment#kotlin.Boolean/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet/check-comment.html +$dokka.location:net.thauvin.erik.akismet/Akismet/debugHelp/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet/debug-help.html +$dokka.location:net.thauvin.erik.akismet/Akismet/errorMessage/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet/error-message.html +$dokka.location:net.thauvin.erik.akismet/Akismet/executeMethod/#[Error type: Unresolved type for HttpUrl]#[Error type: Unresolved type for FormBody]#kotlin.Boolean/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet/execute-method.html +$dokka.location:net.thauvin.erik.akismet/Akismet/httpStatusCode/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet/http-status-code.html +$dokka.location:net.thauvin.erik.akismet/Akismet/isDiscard/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet/is-discard.html +$dokka.location:net.thauvin.erik.akismet/Akismet/isVerifiedKey/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet/is-verified-key.html +$dokka.location:net.thauvin.erik.akismet/Akismet/logger/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet/logger.html +$dokka.location:net.thauvin.erik.akismet/Akismet/proTip/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet/pro-tip.html +$dokka.location:net.thauvin.erik.akismet/Akismet/reset/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet/reset.html +$dokka.location:net.thauvin.erik.akismet/Akismet/response/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet/response.html +$dokka.location:net.thauvin.erik.akismet/Akismet/submitHam/#net.thauvin.erik.akismet.AkismetComment/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet/submit-ham.html +$dokka.location:net.thauvin.erik.akismet/Akismet/submitSpam/#net.thauvin.erik.akismet.AkismetComment/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet/submit-spam.html +$dokka.location:net.thauvin.erik.akismet/Akismet/verifyKey/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet/verify-key.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment.Companion///PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet-comment/-companion/index.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment.Companion/ADMIN_ROLE/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet-comment/-companion/-a-d-m-i-n_-r-o-l-e.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment///PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet-comment/index.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment/AkismetComment/#[Error type: Unresolved type for HttpServletRequest]/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet-comment/-akismet-comment.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment/AkismetComment/#kotlin.String#kotlin.String/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet-comment/-akismet-comment.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment/AkismetComment/#net.thauvin.erik.akismet.CommentConfig/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet-comment/-akismet-comment.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment/author/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet-comment/author.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment/authorEmail/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet-comment/author-email.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment/authorUrl/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet-comment/author-url.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment/blogCharset/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet-comment/blog-charset.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment/blogLang/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet-comment/blog-lang.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment/content/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet-comment/content.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment/dateGmt/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet-comment/date-gmt.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment/equals/#kotlin.Any?/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet-comment/equals.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment/hashCode/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet-comment/hash-code.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment/isTest/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet-comment/is-test.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment/permalink/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet-comment/permalink.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment/postModifiedGmt/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet-comment/post-modified-gmt.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment/recheckReason/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet-comment/recheck-reason.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment/referrer/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet-comment/referrer.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment/serverEnv/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet-comment/server-env.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment/toJson/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet-comment/to-json.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment/toString/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet-comment/to-string.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment/type/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet-comment/type.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment/userAgent/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet-comment/user-agent.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment/userIp/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet-comment/user-ip.html +$dokka.location:net.thauvin.erik.akismet/AkismetComment/userRole/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-akismet-comment/user-role.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder///PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/-builder/index.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/Builder/#kotlin.String#kotlin.String/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/-builder/-builder.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/author/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/-builder/author.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/author/#kotlin.String/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/-builder/author.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/authorEmail/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/-builder/author-email.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/authorEmail/#kotlin.String/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/-builder/author-email.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/authorUrl/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/-builder/author-url.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/authorUrl/#kotlin.String/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/-builder/author-url.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/blogCharset/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/-builder/blog-charset.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/blogCharset/#kotlin.String/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/-builder/blog-charset.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/blogLang/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/-builder/blog-lang.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/blogLang/#kotlin.String/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/-builder/blog-lang.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/build/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/-builder/build.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/content/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/-builder/content.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/content/#kotlin.String/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/-builder/content.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/dateGmt/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/-builder/date-gmt.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/dateGmt/#kotlin.String/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/-builder/date-gmt.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/isTest/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/-builder/is-test.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/isTest/#kotlin.Boolean/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/-builder/is-test.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/permalink/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/-builder/permalink.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/permalink/#kotlin.String/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/-builder/permalink.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/postModifiedGmt/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/-builder/post-modified-gmt.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/postModifiedGmt/#kotlin.String/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/-builder/post-modified-gmt.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/recheckReason/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/-builder/recheck-reason.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/recheckReason/#kotlin.String/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/-builder/recheck-reason.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/referrer/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/-builder/referrer.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/referrer/#kotlin.String/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/-builder/referrer.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/serverEnv/#/PointingToDeclaration/root/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/root/net.thauvin.erik.akismet/-comment-config/-builder/server-env.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/type/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/-builder/type.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/type/#net.thauvin.erik.akismet.CommentType/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/-builder/type.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/userAgent/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/-builder/user-agent.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/userAgent/#kotlin.String/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/-builder/user-agent.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/userIp/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/-builder/user-ip.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/userIp/#kotlin.String/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/-builder/user-ip.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/userRole/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/-builder/user-role.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig.Builder/userRole/#kotlin.String/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/-builder/user-role.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig///PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/index.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig/CommentConfig/#kotlin.String#kotlin.String#kotlin.String#kotlin.String#net.thauvin.erik.akismet.CommentType#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/root/net.thauvin.erik.akismet/-comment-config/-comment-config.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig/CommentConfig/#net.thauvin.erik.akismet.CommentConfig.Builder/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/-comment-config.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig/author/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/author.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig/authorEmail/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/author-email.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig/authorUrl/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/author-url.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig/blogCharset/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/blog-charset.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig/blogLang/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/blog-lang.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig/content/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/content.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig/dateGmt/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/date-gmt.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig/isTest/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/is-test.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig/permalink/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/permalink.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig/postModifiedGmt/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/post-modified-gmt.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig/recheckReason/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/recheck-reason.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig/referrer/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/referrer.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig/serverEnv/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/server-env.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig/type/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/type.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig/userAgent/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/user-agent.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig/userIp/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/user-ip.html +$dokka.location:net.thauvin.erik.akismet/CommentConfig/userRole/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-config/user-role.html +$dokka.location:net.thauvin.erik.akismet/CommentType.Companion///PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-type/-companion/index.html +$dokka.location:net.thauvin.erik.akismet/CommentType.Companion/BLOG_POST/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-type/-companion/-b-l-o-g_-p-o-s-t.html +$dokka.location:net.thauvin.erik.akismet/CommentType.Companion/COMMENT/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-type/-companion/-c-o-m-m-e-n-t.html +$dokka.location:net.thauvin.erik.akismet/CommentType.Companion/CONTACT_FORM/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-type/-companion/-c-o-n-t-a-c-t_-f-o-r-m.html +$dokka.location:net.thauvin.erik.akismet/CommentType.Companion/FORUM_POST/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-type/-companion/-f-o-r-u-m_-p-o-s-t.html +$dokka.location:net.thauvin.erik.akismet/CommentType.Companion/MESSAGE/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-type/-companion/-m-e-s-s-a-g-e.html +$dokka.location:net.thauvin.erik.akismet/CommentType.Companion/NONE/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-type/-companion/-n-o-n-e.html +$dokka.location:net.thauvin.erik.akismet/CommentType.Companion/PINGBACK/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-type/-companion/-p-i-n-g-b-a-c-k.html +$dokka.location:net.thauvin.erik.akismet/CommentType.Companion/REPLY/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-type/-companion/-r-e-p-l-y.html +$dokka.location:net.thauvin.erik.akismet/CommentType.Companion/SIGNUP/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-type/-companion/-s-i-g-n-u-p.html +$dokka.location:net.thauvin.erik.akismet/CommentType.Companion/TRACKBACK/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-type/-companion/-t-r-a-c-k-b-a-c-k.html +$dokka.location:net.thauvin.erik.akismet/CommentType.Companion/TWEET/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-type/-companion/-t-w-e-e-t.html +$dokka.location:net.thauvin.erik.akismet/CommentType///PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-type/index.html +$dokka.location:net.thauvin.erik.akismet/CommentType/CommentType/#kotlin.String/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-type/-comment-type.html +$dokka.location:net.thauvin.erik.akismet/CommentType/value/#/PointingToDeclaration/root/net.thauvin.erik.akismet/-comment-type/value.html +net.thauvin.erik.akismet + diff --git a/docs/scripts/clipboard.js b/docs/scripts/clipboard.js new file mode 100644 index 0000000..7a4f33c --- /dev/null +++ b/docs/scripts/clipboard.js @@ -0,0 +1,56 @@ +/* + * Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. + */ + +window.addEventListener('load', () => { + document.querySelectorAll('span.copy-icon').forEach(element => { + element.addEventListener('click', (el) => copyElementsContentToClipboard(element)); + }) + + document.querySelectorAll('span.anchor-icon').forEach(element => { + element.addEventListener('click', (el) => { + if(element.hasAttribute('pointing-to')){ + const location = hrefWithoutCurrentlyUsedAnchor() + '#' + element.getAttribute('pointing-to') + copyTextToClipboard(element, location) + } + }); + }) +}) + +const copyElementsContentToClipboard = (element) => { + const selection = window.getSelection(); + const range = document.createRange(); + range.selectNodeContents(element.parentNode.parentNode); + selection.removeAllRanges(); + selection.addRange(range); + + copyAndShowPopup(element, () => selection.removeAllRanges()) +} + +const copyTextToClipboard = (element, text) => { + var textarea = document.createElement("textarea"); + textarea.textContent = text; + textarea.style.position = "fixed"; + document.body.appendChild(textarea); + textarea.select(); + + copyAndShowPopup(element, () => document.body.removeChild(textarea)) +} + +const copyAndShowPopup = (element, after) => { + try { + document.execCommand('copy'); + element.nextElementSibling.classList.add('active-popup'); + setTimeout(() => { + element.nextElementSibling.classList.remove('active-popup'); + }, 1200); + } catch (e) { + console.error('Failed to write to clipboard:', e) + } + finally { + if(after) after() + } +} + +const hrefWithoutCurrentlyUsedAnchor = () => window.location.href.split('#')[0] + diff --git a/docs/scripts/main.js b/docs/scripts/main.js new file mode 100644 index 0000000..ba6c347 --- /dev/null +++ b/docs/scripts/main.js @@ -0,0 +1,44 @@ +(()=>{var e={8527:e=>{e.exports=''},5570:e=>{e.exports=''},107:e=>{e.exports=''},7224:e=>{e.exports=''},538:e=>{e.exports=''},1924:(e,n,t)=>{"use strict";var r=t(210),o=t(5559),i=o(r("String.prototype.indexOf"));e.exports=function(e,n){var t=r(e,!!n);return"function"==typeof t&&i(e,".prototype.")>-1?o(t):t}},5559:(e,n,t)=>{"use strict";var r=t(8612),o=t(210),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),l=o("%Reflect.apply%",!0)||r.call(a,i),c=o("%Object.getOwnPropertyDescriptor%",!0),u=o("%Object.defineProperty%",!0),s=o("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){var n=l(r,a,arguments);if(c&&u){var t=c(n,"length");t.configurable&&u(n,"length",{value:1+s(0,e.length-(arguments.length-1))})}return n};var f=function(){return l(r,i,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f},4184:(e,n)=>{var t; +/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],n=0;n{"use strict";e.exports=function(e,n){var t=this,r=t.constructor;return t.options=Object.assign({storeInstancesGlobally:!0},n||{}),t.callbacks={},t.directMap={},t.sequenceLevels={},t.resetTimer=null,t.ignoreNextKeyup=!1,t.ignoreNextKeypress=!1,t.nextExpectedAction=!1,t.element=e,t.addEvents(),t.options.storeInstancesGlobally&&r.instances.push(t),t},e.exports.prototype.bind=t(2207),e.exports.prototype.bindMultiple=t(3396),e.exports.prototype.unbind=t(9208),e.exports.prototype.trigger=t(9855),e.exports.prototype.reset=t(6214),e.exports.prototype.stopCallback=t(3450),e.exports.prototype.handleKey=t(3067),e.exports.prototype.addEvents=t(718),e.exports.prototype.bindSingle=t(8763),e.exports.prototype.getKeyInfo=t(5825),e.exports.prototype.pickBestAction=t(8608),e.exports.prototype.getReverseMap=t(3956),e.exports.prototype.getMatches=t(3373),e.exports.prototype.resetSequences=t(3346),e.exports.prototype.fireCallback=t(2684),e.exports.prototype.bindSequence=t(7103),e.exports.prototype.resetSequenceTimer=t(7309),e.exports.prototype.detach=t(7554),e.exports.instances=[],e.exports.reset=t(1822),e.exports.REVERSE_MAP=null},718:(e,n,t)=>{"use strict";e.exports=function(){var e=this,n=t(4323),r=e.element;e.eventHandler=t(9646).bind(e),n(r,"keypress",e.eventHandler),n(r,"keydown",e.eventHandler),n(r,"keyup",e.eventHandler)}},2207:e=>{"use strict";e.exports=function(e,n,t){return e=e instanceof Array?e:[e],this.bindMultiple(e,n,t),this}},3396:e=>{"use strict";e.exports=function(e,n,t){for(var r=0;r{"use strict";e.exports=function(e,n,r,o){var i=this;function a(n){return function(){i.nextExpectedAction=n,++i.sequenceLevels[e],i.resetSequenceTimer()}}function l(n){var a;i.fireCallback(r,n,e),"keyup"!==o&&(a=t(6770),i.ignoreNextKeyup=a(n)),setTimeout((function(){i.resetSequences()}),10)}i.sequenceLevels[e]=0;for(var c=0;c{"use strict";e.exports=function(e,n,t,r,o){var i=this;i.directMap[e+":"+t]=n;var a,l=(e=e.replace(/\s+/g," ")).split(" ");l.length>1?i.bindSequence(e,l,n,t):(a=i.getKeyInfo(e,t),i.callbacks[a.key]=i.callbacks[a.key]||[],i.getMatches(a.key,a.modifiers,{type:a.action},r,e,o),i.callbacks[a.key][r?"unshift":"push"]({callback:n,modifiers:a.modifiers,action:a.action,seq:r,level:o,combo:e}))}},7554:(e,n,t)=>{var r=t(4323).off;e.exports=function(){var e=this,n=e.element;r(n,"keypress",e.eventHandler),r(n,"keydown",e.eventHandler),r(n,"keyup",e.eventHandler)}},4323:e=>{function n(e,n,t,r){return!e.addEventListener&&(n="on"+n),(e.addEventListener||e.attachEvent).call(e,n,t,r),t}e.exports=n,e.exports.on=n,e.exports.off=function(e,n,t,r){return!e.removeEventListener&&(n="on"+n),(e.removeEventListener||e.detachEvent).call(e,n,t,r),t}},2684:(e,n,t)=>{"use strict";e.exports=function(e,n,r,o){this.stopCallback(n,n.target||n.srcElement,r,o)||!1===e(n,r)&&(t(1350)(n),t(6103)(n))}},5825:(e,n,t)=>{"use strict";e.exports=function(e,n){var r,o,i,a,l,c,u=[];for(r=t(4520)(e),a=t(7549),l=t(5355),c=t(8581),i=0;i{"use strict";e.exports=function(e,n,r,o,i,a){var l,c,u,s,f=this,p=[],d=r.type;"keypress"!==d||r.code&&"Arrow"===r.code.slice(0,5)||(f.callbacks["any-character"]||[]).forEach((function(e){p.push(e)}));if(!f.callbacks[e])return p;for(u=t(8581),"keyup"===d&&u(e)&&(n=[e]),l=0;l{"use strict";e.exports=function(){var e,n=this.constructor;if(!n.REVERSE_MAP)for(var r in n.REVERSE_MAP={},e=t(4766))r>95&&r<112||e.hasOwnProperty(r)&&(n.REVERSE_MAP[e[r]]=r);return n.REVERSE_MAP}},3067:(e,n,t)=>{"use strict";e.exports=function(e,n,r){var o,i,a,l,c=this,u={},s=0,f=!1;for(o=c.getMatches(e,n,r),i=0;i{"use strict";e.exports=function(e){var n,r=this;"number"!=typeof e.which&&(e.which=e.keyCode);var o=t(6770)(e);void 0!==o&&("keyup"!==e.type||r.ignoreNextKeyup!==o?(n=t(4610),r.handleKey(o,n(e),e)):r.ignoreNextKeyup=!1)}},5532:e=>{"use strict";e.exports=function(e,n){return e.sort().join(",")===n.sort().join(",")}},8608:e=>{"use strict";e.exports=function(e,n,t){return t||(t=this.getReverseMap()[e]?"keydown":"keypress"),"keypress"===t&&n.length&&(t="keydown"),t}},6214:e=>{"use strict";e.exports=function(){return this.callbacks={},this.directMap={},this}},7309:e=>{"use strict";e.exports=function(){var e=this;clearTimeout(e.resetTimer),e.resetTimer=setTimeout((function(){e.resetSequences()}),1e3)}},3346:e=>{"use strict";e.exports=function(e){var n=this;e=e||{};var t,r=!1;for(t in n.sequenceLevels)e[t]?r=!0:n.sequenceLevels[t]=0;r||(n.nextExpectedAction=!1)}},3450:e=>{"use strict";e.exports=function(e,n){if((" "+n.className+" ").indexOf(" combokeys ")>-1)return!1;var t=n.tagName.toLowerCase();return"input"===t||"select"===t||"textarea"===t||n.isContentEditable}},9855:e=>{"use strict";e.exports=function(e,n){return this.directMap[e+":"+n]&&this.directMap[e+":"+n]({},e),this}},9208:e=>{"use strict";e.exports=function(e,n){return this.bind(e,(function(){}),n)}},1822:e=>{"use strict";e.exports=function(){this.instances.forEach((function(e){e.reset()}))}},6770:(e,n,t)=>{"use strict";e.exports=function(e){var n,r;if(n=t(4766),r=t(5295),"keypress"===e.type){var o=String.fromCharCode(e.which);return e.shiftKey||(o=o.toLowerCase()),o}return void 0!==n[e.which]?n[e.which]:void 0!==r[e.which]?r[e.which]:String.fromCharCode(e.which).toLowerCase()}},4610:e=>{"use strict";e.exports=function(e){var n=[];return e.shiftKey&&n.push("shift"),e.altKey&&n.push("alt"),e.ctrlKey&&n.push("ctrl"),e.metaKey&&n.push("meta"),n}},8581:e=>{"use strict";e.exports=function(e){return"shift"===e||"ctrl"===e||"alt"===e||"meta"===e}},4520:e=>{"use strict";e.exports=function(e){return"+"===e?["+"]:e.split("+")}},1350:e=>{"use strict";e.exports=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1}},5355:e=>{"use strict";e.exports={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"}},7549:e=>{"use strict";e.exports={option:"alt",command:"meta",return:"enter",escape:"esc",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"}},5295:e=>{"use strict";e.exports={106:"*",107:"plus",109:"minus",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}},4766:e=>{"use strict";e.exports={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",173:"minus",187:"plus",189:"minus",224:"meta"};for(var n=1;n<20;++n)e.exports[111+n]="f"+n;for(n=0;n<=9;++n)e.exports[n+96]=n},6103:e=>{"use strict";e.exports=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}},3362:()=>{var e;!function(){var e=Math.PI,n=2*e,t=e/180,r=document.createElement("div");document.head.appendChild(r);var o=self.ConicGradient=function(e){o.all.push(this),e=e||{},this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.repeating=!!e.repeating,this.size=e.size||Math.max(innerWidth,innerHeight),this.canvas.width=this.canvas.height=this.size;var n=e.stops;this.stops=(n||"").split(/\s*,(?![^(]*\))\s*/),this.from=0;for(var t=0;t0){var i=this.stops[0].clone();i.pos=0,this.stops.unshift(i)}if(void 0===this.stops[this.stops.length-1].pos)this.stops[this.stops.length-1].pos=1;else if(!this.repeating&&this.stops[this.stops.length-1].pos<1){var a=this.stops[this.stops.length-1].clone();a.pos=1,this.stops.push(a)}if(this.stops.forEach((function(e,n){if(void 0===e.pos){for(var t=n+1;this[t];t++)if(void 0!==this[t].pos){e.pos=this[n-1].pos+(this[t].pos-this[n-1].pos)/(t-n+1);break}}else n>0&&(e.pos=Math.max(e.pos,this[n-1].pos))}),this.stops),this.repeating){var l=(n=this.stops.slice())[n.length-1].pos-n[0].pos;for(t=0;this.stops[this.stops.length-1].pos<1&&t<1e4;t++)for(var c=0;c'},get png(){return this.canvas.toDataURL()},get r(){return Math.sqrt(2)*this.size/2},paint:function(){var e,n,r,o=this.context,i=this.r,a=this.size/2,l=0,c=this.stops[l];o.translate(this.size/2,this.size/2),o.rotate(-90*t),o.rotate(this.from*t),o.translate(-this.size/2,-this.size/2);for(var u=0;u<360;){if(u/360+1e-5>=c.pos){do{e=c,l++,c=this.stops[l]}while(c&&c!=e&&c.pos===e.pos);if(!c)break;var s=e.color+""==c.color+""&&e!=c;n=e.color.map((function(e,n){return c.color[n]-e}))}r=(u/360-e.pos)/(c.pos-e.pos);var f=s?c.color:n.map((function(n,t){var o=n*r+e.color[t];return t<3?255&o:o}));if(o.fillStyle="rgba("+f.join(",")+")",o.beginPath(),o.moveTo(a,a),s)var p=360*(c.pos-e.pos);else p=.5;var d=u*t,h=(d=Math.min(360*t,d))+p*t;h=Math.min(360*t,h+.02),o.arc(a,a,i,d,h),o.closePath(),o.fill(),u+=p}}},o.ColorStop=function(e,t){if(this.gradient=e,t){var r=t.match(/^(.+?)(?:\s+([\d.]+)(%|deg|turn|grad|rad)?)?(?:\s+([\d.]+)(%|deg|turn|grad|rad)?)?\s*$/);if(this.color=o.ColorStop.colorToRGBA(r[1]),r[2]){var i=r[3];"%"==i||"0"===r[2]&&!i?this.pos=r[2]/100:"turn"==i?this.pos=+r[2]:"deg"==i?this.pos=r[2]/360:"grad"==i?this.pos=r[2]/400:"rad"==i&&(this.pos=r[2]/n)}r[4]&&(this.next=new o.ColorStop(e,r[1]+" "+r[4]+r[5]))}},o.ColorStop.prototype={clone:function(){var e=new o.ColorStop(this.gradient);return e.color=this.color,e.pos=this.pos,e},toString:function(){return"rgba("+this.color.join(", ")+") "+100*this.pos+"%"}},o.ColorStop.colorToRGBA=function(e){if(!Array.isArray(e)&&-1==e.indexOf("from")){r.style.color=e;var n=getComputedStyle(r).color.match(/rgba?\(([\d.]+), ([\d.]+), ([\d.]+)(?:, ([\d.]+))?\)/);return n&&(n.shift(),(n=n.map((function(e){return+e})))[3]=isNaN(n[3])?1:n[3]),n||[0,0,0,0]}return e}}(),self.StyleFix&&((e=document.createElement("p")).style.backgroundImage="conic-gradient(white, black)",e.style.backgroundImage=PrefixFree.prefix+"conic-gradient(white, black)",e.style.backgroundImage||StyleFix.register((function(e,n){return e.indexOf("conic-gradient")>-1&&(e=e.replace(/(?:repeating-)?conic-gradient\(\s*((?:\([^()]+\)|[^;()}])+?)\)/g,(function(e,n){return new ConicGradient({stops:n,repeating:e.indexOf("repeating-")>-1})}))),e})))},9662:(e,n,t)=>{var r=t(7854),o=t(614),i=t(6330),a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not a function")}},9483:(e,n,t)=>{var r=t(7854),o=t(4411),i=t(6330),a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not a constructor")}},6077:(e,n,t)=>{var r=t(7854),o=t(614),i=r.String,a=r.TypeError;e.exports=function(e){if("object"==typeof e||o(e))return e;throw a("Can't set "+i(e)+" as a prototype")}},1223:(e,n,t)=>{var r=t(5112),o=t(30),i=t(3070),a=r("unscopables"),l=Array.prototype;null==l[a]&&i.f(l,a,{configurable:!0,value:o(null)}),e.exports=function(e){l[a][e]=!0}},1530:(e,n,t)=>{"use strict";var r=t(8710).charAt;e.exports=function(e,n,t){return n+(t?r(e,n).length:1)}},5787:(e,n,t)=>{var r=t(7854),o=t(7976),i=r.TypeError;e.exports=function(e,n){if(o(n,e))return e;throw i("Incorrect invocation")}},9670:(e,n,t)=>{var r=t(7854),o=t(111),i=r.String,a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not an object")}},7556:(e,n,t)=>{var r=t(7293);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},8533:(e,n,t)=>{"use strict";var r=t(2092).forEach,o=t(9341)("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},8457:(e,n,t)=>{"use strict";var r=t(7854),o=t(9974),i=t(6916),a=t(7908),l=t(3411),c=t(7659),u=t(4411),s=t(6244),f=t(6135),p=t(8554),d=t(1246),h=r.Array;e.exports=function(e){var n=a(e),t=u(this),r=arguments.length,g=r>1?arguments[1]:void 0,v=void 0!==g;v&&(g=o(g,r>2?arguments[2]:void 0));var A,b,m,y,E,_,C=d(n),w=0;if(!C||this==h&&c(C))for(A=s(n),b=t?new this(A):h(A);A>w;w++)_=v?g(n[w],w):n[w],f(b,w,_);else for(E=(y=p(n,C)).next,b=t?new this:[];!(m=i(E,y)).done;w++)_=v?l(y,g,[m.value,w],!0):m.value,f(b,w,_);return b.length=w,b}},1318:(e,n,t)=>{var r=t(5656),o=t(1400),i=t(6244),a=function(e){return function(n,t,a){var l,c=r(n),u=i(c),s=o(a,u);if(e&&t!=t){for(;u>s;)if((l=c[s++])!=l)return!0}else for(;u>s;s++)if((e||s in c)&&c[s]===t)return e||s||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},2092:(e,n,t)=>{var r=t(9974),o=t(1702),i=t(8361),a=t(7908),l=t(6244),c=t(5417),u=o([].push),s=function(e){var n=1==e,t=2==e,o=3==e,s=4==e,f=6==e,p=7==e,d=5==e||f;return function(h,g,v,A){for(var b,m,y=a(h),E=i(y),_=r(g,v),C=l(E),w=0,x=A||c,k=n?x(h,C):t||p?x(h,0):void 0;C>w;w++)if((d||w in E)&&(m=_(b=E[w],w,y),e))if(n)k[w]=m;else if(m)switch(e){case 3:return!0;case 5:return b;case 6:return w;case 2:u(k,b)}else switch(e){case 4:return!1;case 7:u(k,b)}return f?-1:o||s?s:k}};e.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}},1194:(e,n,t)=>{var r=t(7293),o=t(5112),i=t(7392),a=o("species");e.exports=function(e){return i>=51||!r((function(){var n=[];return(n.constructor={})[a]=function(){return{foo:1}},1!==n[e](Boolean).foo}))}},9341:(e,n,t)=>{"use strict";var r=t(7293);e.exports=function(e,n){var t=[][e];return!!t&&r((function(){t.call(null,n||function(){throw 1},1)}))}},3671:(e,n,t)=>{var r=t(7854),o=t(9662),i=t(7908),a=t(8361),l=t(6244),c=r.TypeError,u=function(e){return function(n,t,r,u){o(t);var s=i(n),f=a(s),p=l(s),d=e?p-1:0,h=e?-1:1;if(r<2)for(;;){if(d in f){u=f[d],d+=h;break}if(d+=h,e?d<0:p<=d)throw c("Reduce of empty array with no initial value")}for(;e?d>=0:p>d;d+=h)d in f&&(u=t(u,f[d],d,s));return u}};e.exports={left:u(!1),right:u(!0)}},206:(e,n,t)=>{var r=t(1702);e.exports=r([].slice)},4362:(e,n,t)=>{var r=t(206),o=Math.floor,i=function(e,n){var t=e.length,c=o(t/2);return t<8?a(e,n):l(e,i(r(e,0,c),n),i(r(e,c),n),n)},a=function(e,n){for(var t,r,o=e.length,i=1;i0;)e[r]=e[--r];r!==i++&&(e[r]=t)}return e},l=function(e,n,t,r){for(var o=n.length,i=t.length,a=0,l=0;a{var r=t(7854),o=t(3157),i=t(4411),a=t(111),l=t(5112)("species"),c=r.Array;e.exports=function(e){var n;return o(e)&&(n=e.constructor,(i(n)&&(n===c||o(n.prototype))||a(n)&&null===(n=n[l]))&&(n=void 0)),void 0===n?c:n}},5417:(e,n,t)=>{var r=t(7475);e.exports=function(e,n){return new(r(e))(0===n?0:n)}},3411:(e,n,t)=>{var r=t(9670),o=t(9212);e.exports=function(e,n,t,i){try{return i?n(r(t)[0],t[1]):n(t)}catch(n){o(e,"throw",n)}}},7072:(e,n,t)=>{var r=t(5112)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,n){if(!n&&!o)return!1;var t=!1;try{var i={};i[r]=function(){return{next:function(){return{done:t=!0}}}},e(i)}catch(e){}return t}},4326:(e,n,t)=>{var r=t(1702),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},648:(e,n,t)=>{var r=t(7854),o=t(1694),i=t(614),a=t(4326),l=t(5112)("toStringTag"),c=r.Object,u="Arguments"==a(function(){return arguments}());e.exports=o?a:function(e){var n,t,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,n){try{return e[n]}catch(e){}}(n=c(e),l))?t:u?a(n):"Object"==(r=a(n))&&i(n.callee)?"Arguments":r}},5631:(e,n,t)=>{"use strict";var r=t(3070).f,o=t(30),i=t(2248),a=t(9974),l=t(5787),c=t(408),u=t(654),s=t(6340),f=t(9781),p=t(2423).fastKey,d=t(9909),h=d.set,g=d.getterFor;e.exports={getConstructor:function(e,n,t,u){var s=e((function(e,r){l(e,d),h(e,{type:n,index:o(null),first:void 0,last:void 0,size:0}),f||(e.size=0),null!=r&&c(r,e[u],{that:e,AS_ENTRIES:t})})),d=s.prototype,v=g(n),A=function(e,n,t){var r,o,i=v(e),a=b(e,n);return a?a.value=t:(i.last=a={index:o=p(n,!0),key:n,value:t,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),f?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},b=function(e,n){var t,r=v(e),o=p(n);if("F"!==o)return r.index[o];for(t=r.first;t;t=t.next)if(t.key==n)return t};return i(d,{clear:function(){for(var e=v(this),n=e.index,t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=void 0),delete n[t.index],t=t.next;e.first=e.last=void 0,f?e.size=0:this.size=0},delete:function(e){var n=this,t=v(n),r=b(n,e);if(r){var o=r.next,i=r.previous;delete t.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),t.first==r&&(t.first=o),t.last==r&&(t.last=i),f?t.size--:n.size--}return!!r},forEach:function(e){for(var n,t=v(this),r=a(e,arguments.length>1?arguments[1]:void 0);n=n?n.next:t.first;)for(r(n.value,n.key,this);n&&n.removed;)n=n.previous},has:function(e){return!!b(this,e)}}),i(d,t?{get:function(e){var n=b(this,e);return n&&n.value},set:function(e,n){return A(this,0===e?0:e,n)}}:{add:function(e){return A(this,e=0===e?0:e,e)}}),f&&r(d,"size",{get:function(){return v(this).size}}),s},setStrong:function(e,n,t){var r=n+" Iterator",o=g(n),i=g(r);u(e,n,(function(e,n){h(this,{type:r,target:e,state:o(e),kind:n,last:void 0})}),(function(){for(var e=i(this),n=e.kind,t=e.last;t&&t.removed;)t=t.previous;return e.target&&(e.last=t=t?t.next:e.state.first)?"keys"==n?{value:t.key,done:!1}:"values"==n?{value:t.value,done:!1}:{value:[t.key,t.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),t?"entries":"values",!t,!0),s(n)}}},9320:(e,n,t)=>{"use strict";var r=t(1702),o=t(2248),i=t(2423).getWeakData,a=t(9670),l=t(111),c=t(5787),u=t(408),s=t(2092),f=t(2597),p=t(9909),d=p.set,h=p.getterFor,g=s.find,v=s.findIndex,A=r([].splice),b=0,m=function(e){return e.frozen||(e.frozen=new y)},y=function(){this.entries=[]},E=function(e,n){return g(e.entries,(function(e){return e[0]===n}))};y.prototype={get:function(e){var n=E(this,e);if(n)return n[1]},has:function(e){return!!E(this,e)},set:function(e,n){var t=E(this,e);t?t[1]=n:this.entries.push([e,n])},delete:function(e){var n=v(this.entries,(function(n){return n[0]===e}));return~n&&A(this.entries,n,1),!!~n}},e.exports={getConstructor:function(e,n,t,r){var s=e((function(e,o){c(e,p),d(e,{type:n,id:b++,frozen:void 0}),null!=o&&u(o,e[r],{that:e,AS_ENTRIES:t})})),p=s.prototype,g=h(n),v=function(e,n,t){var r=g(e),o=i(a(n),!0);return!0===o?m(r).set(n,t):o[r.id]=t,e};return o(p,{delete:function(e){var n=g(this);if(!l(e))return!1;var t=i(e);return!0===t?m(n).delete(e):t&&f(t,n.id)&&delete t[n.id]},has:function(e){var n=g(this);if(!l(e))return!1;var t=i(e);return!0===t?m(n).has(e):t&&f(t,n.id)}}),o(p,t?{get:function(e){var n=g(this);if(l(e)){var t=i(e);return!0===t?m(n).get(e):t?t[n.id]:void 0}},set:function(e,n){return v(this,e,n)}}:{add:function(e){return v(this,e,!0)}}),s}}},7710:(e,n,t)=>{"use strict";var r=t(2109),o=t(7854),i=t(1702),a=t(4705),l=t(1320),c=t(2423),u=t(408),s=t(5787),f=t(614),p=t(111),d=t(7293),h=t(7072),g=t(8003),v=t(9587);e.exports=function(e,n,t){var A=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),m=A?"set":"add",y=o[e],E=y&&y.prototype,_=y,C={},w=function(e){var n=i(E[e]);l(E,e,"add"==e?function(e){return n(this,0===e?0:e),this}:"delete"==e?function(e){return!(b&&!p(e))&&n(this,0===e?0:e)}:"get"==e?function(e){return b&&!p(e)?void 0:n(this,0===e?0:e)}:"has"==e?function(e){return!(b&&!p(e))&&n(this,0===e?0:e)}:function(e,t){return n(this,0===e?0:e,t),this})};if(a(e,!f(y)||!(b||E.forEach&&!d((function(){(new y).entries().next()})))))_=t.getConstructor(n,e,A,m),c.enable();else if(a(e,!0)){var x=new _,k=x[m](b?{}:-0,1)!=x,S=d((function(){x.has(1)})),O=h((function(e){new y(e)})),B=!b&&d((function(){for(var e=new y,n=5;n--;)e[m](n,n);return!e.has(-0)}));O||((_=n((function(e,n){s(e,E);var t=v(new y,e,_);return null!=n&&u(n,t[m],{that:t,AS_ENTRIES:A}),t}))).prototype=E,E.constructor=_),(S||B)&&(w("delete"),w("has"),A&&w("get")),(B||k)&&w(m),b&&E.clear&&delete E.clear}return C[e]=_,r({global:!0,forced:_!=y},C),g(_,e),b||t.setStrong(_,e,A),_}},9920:(e,n,t)=>{var r=t(2597),o=t(3887),i=t(1236),a=t(3070);e.exports=function(e,n){for(var t=o(n),l=a.f,c=i.f,u=0;u{var r=t(5112)("match");e.exports=function(e){var n=/./;try{"/./"[e](n)}catch(t){try{return n[r]=!1,"/./"[e](n)}catch(e){}}return!1}},8544:(e,n,t)=>{var r=t(7293);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},4230:(e,n,t)=>{var r=t(1702),o=t(4488),i=t(1340),a=/"/g,l=r("".replace);e.exports=function(e,n,t,r){var c=i(o(e)),u="<"+n;return""!==t&&(u+=" "+t+'="'+l(i(r),a,""")+'"'),u+">"+c+""}},4994:(e,n,t)=>{"use strict";var r=t(3383).IteratorPrototype,o=t(30),i=t(9114),a=t(8003),l=t(7497),c=function(){return this};e.exports=function(e,n,t){var u=n+" Iterator";return e.prototype=o(r,{next:i(1,t)}),a(e,u,!1,!0),l[u]=c,e}},8880:(e,n,t)=>{var r=t(9781),o=t(3070),i=t(9114);e.exports=r?function(e,n,t){return o.f(e,n,i(1,t))}:function(e,n,t){return e[n]=t,e}},9114:e=>{e.exports=function(e,n){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:n}}},6135:(e,n,t)=>{"use strict";var r=t(4948),o=t(3070),i=t(9114);e.exports=function(e,n,t){var a=r(n);a in e?o.f(e,a,i(0,t)):e[a]=t}},8709:(e,n,t)=>{"use strict";var r=t(7854),o=t(9670),i=t(2140),a=r.TypeError;e.exports=function(e){if(o(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw a("Incorrect hint");return i(this,e)}},654:(e,n,t)=>{"use strict";var r=t(2109),o=t(6916),i=t(1913),a=t(6530),l=t(614),c=t(4994),u=t(9518),s=t(7674),f=t(8003),p=t(8880),d=t(1320),h=t(5112),g=t(7497),v=t(3383),A=a.PROPER,b=a.CONFIGURABLE,m=v.IteratorPrototype,y=v.BUGGY_SAFARI_ITERATORS,E=h("iterator"),_="keys",C="values",w="entries",x=function(){return this};e.exports=function(e,n,t,a,h,v,k){c(t,n,a);var S,O,B,I=function(e){if(e===h&&R)return R;if(!y&&e in j)return j[e];switch(e){case _:case C:case w:return function(){return new t(this,e)}}return function(){return new t(this)}},T=n+" Iterator",P=!1,j=e.prototype,z=j[E]||j["@@iterator"]||h&&j[h],R=!y&&z||I(h),M="Array"==n&&j.entries||z;if(M&&(S=u(M.call(new e)))!==Object.prototype&&S.next&&(i||u(S)===m||(s?s(S,m):l(S[E])||d(S,E,x)),f(S,T,!0,!0),i&&(g[T]=x)),A&&h==C&&z&&z.name!==C&&(!i&&b?p(j,"name",C):(P=!0,R=function(){return o(z,this)})),h)if(O={values:I(C),keys:v?R:I(_),entries:I(w)},k)for(B in O)(y||P||!(B in j))&&d(j,B,O[B]);else r({target:n,proto:!0,forced:y||P},O);return i&&!k||j[E]===R||d(j,E,R,{name:h}),g[n]=R,O}},7235:(e,n,t)=>{var r=t(857),o=t(2597),i=t(6061),a=t(3070).f;e.exports=function(e){var n=r.Symbol||(r.Symbol={});o(n,e)||a(n,e,{value:i.f(e)})}},9781:(e,n,t)=>{var r=t(7293);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:(e,n,t)=>{var r=t(7854),o=t(111),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},8324:e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8509:(e,n,t)=>{var r=t(317)("span").classList,o=r&&r.constructor&&r.constructor.prototype;e.exports=o===Object.prototype?void 0:o},8886:(e,n,t)=>{var r=t(8113).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},256:(e,n,t)=>{var r=t(8113);e.exports=/MSIE|Trident/.test(r)},5268:(e,n,t)=>{var r=t(4326),o=t(7854);e.exports="process"==r(o.process)},8113:(e,n,t)=>{var r=t(5005);e.exports=r("navigator","userAgent")||""},7392:(e,n,t)=>{var r,o,i=t(7854),a=t(8113),l=i.process,c=i.Deno,u=l&&l.versions||c&&c.version,s=u&&u.v8;s&&(o=(r=s.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},8008:(e,n,t)=>{var r=t(8113).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},748:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:(e,n,t)=>{var r=t(7854),o=t(1236).f,i=t(8880),a=t(1320),l=t(3505),c=t(9920),u=t(4705);e.exports=function(e,n){var t,s,f,p,d,h=e.target,g=e.global,v=e.stat;if(t=g?r:v?r[h]||l(h,{}):(r[h]||{}).prototype)for(s in n){if(p=n[s],f=e.noTargetGet?(d=o(t,s))&&d.value:t[s],!u(g?s:h+(v?".":"#")+s,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;c(p,f)}(e.sham||f&&f.sham)&&i(p,"sham",!0),a(t,s,p,e)}}},7293:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},7007:(e,n,t)=>{"use strict";t(4916);var r=t(1702),o=t(1320),i=t(2261),a=t(7293),l=t(5112),c=t(8880),u=l("species"),s=RegExp.prototype;e.exports=function(e,n,t,f){var p=l(e),d=!a((function(){var n={};return n[p]=function(){return 7},7!=""[e](n)})),h=d&&!a((function(){var n=!1,t=/a/;return"split"===e&&((t={}).constructor={},t.constructor[u]=function(){return t},t.flags="",t[p]=/./[p]),t.exec=function(){return n=!0,null},t[p](""),!n}));if(!d||!h||t){var g=r(/./[p]),v=n(p,""[e],(function(e,n,t,o,a){var l=r(e),c=n.exec;return c===i||c===s.exec?d&&!a?{done:!0,value:g(n,t,o)}:{done:!0,value:l(t,n,o)}:{done:!1}}));o(String.prototype,e,v[0]),o(s,p,v[1])}f&&c(s[p],"sham",!0)}},6677:(e,n,t)=>{var r=t(7293);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},2104:e=>{var n=Function.prototype,t=n.apply,r=n.bind,o=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(t):function(){return o.apply(t,arguments)})},9974:(e,n,t)=>{var r=t(1702),o=t(9662),i=r(r.bind);e.exports=function(e,n){return o(e),void 0===n?e:i?i(e,n):function(){return e.apply(n,arguments)}}},7065:(e,n,t)=>{"use strict";var r=t(7854),o=t(1702),i=t(9662),a=t(111),l=t(2597),c=t(206),u=r.Function,s=o([].concat),f=o([].join),p={},d=function(e,n,t){if(!l(p,n)){for(var r=[],o=0;o{var n=Function.prototype.call;e.exports=n.bind?n.bind(n):function(){return n.apply(n,arguments)}},6530:(e,n,t)=>{var r=t(9781),o=t(2597),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,l=o(i,"name"),c=l&&"something"===function(){}.name,u=l&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:l,PROPER:c,CONFIGURABLE:u}},1702:e=>{var n=Function.prototype,t=n.bind,r=n.call,o=t&&t.bind(r);e.exports=t?function(e){return e&&o(r,e)}:function(e){return e&&function(){return r.apply(e,arguments)}}},5005:(e,n,t)=>{var r=t(7854),o=t(614),i=function(e){return o(e)?e:void 0};e.exports=function(e,n){return arguments.length<2?i(r[e]):r[e]&&r[e][n]}},1246:(e,n,t)=>{var r=t(648),o=t(8173),i=t(7497),a=t(5112)("iterator");e.exports=function(e){if(null!=e)return o(e,a)||o(e,"@@iterator")||i[r(e)]}},8554:(e,n,t)=>{var r=t(7854),o=t(6916),i=t(9662),a=t(9670),l=t(6330),c=t(1246),u=r.TypeError;e.exports=function(e,n){var t=arguments.length<2?c(e):n;if(i(t))return a(o(t,e));throw u(l(e)+" is not iterable")}},8173:(e,n,t)=>{var r=t(9662);e.exports=function(e,n){var t=e[n];return null==t?void 0:r(t)}},647:(e,n,t)=>{var r=t(1702),o=t(7908),i=Math.floor,a=r("".charAt),l=r("".replace),c=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,n,t,r,f,p){var d=t+e.length,h=r.length,g=s;return void 0!==f&&(f=o(f),g=u),l(p,g,(function(o,l){var u;switch(a(l,0)){case"$":return"$";case"&":return e;case"`":return c(n,0,t);case"'":return c(n,d);case"<":u=f[c(l,1,-1)];break;default:var s=+l;if(0===s)return o;if(s>h){var p=i(s/10);return 0===p?o:p<=h?void 0===r[p-1]?a(l,1):r[p-1]+a(l,1):o}u=r[s-1]}return void 0===u?"":u}))}},7854:(e,n,t)=>{var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t.g&&t.g)||function(){return this}()||Function("return this")()},2597:(e,n,t)=>{var r=t(1702),o=t(7908),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,n){return i(o(e),n)}},3501:e=>{e.exports={}},490:(e,n,t)=>{var r=t(5005);e.exports=r("document","documentElement")},4664:(e,n,t)=>{var r=t(9781),o=t(7293),i=t(317);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:(e,n,t)=>{var r=t(7854),o=t(1702),i=t(7293),a=t(4326),l=r.Object,c=o("".split);e.exports=i((function(){return!l("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?c(e,""):l(e)}:l},9587:(e,n,t)=>{var r=t(614),o=t(111),i=t(7674);e.exports=function(e,n,t){var a,l;return i&&r(a=n.constructor)&&a!==t&&o(l=a.prototype)&&l!==t.prototype&&i(e,l),e}},2788:(e,n,t)=>{var r=t(1702),o=t(614),i=t(5465),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},2423:(e,n,t)=>{var r=t(2109),o=t(1702),i=t(3501),a=t(111),l=t(2597),c=t(3070).f,u=t(8006),s=t(1156),f=t(2050),p=t(9711),d=t(6677),h=!1,g=p("meta"),v=0,A=function(e){c(e,g,{value:{objectID:"O"+v++,weakData:{}}})},b=e.exports={enable:function(){b.enable=function(){},h=!0;var e=u.f,n=o([].splice),t={};t[g]=1,e(t).length&&(u.f=function(t){for(var r=e(t),o=0,i=r.length;o{var r,o,i,a=t(8536),l=t(7854),c=t(1702),u=t(111),s=t(8880),f=t(2597),p=t(5465),d=t(6200),h=t(3501),g="Object already initialized",v=l.TypeError,A=l.WeakMap;if(a||p.state){var b=p.state||(p.state=new A),m=c(b.get),y=c(b.has),E=c(b.set);r=function(e,n){if(y(b,e))throw new v(g);return n.facade=e,E(b,e,n),n},o=function(e){return m(b,e)||{}},i=function(e){return y(b,e)}}else{var _=d("state");h[_]=!0,r=function(e,n){if(f(e,_))throw new v(g);return n.facade=e,s(e,_,n),n},o=function(e){return f(e,_)?e[_]:{}},i=function(e){return f(e,_)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(n){var t;if(!u(n)||(t=o(n)).type!==e)throw v("Incompatible receiver, "+e+" required");return t}}}},7659:(e,n,t)=>{var r=t(5112),o=t(7497),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},3157:(e,n,t)=>{var r=t(4326);e.exports=Array.isArray||function(e){return"Array"==r(e)}},614:e=>{e.exports=function(e){return"function"==typeof e}},4411:(e,n,t)=>{var r=t(1702),o=t(7293),i=t(614),a=t(648),l=t(5005),c=t(2788),u=function(){},s=[],f=l("Reflect","construct"),p=/^\s*(?:class|function)\b/,d=r(p.exec),h=!p.exec(u),g=function(e){if(!i(e))return!1;try{return f(u,s,e),!0}catch(e){return!1}};e.exports=!f||o((function(){var e;return g(g.call)||!g(Object)||!g((function(){e=!0}))||e}))?function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return h||!!d(p,c(e))}:g},4705:(e,n,t)=>{var r=t(7293),o=t(614),i=/#|\.prototype\./,a=function(e,n){var t=c[l(e)];return t==s||t!=u&&(o(n)?r(n):!!n)},l=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",s=a.POLYFILL="P";e.exports=a},111:(e,n,t)=>{var r=t(614);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},1913:e=>{e.exports=!1},7850:(e,n,t)=>{var r=t(111),o=t(4326),i=t(5112)("match");e.exports=function(e){var n;return r(e)&&(void 0!==(n=e[i])?!!n:"RegExp"==o(e))}},2190:(e,n,t)=>{var r=t(7854),o=t(5005),i=t(614),a=t(7976),l=t(3307),c=r.Object;e.exports=l?function(e){return"symbol"==typeof e}:function(e){var n=o("Symbol");return i(n)&&a(n.prototype,c(e))}},408:(e,n,t)=>{var r=t(7854),o=t(9974),i=t(6916),a=t(9670),l=t(6330),c=t(7659),u=t(6244),s=t(7976),f=t(8554),p=t(1246),d=t(9212),h=r.TypeError,g=function(e,n){this.stopped=e,this.result=n},v=g.prototype;e.exports=function(e,n,t){var r,A,b,m,y,E,_,C=t&&t.that,w=!(!t||!t.AS_ENTRIES),x=!(!t||!t.IS_ITERATOR),k=!(!t||!t.INTERRUPTED),S=o(n,C),O=function(e){return r&&d(r,"normal",e),new g(!0,e)},B=function(e){return w?(a(e),k?S(e[0],e[1],O):S(e[0],e[1])):k?S(e,O):S(e)};if(x)r=e;else{if(!(A=p(e)))throw h(l(e)+" is not iterable");if(c(A)){for(b=0,m=u(e);m>b;b++)if((y=B(e[b]))&&s(v,y))return y;return new g(!1)}r=f(e,A)}for(E=r.next;!(_=i(E,r)).done;){try{y=B(_.value)}catch(e){d(r,"throw",e)}if("object"==typeof y&&y&&s(v,y))return y}return new g(!1)}},9212:(e,n,t)=>{var r=t(6916),o=t(9670),i=t(8173);e.exports=function(e,n,t){var a,l;o(e);try{if(!(a=i(e,"return"))){if("throw"===n)throw t;return t}a=r(a,e)}catch(e){l=!0,a=e}if("throw"===n)throw t;if(l)throw a;return o(a),t}},3383:(e,n,t)=>{"use strict";var r,o,i,a=t(7293),l=t(614),c=t(30),u=t(9518),s=t(1320),f=t(5112),p=t(1913),d=f("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=u(u(i)))!==Object.prototype&&(r=o):h=!0),null==r||a((function(){var e={};return r[d].call(e)!==e}))?r={}:p&&(r=c(r)),l(r[d])||s(r,d,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},7497:e=>{e.exports={}},6244:(e,n,t)=>{var r=t(7466);e.exports=function(e){return r(e.length)}},133:(e,n,t)=>{var r=t(7392),o=t(7293);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8536:(e,n,t)=>{var r=t(7854),o=t(614),i=t(2788),a=r.WeakMap;e.exports=o(a)&&/native code/.test(i(a))},3929:(e,n,t)=>{var r=t(7854),o=t(7850),i=r.TypeError;e.exports=function(e){if(o(e))throw i("The method doesn't accept regular expressions");return e}},1574:(e,n,t)=>{"use strict";var r=t(9781),o=t(1702),i=t(6916),a=t(7293),l=t(1956),c=t(5181),u=t(5296),s=t(7908),f=t(8361),p=Object.assign,d=Object.defineProperty,h=o([].concat);e.exports=!p||a((function(){if(r&&1!==p({b:1},p(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},n={},t=Symbol(),o="abcdefghijklmnopqrst";return e[t]=7,o.split("").forEach((function(e){n[e]=e})),7!=p({},e)[t]||l(p({},n)).join("")!=o}))?function(e,n){for(var t=s(e),o=arguments.length,a=1,p=c.f,d=u.f;o>a;)for(var g,v=f(arguments[a++]),A=p?h(l(v),p(v)):l(v),b=A.length,m=0;b>m;)g=A[m++],r&&!i(d,v,g)||(t[g]=v[g]);return t}:p},30:(e,n,t)=>{var r,o=t(9670),i=t(6048),a=t(748),l=t(3501),c=t(490),u=t(317),s=t(6200),f=s("IE_PROTO"),p=function(){},d=function(e){return"