أداة إنشاء لكائنات 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);
الطُرق
| الطريقة | نوع القيمة التي يتم عرضها | وصف قصير |
|---|---|---|
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: هذا العنصر، لإنشاء سلسلة.