אובייקט builder של DialogAction.
האפשרות הזו זמינה רק באפליקציות של Google Chat. לא זמין לתוספים של 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);
Methods
| שיטה | סוג הערך שמוחזר | תיאור קצר |
|---|---|---|
set | Dialog | הגדרת סטטוס הפעולה של Dialog. |
set | Dialog | הגדרת תיבת הדו-שיח של Dialog. |
תיעוד מפורט
setActionStatus(actionStatus)
הגדרת סטטוס הפעולה של DialogAction.
const actionStatus = CardService.newActionStatus().setStatusCode( CardService.Status.OK, ); const dialogAction = CardService.newDialogAction().setActionStatus(actionStatus);
פרמטרים
| שם | סוג | תיאור |
|---|---|---|
action | Action | ה-Action שבו רוצים להשתמש. |
חזרה
DialogAction – האובייקט הזה, לשרשור.
setDialog(dialog)
הגדרת תיבת הדו-שיח של DialogAction.
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);
פרמטרים
| שם | סוג | תיאור |
|---|---|---|
dialog | Dialog | ה-Dialog שבו רוצים להשתמש. |
חזרה
DialogAction – האובייקט הזה, לשרשור.