Class CardWithId

কার্ড উইথআইডি

CardWithId অবজেক্টের জন্য একজন নির্মাতা। একাধিক কার্ড পাঠানোর সময় এই শ্রেণী একটি বার্তায় একটি কার্ডের জন্য একটি অনন্য শনাক্তকারী।

শুধুমাত্র Google Chat অ্যাপের জন্য উপলব্ধ। Google Workspace অ্যাড-অনগুলির জন্য উপলব্ধ নয়।

const cardSection = CardService.newCardSection();
cardSection.addWidget(
    CardService.newTextParagraph().setText('This is a text paragraph widget.'));

const card = CardService.newCardBuilder()
    .setHeader(CardService.newCardHeader().setTitle('Card title'))
    .addSection(cardSection)
    .build();

const cardWithId = CardService.newCardWithId()
    .setCardId('card_id')
    .setCard(card);

পদ্ধতি

পদ্ধতি রিটার্ন টাইপ সংক্ষিপ্ত বর্ণনা
setCard(card) CardWithId কার্ডের কার্ড cardWithId সেট করে।
setCardId(id) CardWithId cardWithId অনন্য কার্ড আইডি সেট করে।

বিস্তারিত ডকুমেন্টেশন

setCard(card)

কার্ডের কার্ড cardWithId সেট করে।

const cardHeader = CardService.newCardHeader()
    .setTitle('Card Header Title')
    .setSubtitle('Card Header Subtitle');

const card = CardService.newCardBuilder()
    .setHeader(cardHeader)
    .build();

const cardWithId = CardService.newCardWithId()
    .setCard(card);

পরামিতি

নাম টাইপ বর্ণনা
card Card ব্যবহার করার জন্য Card

প্রত্যাবর্তন

CardWithId — এই বস্তুটি, চেইন করার জন্য।


setCardId(id)

cardWithId অনন্য কার্ড আইডি সেট করে।

const cardWithId = CardService.newCardWithId();

// Sets the card ID of the cardWithId.
cardWithId.setCardId('card_id');

পরামিতি

নাম টাইপ বর্ণনা
id String ব্যবহার করার জন্য টেক্সট.

প্রত্যাবর্তন

CardWithId — এই বস্তুটি, চেইন করার জন্য।