Table of Contents

Class UserDetailsResponseContext

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

Constructors

UserDetailsResponseContext()

public UserDetailsResponseContext()

UserDetailsResponseContext(JsonSerializerOptions)

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

public UserDetailsResponseContext(JsonSerializerOptions options)

Parameters

options JsonSerializerOptions

The run time provided options for the context instance.

Properties

Country

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

public JsonTypeInfo<Country> Country { get; }

Property Value

JsonTypeInfo<Country>

Default

The default JsonSerializerContext associated with a default JsonSerializerOptions instance.

public static UserDetailsResponseContext Default { get; }

Property Value

UserDetailsResponseContext

Double

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

public JsonTypeInfo<double> Double { get; }

Property Value

JsonTypeInfo<double>

DriverType

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

public JsonTypeInfo<DriverType> DriverType { get; }

Property Value

JsonTypeInfo<DriverType>

Gamification

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

public JsonTypeInfo<Gamification> Gamification { get; }

Property Value

JsonTypeInfo<Gamification>

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>

Region

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

public JsonTypeInfo<Region> Region { get; }

Property Value

JsonTypeInfo<Region>

ResponseStatus

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

public JsonTypeInfo<ResponseStatus> ResponseStatus { get; }

Property Value

JsonTypeInfo<ResponseStatus>

Single

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

public JsonTypeInfo<float> Single { get; }

Property Value

JsonTypeInfo<float>

String

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

public JsonTypeInfo<string> String { get; }

Property Value

JsonTypeInfo<string>

UserDetailsData

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

public JsonTypeInfo<UserDetailsData> UserDetailsData { get; }

Property Value

JsonTypeInfo<UserDetailsData>

UserDetailsResponse

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

public JsonTypeInfo<UserDetailsResponse> UserDetailsResponse { get; }

Property Value

JsonTypeInfo<UserDetailsResponse>

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.