AdaptiveCardInvokeResponseFactory Class

Definition

Contains utility methods for creating various types of AdaptiveCardInvokeResponse.

public static class AdaptiveCardInvokeResponseFactory
type AdaptiveCardInvokeResponseFactory = class
Public Class AdaptiveCardInvokeResponseFactory
Inheritance
AdaptiveCardInvokeResponseFactory

Methods

Name Description
AdaptiveCard(String)

Returns response with type AdaptiveCard.

BadRequest(String)

Creates an Error of type "BadRequest" AdaptiveCardInvokeResponse.

Error(HttpStatusCode, String, String)

Creates an Error AdaptiveCardInvokeResponse.

IncorrectAuthCode()

Returns response with type IncorrectAuthCode.

InternalError(String)

Creates an Error of type InternalError AdaptiveCardInvokeResponse.

Login(OAuthCard)

Returns response with type LoginRequest.

Message(String)

Returns response with type Message.

NotSupported(String)

Creates an Error of type "NotSupported" AdaptiveCardInvokeResponse.

PreConditionFailed(String, String)

Returns response with type PreConditionFailed.

SearchResponse(Object)

Create a search response with the specified value.

TryValidateActionInvokeValue(IActivity, String, AdaptiveCardInvokeValue, AdaptiveCardInvokeResponse)

Validates that the Activity.Value contains a valid AdaptiveCardInvokeValue value.

TryValidateSearchInvokeValue(IActivity, AdaptiveCardSearchInvokeValue, AdaptiveCardInvokeResponse)

Validates that the Activity.Value contains a valid AdaptiveCardSearchInvokeValue value.

Applies to