1 | <?php |
||
4 | class MediaInfo extends BaseModel |
||
5 | { |
||
6 | |||
7 | /** |
||
8 | * Indicate the photo/video is still under processing |
||
9 | * and metadata is not available yet. |
||
10 | * |
||
11 | * @var bool |
||
12 | */ |
||
13 | protected $pending = false; |
||
14 | |||
15 | /** |
||
16 | * MediaMetadata |
||
17 | * |
||
18 | * @var \Dropbox\Models\MediaMetadata |
||
19 | */ |
||
20 | protected $mediaMetadata; |
||
21 | |||
22 | |||
23 | /** |
||
24 | * Create a new MediaInfo instance |
||
25 | * |
||
26 | * @param array $data |
||
27 | */ |
||
28 | public function __construct(array $data) |
||
34 | |||
35 | /** |
||
36 | * Set Media Metadata |
||
37 | */ |
||
38 | protected function setMediaMetadata() |
||
54 | |||
55 | /** |
||
56 | * Indicates whether the photo/video is still under |
||
57 | * processing and is the metadata available yet. |
||
58 | * |
||
59 | * @return bool |
||
60 | */ |
||
61 | public function isPending() |
||
65 | |||
66 | /** |
||
67 | * The metadata for the photo/video. |
||
68 | * |
||
69 | * @return \Dropbox\Models\MediaMetadata |
||
70 | */ |
||
71 | public function getMediaMetadata() |
||
75 | } |
||
76 |