Archived
1
0

Add support to read modifier data in metadata

This commit is contained in:
Brian Smith 2015-02-14 14:35:36 -08:00 committed by Arnaud Ysmal
parent 285abe6e58
commit 55eb966d46

View File

@ -157,6 +157,12 @@ func (dbt DBTime) MarshalJSON() ([]byte, error) {
return json.Marshal(time.Time(dbt).Format(DateFormat))
}
// Represents the user who made a change on a particular file
type Modifier struct {
Uid int64 `json:"uid"`
DisplayName string `json:"display_name"`
}
// Entry represents the metadata of a file or folder.
type Entry struct {
Bytes int `json:"bytes,omitempty"` // Size of the file in bytes.
@ -173,6 +179,7 @@ type Entry struct {
Root string `json:"root,omitempty"` // dropbox or sandbox.
Size string `json:"size,omitempty"` // Size of the file humanized/localized.
ThumbExists bool `json:"thumb_exists,omitempty"` // true if a thumbnail is available for this entry.
Modifier *Modifier `json:"modifier"` // last user to edit the file if in a shared folder
}
// Link for sharing a file.