Trình tạo cho các đối tượng Dialog.
Chỉ dành cho ứng dụng Google Chat. Không dùng được cho các tiện ích bổ sung của Google Workspace.
const card = CardService.newCardBuilder() .setHeader(CardService.newCardHeader().setTitle('Card title')) .build(); const dialog = CardService.newDialog().setBody(card); const dialogAction = CardService.newDialogAction().setDialog(dialog);
Phương thức
| Phương thức | Kiểu dữ liệu trả về | Mô tả ngắn | 
|---|---|---|
| set | Dialog | Đặt trạng thái hành động của Dialog. | 
| set | Dialog | Đặt hộp thoại của Dialog. | 
Tài liệu chi tiết
set
Đặt trạng thái hành động của Dialog.
const actionStatus = CardService.newActionStatus().setStatusCode( CardService.Status.OK, ); const dialogAction = CardService.newDialogAction().setActionStatus(actionStatus);
Thông số
| Tên | Loại | Mô tả | 
|---|---|---|
| action | Action | Actioncần sử dụng. | 
Cầu thủ trả bóng
Dialog – Đối tượng này, để tạo chuỗi.
set
Đặt hộp thoại của Dialog.
const card = CardService.newCardBuilder() .setHeader(CardService.newCardHeader().setTitle('card title')) .build(); // Sets the card of the dialog. const dialog = CardService.newDialog().setBody(card); const dialogAction = CardService.newDialogAction().setDialog(dialog);
Thông số
| Tên | Loại | Mô tả | 
|---|---|---|
| dialog | Dialog | Dialogcần sử dụng. | 
Cầu thủ trả bóng
Dialog – Đối tượng này, để tạo chuỗi.