Add support to read modifier data in metadata
This commit is contained in:
parent
285abe6e58
commit
55eb966d46
|
@ -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.
|
||||
|
|
Reference in New Issue
Block a user