Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

ThumbnailCardScorable.cs 1.4 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
  1. namespace TestBot.Scorables
  2. {
  3. using System.Collections.Generic;
  4. using Microsoft.Bot.Builder.Dialogs.Internals;
  5. using Microsoft.Bot.Connector;
  6. public class ThumbnailCardScorable : RichCardScorable
  7. {
  8. public ThumbnailCardScorable(IBotToUser botToUser, IBotData botData) : base(botToUser, botData)
  9. {
  10. }
  11. public override string Trigger
  12. {
  13. get
  14. {
  15. return "Thumbnail";
  16. }
  17. }
  18. protected override IList<Attachment> GetCardAttachments()
  19. {
  20. return new List<Attachment>
  21. {
  22. new ThumbnailCard
  23. {
  24. Title = "BotFramework Thumbnail Card",
  25. Subtitle = "Your bots — wherever your users are talking",
  26. Text = "Build and connect intelligent bots to interact with your users naturally wherever they are, from text/sms to Skype, Slack, Office 365 mail and other popular services.",
  27. Images = new List<CardImage> { new CardImage("https://sec.ch9.ms/ch9/7ff5/e07cfef0-aa3b-40bb-9baa-7c9ef8ff7ff5/buildreactionbotframework_960.jpg") },
  28. Buttons = new List<CardAction> { new CardAction(ActionTypes.OpenUrl, "Get Started", value: "https://docs.microsoft.com/bot-framework") }
  29. }.ToAttachment()
  30. };
  31. }
  32. }
  33. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...