通过


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()

返回