-
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.
Implement basic logic for 'subscribe' buttons
only from memory for now
- Loading branch information
1 parent
8225ba3
commit 87dbe34
Showing
5 changed files
with
146 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,26 @@ | ||
cards: | ||
menu: | ||
- title: Label 1 | ||
text: key1 | ||
- title: Label a | ||
text: key2 | ||
- title: Label b | ||
text: key3 | ||
- title: Label c | ||
text: key4 | ||
- title: Label d | ||
text: key5 | ||
- title: Label e | ||
text: key6 | ||
welcomeCard: | ||
title: Private Notifications Center | ||
text: Lorem Ipsum | ||
|
||
unknownCard: | ||
title: "" | ||
text: Unknown command... | ||
|
||
menuCard: | ||
title: Available Options | ||
checkButton: | ||
title: CHECK my subscribed topics 🧾 | ||
value: CHECK | ||
resetButton: | ||
title: RESET all my subscribed topics ❌ | ||
value: RESET | ||
subscriptionButtons: | ||
- title: Subscribe to LATAM notifications 🇦🇷 | ||
value: LATAM | ||
- title: Subscribe to UK notifications 🇬🇧 | ||
value: UK | ||
- title: Subscribe to SPAIN notifications 🇪🇸 | ||
value: SPAIN | ||
- title: Subscribe to GERMANY notifications 🇩🇪 | ||
value: GERMANY |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
declare namespace Types { | ||
type Activity = import("botbuilder").Activity; | ||
|
||
interface Storage { | ||
add: (activity: Activity) => void; | ||
subscribe: (activity: Activity, topic: string) => void; | ||
readUser: ( | ||
username: string | ||
) => { | ||
conversationId: string; | ||
conversation: any; | ||
subscribedTo: string[]; | ||
}; | ||
} | ||
} |