次の方法で共有


SigninCard class

サインイン カードの作成を簡略化するカード ビルダー クラス。

コンストラクター

SigninCard(Session)

新しい SigninCard を作成します。

メソッド

button(TextType, string)

サインイン ボタンのラベルとリンク。

text(TextType, any[])

カードのタイトル。

toAttachment()

カードの JSON を返します。

コンストラクターの詳細

SigninCard(Session)

新しい SigninCard を作成します。

new SigninCard(session?: Session)

パラメーター

session
Session

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

メソッドの詳細

button(TextType, string)

サインイン ボタンのラベルとリンク。

function button(title: TextType, url: string)

パラメーター

title
TextType
url

string

戻り値

text(TextType, any[])

カードのタイトル。

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

パラメーター

prompts
TextType
args

any[]

戻り値

toAttachment()

カードの JSON を返します。

function toAttachment()

戻り値