Skip to content

Commit 9d25de7

Browse files
author
Sakthivel Ramasamy (sakthram)
committed
Migrate to Adaptive Card 1.3 Version
Code changes commit for webexpythonsdk's Adaptive Card 1.1 to 1.3 version upgrade
1 parent 605bc7d commit 9d25de7

File tree

10 files changed

+5688
-0
lines changed

10 files changed

+5688
-0
lines changed
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
"""Webex Adaptive Card - Init File.
2+
3+
Copyright (c) 2016-2024 Cisco and/or its affiliates.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
22+
"""
23+
24+
from webexpythonsdk.models.cards.adaptive_card_component import (
25+
AdaptiveCardComponent
26+
)
27+
from webexpythonsdk.models.cards.cards import (
28+
AdaptiveCard
29+
)
30+
from webexpythonsdk.models.cards.card_elements import (
31+
TextBlock,
32+
Image,
33+
Media,
34+
MediaSource,
35+
RichTextBlock,
36+
TextRun,
37+
)
38+
from webexpythonsdk.models.cards.containers import (
39+
ActionSet,
40+
Container,
41+
ColumnSet,
42+
Column,
43+
FactSet,
44+
Fact,
45+
ImageSet,
46+
)
47+
from webexpythonsdk.models.cards.actions import (
48+
OpenUrl,
49+
Submit,
50+
ShowCard,
51+
ToggleVisibility,
52+
TargetElement,
53+
)
54+
from webexpythonsdk.models.cards.inputs import (
55+
Text,
56+
Number,
57+
Date,
58+
Time,
59+
Toggle,
60+
ChoiceSet,
61+
Choice,
62+
)
63+
from webexpythonsdk.models.cards.types import (
64+
BackgroundImage,
65+
)
66+
from webexpythonsdk.models.cards.options import (
67+
AbstractOption,
68+
FontSize,
69+
FontType,
70+
FontWeight,
71+
Colors,
72+
BlockElementHeight,
73+
VerticalContentAlignment,
74+
HorizontalAlignment,
75+
Spacing,
76+
ImageSize,
77+
ImageStyle,
78+
ContainerStyle,
79+
TextInputStyle,
80+
ChoiceInputStyle,
81+
ActionStyle,
82+
AssociatedInputs,
83+
ImageFillMode,
84+
)

0 commit comments

Comments
 (0)