GraphConverter

open class GraphConverter(graphProcessor: AbstractGraphProcessor, gson: Gson, registry: GraphQLDocumentRegistry? = null) : Converter.Factory(source)

Body for GraphQL requests and responses, closed for modification but open for extension.

Parameters

graphProcessor

Processor used for asset-based lookup. Registry-only factory overloads may provide a no-op implementation when no asset fallback is required.

gson

Gson instance used for request and response serialization.

registry

Optional GraphQLDocumentRegistry for build-time generated operation documents.

Constructors

Link copied to clipboard
constructor(graphProcessor: AbstractGraphProcessor, gson: Gson, registry: GraphQLDocumentRegistry? = null)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun requestBodyConverter(type: Type, parameterAnnotations: Array<out Annotation>, methodAnnotations: Array<out Annotation>, retrofit: Retrofit): Converter<*, RequestBody>?

Response body converter delegates logic processing to a child class that handles wrapping and deserialization of the json response data.

Link copied to clipboard
open override fun responseBodyConverter(type: Type, annotations: Array<out Annotation>, retrofit: Retrofit): Converter<ResponseBody, *>?

Response body converter delegates logic processing to a child class that handles wrapping and deserialization of the json response data.

Link copied to clipboard
fun setLogLevel(logLevel: LogLevel)

Sets the minimum level for log messages. Attempted messages with a too low log level are skipped and not printed to the system log.

Link copied to clipboard

Overrides the minimum level for log messages on the logger.

Link copied to clipboard
open fun stringConverter(type: Type?, annotations: Array<out Annotation?>?, retrofit: Retrofit?): Converter<*, String?>?