Команды MS: удалите имя расширения из ThumbnailCard - PullRequest
1 голос
/ 07 октября 2019

У меня есть расширение сообщения для команд MS (на основе Bot Framework v3). Когда я создаю ThumbnailCard и возвращаю его пользователю, Команды вставляют имя и логотип моего приложения на карту. Можно ли их как-нибудь удалить?

Вот так я создаю карту

var card = new ThumbnailCard { Text = "some text", Title= "title"};

Вот скриншот:

image

Ответы [ 2 ]

1 голос
/ 08 октября 2019

Нет, приложение не может удалить атрибуцию на карточках, созданных расширением обмена сообщениями. Команды автоматически покажут это.

0 голосов
/ 07 октября 2019

Объект ThumbnailCard имеет конструктор:

/// <summary>
/// Initializes a new instance of the ThumbnailCard class.
/// </summary>
/// <param name="title">Title of the card</param>
/// <param name="subtitle">Subtitle of the card</param>
/// <param name="text">Text for the card</param>
/// <param name="images">Array of images for the card</param>
/// <param name="buttons">Set of actions applicable to the current
/// card</param>
/// <param name="tap">This action will be activated when user taps on
/// the card itself</param>
public ThumbnailCard(string title = default(string), string subtitle = default(string), string text = default(string), IList<CardImage> images = default(IList<CardImage>), IList<CardAction> buttons = default(IList<CardAction>), CardAction tap = default(CardAction))
{
    Title = title;
    Subtitle = subtitle;
    Text = text;
    Images = images;
    Buttons = buttons;
    Tap = tap;
    CustomInit();
}

Вы пробовали с images = new List<CardImage>()? то же самое для кнопок

...