aboutsummaryrefslogtreecommitdiff
blob: de1410a1461734c1853466ac706ff68c6d7fcece (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import MediaType from "./MediaType";

export default interface MediaItem {
  /**
   * Name of the media item or the file.
   */
  name: string;

  /**
   * Path to the media item.
   */
  src: string;

  /**
   * Type of the media item. Can be a "photo" or a "video".
   */
  type: MediaType;

  /**
   * Width of the media item in pixels.
   */
  width: number;

  /**
   * Height of the media item in pixels.
   */
  height: number;

  /**
   * Latitude where the media item was taken.
   */
  latitude?: number;

  /**
   * Logitude where the media item was taken.
   */
  longitude?: number;

  /**
   * Date and time when the media item was taken.
   */
  time?: string;

  /**
   * Media item thumbnail.
   */
  thumbnail?: string;

  /**
   * Caption on the media item.
   */
  caption?: string;
}