init: Initial commit
This commit is contained in:
14
bot/msteams/adaptivecard/card.py
Normal file
14
bot/msteams/adaptivecard/card.py
Normal file
@@ -0,0 +1,14 @@
|
||||
class AdaptiveCard:
|
||||
def __init__(self, body: list[dict] | None = None, actions: list[dict] | None = None) -> None:
|
||||
self.__body = body if body else []
|
||||
self.__actions = actions if actions else []
|
||||
|
||||
@property
|
||||
def data(self) -> dict:
|
||||
return {
|
||||
"type": "AdaptiveCard",
|
||||
"body": self.__body,
|
||||
"actions": self.__actions,
|
||||
"version": "1.6",
|
||||
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json"
|
||||
}
|
||||
Reference in New Issue
Block a user