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

AnimationCardScorable.cs 1.3 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
37
38
39
40
41
42
43
44
  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 AnimationCardScorable : RichCardScorable
  7. {
  8. public AnimationCardScorable(IBotToUser botToUser, IBotData botData) : base(botToUser, botData)
  9. {
  10. }
  11. public override string Trigger
  12. {
  13. get
  14. {
  15. return "Animation";
  16. }
  17. }
  18. protected override IList<Attachment> GetCardAttachments()
  19. {
  20. return new List<Attachment>
  21. {
  22. new AnimationCard
  23. {
  24. Title = "Microsoft Bot Framework",
  25. Subtitle = "Animation Card",
  26. Image = new ThumbnailUrl
  27. {
  28. Url = "https://docs.microsoft.com/en-us/bot-framework/media/how-it-works/architecture-resize.png"
  29. },
  30. Media = new List<MediaUrl>
  31. {
  32. new MediaUrl()
  33. {
  34. Url = "http://i.giphy.com/Ki55RUbOV5njy.gif"
  35. }
  36. }
  37. }.ToAttachment()
  38. };
  39. }
  40. }
  41. }
Tip!

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

Comments

Loading...