次の方法で共有


OAuthCard class

oauth カードの構築を簡略化するカード ビルダー クラス。

コンストラクター

OAuthCard(Session)

新しい OAuthCard を作成します。

メソッド

button(TextType)

サインイン ボタンのラベル。

connectionName(string)

使用する OAuth 接続の名前。

create(ChatConnector, Session, string, string, string, (err: Error, message: Message) => void)

適切なサインイン添付ファイルを含むメッセージを返すファクトリ メソッド

text(TextType, any[])

カードのタイトル。

toAttachment()

カードの JSON を返します。

コンストラクターの詳細

OAuthCard(Session)

新しい OAuthCard を作成します。

new OAuthCard(session?: Session)

パラメーター

session
Session

(省略可能) は、任意のテキストをローカライズするために使用されます。

メソッドの詳細

button(TextType)

サインイン ボタンのラベル。

function button(title: TextType)

パラメーター

title
TextType

戻り値

connectionName(string)

使用する OAuth 接続の名前。

function connectionName(name: string)

パラメーター

name

string

戻り値

create(ChatConnector, Session, string, string, string, (err: Error, message: Message) => void)

適切なサインイン添付ファイルを含むメッセージを返すファクトリ メソッド

static function create(connector: ChatConnector, session: Session, connectionName: string, text: string, buttonTitle: string, done: (err: Error, message: Message) => void)

パラメーター

connector
ChatConnector
session
Session
connectionName

string

text

string

buttonTitle

string

done

(err: Error, message: Message) => void

text(TextType, any[])

カードのタイトル。

function text(prompts: TextType, args: any[])

パラメーター

prompts
TextType
args

any[]

戻り値

toAttachment()

カードの JSON を返します。

function toAttachment()

戻り値