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