forked from microsoft/BotBuilder-Samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AnimationCardScorable.cs
44 lines (41 loc) · 1.28 KB
/
AnimationCardScorable.cs
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
namespace TestBot.Scorables
{
using System.Collections.Generic;
using Microsoft.Bot.Builder.Dialogs.Internals;
using Microsoft.Bot.Connector;
public class AnimationCardScorable : RichCardScorable
{
public AnimationCardScorable(IBotToUser botToUser, IBotData botData) : base(botToUser, botData)
{
}
public override string Trigger
{
get
{
return "Animation";
}
}
protected override IList<Attachment> GetCardAttachments()
{
return new List<Attachment>
{
new AnimationCard
{
Title = "Microsoft Bot Framework",
Subtitle = "Animation Card",
Image = new ThumbnailUrl
{
Url = "https://docs.microsoft.com/en-us/bot-framework/media/how-it-works/architecture-resize.png"
},
Media = new List<MediaUrl>
{
new MediaUrl()
{
Url = "http://i.giphy.com/Ki55RUbOV5njy.gif"
}
}
}.ToAttachment()
};
}
}
}