Table of Contents

Struct NotImplementedPokeResource

Namespace
Kook
Assembly
Kook.Net.Core.dll

Represents a poke resource that is not implemented to be resolved yet.

public struct NotImplementedPokeResource : IPokeResource
Implements
Inherited Members

Properties

JsonNode

Gets the raw JSON of the embed.

public readonly JsonNode JsonNode { get; }

Property Value

JsonNode

A JsonNode representing the raw JSON of the embed.

RawType

Gets the type of the poke resource.

public readonly string RawType { get; }

Property Value

string

A string representing the type of the poke resource.

Remarks

This value originally came from the type field of the JsonNode.

Type

Gets the type of the poke resource.

public PokeResourceType Type { get; }

Property Value

PokeResourceType

Methods

Resolve<T>(Func<NotImplementedPokeResource, T>)

Resolves the embed to a concrete type via delegate.

public T Resolve<T>(Func<NotImplementedPokeResource, T> resolvingFunc) where T : IPokeResource

Parameters

resolvingFunc Func<NotImplementedPokeResource, T>

The resolving function to use when resolves the embed.

Returns

T

A T representing the resolved embed.

Type Parameters

T

The concrete type to deserialize the embed to.

Resolve<T>(JsonSerializerOptions?)

Resolves the embed to a concrete type via JSON deserialization.

public T? Resolve<T>(JsonSerializerOptions? options = null) where T : IPokeResource

Parameters

options JsonSerializerOptions

The options to use when deserializing the embed.

Returns

T

A T representing the resolved embed.

Type Parameters

T

The concrete type to deserialize the embed to.