class documentation
class MediaInfo(bb.Union): (source)
This class acts as a tagged union. Only one of the ``is_*`` methods will return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. :ivar files.MediaInfo.pending: Indicate the photo/video is still under processing and metadata is not available yet. :ivar MediaMetadata MediaInfo.metadata: The metadata for the photo/video.
Class Method | metadata |
Create an instance of this class set to the ``metadata`` tag with value ``val``. |
Method | get |
The metadata for the photo/video. |
Method | is |
Check if the union tag is ``metadata``. |
Method | is |
Check if the union tag is ``pending``. |
Class Variable | pending |
Undocumented |
Method | _process |
Undocumented |
Class Variable | _catch |
Undocumented |