Package io.github.ermadmi78.kobby
Class KobbyKotlinAdapterExtension
-
- All Implemented Interfaces:
public class KobbyKotlinAdapterExtensionConfiguration of adapter classes generation
-
-
Field Summary
Fields Modifier and Type Field Description private BooleanextendedApiprivate BooleanthrowException
-
Constructor Summary
Constructors Constructor Description KobbyKotlinAdapterExtension()
-
Method Summary
Modifier and Type Method Description final BooleangetExtendedApi()Is extended adapter API (with GraphQL errors and extensions) enabled More details More detailsDefault: false final UnitsetExtendedApi(Boolean extendedApi)Is extended adapter API (with GraphQL errors and extensions) enabled More details More detailsDefault: false final BooleangetThrowException()Throw exception when receiving non-empty GraphQL errors More details More detailsDefault: true final UnitsetThrowException(Boolean throwException)Throw exception when receiving non-empty GraphQL errors More details More detailsDefault: true final Unitktor(Action<KobbyKotlinAdapterKtorExtension> action)Configuration of Ktor adapter classes generation -
-
Method Detail
-
getExtendedApi
final Boolean getExtendedApi()
Is extended adapter API (with GraphQL errors and extensions) enabled More details More details
Default: false
-
setExtendedApi
final Unit setExtendedApi(Boolean extendedApi)
Is extended adapter API (with GraphQL errors and extensions) enabled More details More details
Default: false
-
getThrowException
final Boolean getThrowException()
Throw exception when receiving non-empty GraphQL errors More details More details
Default: true
-
setThrowException
final Unit setThrowException(Boolean throwException)
Throw exception when receiving non-empty GraphQL errors More details More details
Default: true
-
ktor
final Unit ktor(Action<KobbyKotlinAdapterKtorExtension> action)
Configuration of Ktor adapter classes generation
-
-
-
-