We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7cfc5bb commit 9981afaCopy full SHA for 9981afa
1 file changed
webexteamssdk/cards/components.py
@@ -23,11 +23,23 @@
23
"""
24
25
from .abstract_components import Serializable
26
+from .utils import check_type
27
28
class MediaSource(Serializable):
29
+ """Defines the source of a Media element."""
30
def __init__(self,
31
mimeType,
32
url):
33
+ """Create a new MediaSource
34
+
35
+ Args:
36
+ mimeType(str): Mime type of the associated media(i.e. 'video/mp4')
37
+ url(str): URL of the media.
38
+ """
39
+ # Check types
40
+ check_type(mimeType, str, False, False)
41
+ check_type(url, str, False, False)
42
43
self.mimeType = mimeType
44
self.url = url
45
0 commit comments