Language

TaskModuleResponseBuilder Class

Definition

Builder for TaskModuleResponse.

public class TaskModuleResponseBuilder
type TaskModuleResponseBuilder = class
Public Class TaskModuleResponseBuilder
Inheritance
TaskModuleResponseBuilder

Constructors

Name Description
TaskModuleResponseBuilder()

Methods

Name Description
Build(Int32)

Builds the TaskModuleResponse and wraps it in an InvokeResponse<TBody>.

WithCard(TeamsAttachment)

Sets the card content for Continue responses.

WithHeight(Object)

Sets the height. Can be a number (pixels) or use TaskModuleSizes constants.

WithMessage(String)

Sets the message for Message responses.

WithTitle(String)

Sets the title of the task module.

WithType(TaskModuleResponseType)

Sets the type of the response. Use TaskModuleResponseTypes constants.

WithWidth(Object)

Sets the width. Can be a number (pixels) or use TaskModuleSizes constants.

Applies to