forked from microsoft/BotBuilder-Samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[50.teams-messaging-extensions-search]: Sample enhancement Messaging …
…Extension C# All commands Implementation (microsoft#3076) * teams-messaging-extension-auth-config for search action and link unfurling * Commit Read Me * ReadMe Fix * Manifest commit * Teams messaging extension auth configuration code refactor and issue fix * Removed unused method along with adaptive card json file. * Messaging Extension C# All commands Implementation We have integrated following in the existing sample 1. Adaptive card on search 2. Connector Card on search 3. Result Grid 3. Default Query initial run set to true * ME Search Review comments Update * ME Search Build issue Fixes * Removed commented code from connector card json * Messaging Extension Review comments fixes * Manifest Update * Search review fixes * ME Search Issue fixes * Review comments update * ME Search Review comment fixes * Revert "ME Search Review comment fixes" This reverts commit 1996329. * Code cleanup * Merge issue Fix * ME Search Merge issues Fixes * ME Search Revert changes * msgext search cards update * Update appsettings.json * Fixing Build issues and comments Co-authored-by: Wajeed-msft <[email protected]>
- Loading branch information
1 parent
6d7b2b9
commit d360da1
Showing
15 changed files
with
261 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
samples/csharp_dotnetcore/50.teams-messaging-extensions-search/Resources/RestaurantCard.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json", | ||
"type": "AdaptiveCard", | ||
"version": "1.0", | ||
"body": [ | ||
{ | ||
"speak": "Tom's Pie is a pizza restaurant which is rated 9.3 by customers.", | ||
"type": "ColumnSet", | ||
"columns": [ | ||
{ | ||
"type": "Column", | ||
"width": 2, | ||
"items": [ | ||
{ | ||
"type": "TextBlock", | ||
"text": "**PIZZA**" | ||
}, | ||
{ | ||
"type": "TextBlock", | ||
"text": "Tom's Pie", | ||
"weight": "bolder", | ||
"size": "extraLarge", | ||
"spacing": "none" | ||
}, | ||
{ | ||
"type": "TextBlock", | ||
"text": "4.2 $", | ||
"isSubtle": true, | ||
"spacing": "none" | ||
}, | ||
{ | ||
"type": "TextBlock", | ||
"text": "**Matt H. said** \"I'm compelled to give this place 5 stars due to the number of times I've chosen to eat here this past year!\"", | ||
"size": "small", | ||
"wrap": true | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "Column", | ||
"width": 1, | ||
"items": [ | ||
{ | ||
"type": "Image", | ||
"url": "https://picsum.photos/300?image=882", | ||
"size": "auto" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"actions": [ | ||
{ | ||
"type": "Action.OpenUrl", | ||
"title": "More Info", | ||
"url": "https://www.youtube.com/watch?v=CH2seLS5Wb0" | ||
} | ||
] | ||
} |
38 changes: 38 additions & 0 deletions
38
samples/csharp_dotnetcore/50.teams-messaging-extensions-search/Resources/connectorCard.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"@context": "https://schema.org/extensions", | ||
"@type": "MessageCard", | ||
"sections": [ | ||
{ | ||
"activityTitle": "Steve Tweeted", | ||
"activitySubtitle": "With #MicrosoftTeams", | ||
"activityImage": "<<YOUR-BASE-URL>>/MSC12_Oscar_002.jpg" | ||
}, | ||
{ | ||
"facts": [ | ||
{ | ||
"name": "Posted By:", | ||
"value": "Steve" | ||
}, | ||
{ | ||
"name": "Posted At:", | ||
"value": "12:00 PM" | ||
}, | ||
{ | ||
"name": "Tweet:", | ||
"value": "Hello Everyone!! Good Afternoon :-)" | ||
} | ||
], | ||
"text": "A tweet with #MicrosoftTeams has been posted:" | ||
} | ||
], | ||
"potentialAction": [ | ||
{ | ||
"@context": "http://schema.org", | ||
"@type": "ViewAction", | ||
"name": "View all Tweets", | ||
"target": [ | ||
"https://twitter.com/search?q=%23MicrosoftTeams" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
samples/csharp_dotnetcore/50.teams-messaging-extensions-search/appsettings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"MicrosoftAppId": "", | ||
"MicrosoftAppPassword": "" | ||
"MicrosoftAppPassword": "", | ||
"BaseURL":"" | ||
} |
Binary file added
BIN
+24 KB
...arp_dotnetcore/50.teams-messaging-extensions-search/wwwroot/MSC12_Oscar_002.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+12.1 KB
samples/csharp_dotnetcore/50.teams-messaging-extensions-search/wwwroot/img1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+31.5 KB
samples/csharp_dotnetcore/50.teams-messaging-extensions-search/wwwroot/img10.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.8 KB
samples/csharp_dotnetcore/50.teams-messaging-extensions-search/wwwroot/img11.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+130 KB
samples/csharp_dotnetcore/50.teams-messaging-extensions-search/wwwroot/img2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.88 KB
samples/csharp_dotnetcore/50.teams-messaging-extensions-search/wwwroot/img3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+157 KB
samples/csharp_dotnetcore/50.teams-messaging-extensions-search/wwwroot/img5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.32 KB
samples/csharp_dotnetcore/50.teams-messaging-extensions-search/wwwroot/img6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+437 KB
samples/csharp_dotnetcore/50.teams-messaging-extensions-search/wwwroot/img8.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.