Table of Contents

Class CardExtensions

Namespace
Kook
Assembly
Kook.Net.Core.dll

Provides extension methods for IElement, IModule and ICard.

public static class CardExtensions
Inheritance
CardExtensions
Inherited Members

Methods

ToBuilder(ActionGroupModule)

Converts the ActionGroupModule to a ActionGroupModuleBuilder with the same properties.

public static ActionGroupModuleBuilder ToBuilder(this ActionGroupModule entity)

Parameters

entity ActionGroupModule

Returns

ActionGroupModuleBuilder

ToBuilder(AudioModule)

Converts the AudioModule to an AudioModuleBuilder with the same properties.

public static AudioModuleBuilder ToBuilder(this AudioModule entity)

Parameters

entity AudioModule

Returns

AudioModuleBuilder

ToBuilder(ButtonElement)

Converts the ButtonElement to a ButtonElementBuilder with the same properties.

public static ButtonElementBuilder ToBuilder(this ButtonElement entity)

Parameters

entity ButtonElement

Returns

ButtonElementBuilder

ToBuilder(Card)

Converts the Card to a CardBuilder with the same properties.

public static CardBuilder ToBuilder(this Card entity)

Parameters

entity Card

Returns

CardBuilder

ToBuilder(ContainerModule)

Converts the ContainerModule to a ContainerModuleBuilder with the same properties.

public static ContainerModuleBuilder ToBuilder(this ContainerModule entity)

Parameters

entity ContainerModule

Returns

ContainerModuleBuilder

ToBuilder(ContextModule)

Converts the ContextModule to a ContextModuleBuilder with the same properties.

public static ContextModuleBuilder ToBuilder(this ContextModule entity)

Parameters

entity ContextModule

Returns

ContextModuleBuilder

ToBuilder(CountdownModule)

Converts the CountdownModule to a CountdownModuleBuilder with the same properties.

public static CountdownModuleBuilder ToBuilder(this CountdownModule entity)

Parameters

entity CountdownModule

Returns

CountdownModuleBuilder

ToBuilder(DividerModule)

Converts the DividerModule to a DividerModuleBuilder with the same properties.

public static DividerModuleBuilder ToBuilder(this DividerModule _)

Parameters

_ DividerModule

Returns

DividerModuleBuilder

ToBuilder(FileModule)

Converts the FileModule to a FileModuleBuilder with the same properties.

public static FileModuleBuilder ToBuilder(this FileModule entity)

Parameters

entity FileModule

Returns

FileModuleBuilder

ToBuilder(HeaderModule)

Converts the HeaderModule to a HeaderModuleBuilder with the same properties.

public static HeaderModuleBuilder ToBuilder(this HeaderModule entity)

Parameters

entity HeaderModule

Returns

HeaderModuleBuilder

ToBuilder(ICard)

Converts the ICard to an ICardBuilder with the same properties.

public static ICardBuilder ToBuilder(this ICard entity)

Parameters

entity ICard

Returns

ICardBuilder

ToBuilder(IElement)

Converts the IElement to a IElementBuilder with the same properties.

public static IElementBuilder ToBuilder(this IElement entity)

Parameters

entity IElement

Returns

IElementBuilder

ToBuilder(IModule)

Converts the IModule to a IModuleBuilder with the same properties.

public static IModuleBuilder ToBuilder(this IModule entity)

Parameters

entity IModule

Returns

IModuleBuilder

ToBuilder(ImageElement)

Converts the ImageElement to an ImageElementBuilder with the same properties.

public static ImageElementBuilder ToBuilder(this ImageElement entity)

Parameters

entity ImageElement

Returns

ImageElementBuilder

ToBuilder(ImageGroupModule)

Converts the ImageGroupModule to a ImageGroupModuleBuilder with the same properties.

public static ImageGroupModuleBuilder ToBuilder(this ImageGroupModule entity)

Parameters

entity ImageGroupModule

Returns

ImageGroupModuleBuilder

ToBuilder(InviteModule)

Converts the InviteModule to an InviteModuleBuilder with the same properties.

public static InviteModuleBuilder ToBuilder(this InviteModule entity)

Parameters

entity InviteModule

Returns

InviteModuleBuilder

ToBuilder(KMarkdownElement)

Converts the KMarkdownElement to a KMarkdownElementBuilder with the same properties.

public static KMarkdownElementBuilder ToBuilder(this KMarkdownElement entity)

Parameters

entity KMarkdownElement

Returns

KMarkdownElementBuilder

ToBuilder(ParagraphStruct)

Converts the ParagraphStruct to a ParagraphStructBuilder with the same properties.

public static ParagraphStructBuilder ToBuilder(this ParagraphStruct entity)

Parameters

entity ParagraphStruct

Returns

ParagraphStructBuilder

ToBuilder(PlainTextElement)

Converts the PlainTextElement to a PlainTextElementBuilder with the same properties.

public static PlainTextElementBuilder ToBuilder(this PlainTextElement entity)

Parameters

entity PlainTextElement

Returns

PlainTextElementBuilder

ToBuilder(SectionModule)

Converts the SectionModule to a SectionModuleBuilder with the same properties.

public static SectionModuleBuilder ToBuilder(this SectionModule entity)

Parameters

entity SectionModule

Returns

SectionModuleBuilder

ToBuilder(VideoModule)

Converts the VideoModule to a VideoModuleBuilder with the same properties.

public static VideoModuleBuilder ToBuilder(this VideoModule entity)

Parameters

entity VideoModule

Returns

VideoModuleBuilder