-
Notifications
You must be signed in to change notification settings - Fork 0
/
photo.go
28 lines (25 loc) · 868 Bytes
/
photo.go
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
package gphoto
import "time"
type googlePhotoResponse struct {
GooglePhotos []*GooglePhoto `json:"mediaItems"`
}
// GooglePhoto represent google album structure received from api.
type GooglePhoto struct {
ID string `json:"id"`
ProductURL string `json:"productUrl"`
BaseURL string `json:"baseUrl"`
MimeType string `json:"mimeType"`
MediaMetadata struct {
CreationTime time.Time `json:"creationTime"`
Width string `json:"width"`
Height string `json:"height"`
Photo struct {
CameraMake string `json:"cameraMake"`
CameraModel string `json:"cameraModel"`
FocalLength int `json:"focalLength"`
ApertureFNumber float64 `json:"apertureFNumber"`
IsoEquivalent int `json:"isoEquivalent"`
} `json:"photo"`
} `json:"mediaMetadata"`
Filename string `json:"filename"`
}