Table of Contents

Class KotlinGenerationOptions

Namespace
TypedRest.CodeGeneration.Kotlin
Assembly
TypedRest.CodeGeneration.Kotlin.dll

Options controlling the generation of a Kotlin TypedRest client.

public class KotlinGenerationOptions : JvmGenerationOptions
Inheritance
object
KotlinGenerationOptions
Inherited Members

Constructors

KotlinGenerationOptions(string)

Creates new generation options.

public KotlinGenerationOptions(string serviceName)

Parameters

serviceName string

The service name to use for the entry endpoint.

KotlinGenerationOptions(ClientGenerationOptions)

Creates new generation options, copying the common options from other.

public KotlinGenerationOptions(ClientGenerationOptions other)

Parameters

other ClientGenerationOptions

Properties

DefaultSerializerName

The name of the serializer this target language uses when none is chosen.

protected override string DefaultSerializerName { get; }

Property Value

string

SupportedSerializers

The names accepted by Serializer, most preferred first. Empty if the target language has no serializer to choose, either because it does not annotate DTOs or because it only supports one.

public override IReadOnlyCollection<string> SupportedSerializers { get; }

Property Value

IReadOnlyCollection<string>

Remarks

Target languages override this to declare what they can generate for.