Table of Contents

Class AuthenticationResponseContext

Namespace
KartaViewSharp.V1
Assembly
KartaViewSharp.dll
[JsonSerializable(typeof(AuthenticationResponse), GenerationMode = JsonSourceGenerationMode.Metadata)]
public class AuthenticationResponseContext : JsonSerializerContext, IJsonTypeInfoResolver
Inheritance
AuthenticationResponseContext
Implements
Inherited Members

Constructors

AuthenticationResponseContext()

public AuthenticationResponseContext()

AuthenticationResponseContext(JsonSerializerOptions)

Creates an instance of JsonSerializerContext and binds it with the indicated JsonSerializerOptions.

public AuthenticationResponseContext(JsonSerializerOptions options)

Parameters

options JsonSerializerOptions

The run time provided options for the context instance.

Properties

AuthenticationData

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<AuthenticationData> AuthenticationData { get; }

Property Value

JsonTypeInfo<AuthenticationData>

AuthenticationResponse

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<AuthenticationResponse> AuthenticationResponse { get; }

Property Value

JsonTypeInfo<AuthenticationResponse>

Default

The default JsonSerializerContext associated with a default JsonSerializerOptions instance.

public static AuthenticationResponseContext Default { get; }

Property Value

AuthenticationResponseContext

DriverType

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<DriverType> DriverType { get; }

Property Value

JsonTypeInfo<DriverType>

GeneratedSerializerOptions

The source-generated options associated with this context.

protected override JsonSerializerOptions? GeneratedSerializerOptions { get; }

Property Value

JsonSerializerOptions

HttpStatusCode

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<HttpStatusCode> HttpStatusCode { get; }

Property Value

JsonTypeInfo<HttpStatusCode>

Int32

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<int> Int32 { get; }

Property Value

JsonTypeInfo<int>

NullableInt32

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<int?> NullableInt32 { get; }

Property Value

JsonTypeInfo<int?>

ResponseStatus

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<ResponseStatus> ResponseStatus { get; }

Property Value

JsonTypeInfo<ResponseStatus>

String

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<string> String { get; }

Property Value

JsonTypeInfo<string>

Methods

GetTypeInfo(Type)

Gets metadata for the specified type.

public override JsonTypeInfo? GetTypeInfo(Type type)

Parameters

type Type

The type to fetch metadata for.

Returns

JsonTypeInfo

The metadata for the specified type, or null if the context has no metadata for the type.