Package com.dropbox.core.v2.files
Class VideoMetadata
java.lang.Object
com.dropbox.core.v2.files.MediaMetadata
com.dropbox.core.v2.files.VideoMetadata
Metadata for a video.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class com.dropbox.core.v2.files.MediaMetadata
dimensions, location, timeTaken -
Constructor Summary
ConstructorsConstructorDescriptionMetadata for a video.VideoMetadata(Dimensions dimensions, GpsCoordinates location, Date timeTaken, Long duration) Metadata for a video. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDimension of the photo/video.The duration of the video in milliseconds.The GPS coordinate of the photo/video.The timestamp when the photo/video is taken.inthashCode()static VideoMetadata.BuilderReturns a new builder for creating an instance of this class.toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
duration
-
-
Constructor Details
-
VideoMetadata
public VideoMetadata(@Nullable Dimensions dimensions, @Nullable GpsCoordinates location, @Nullable Date timeTaken, @Nullable Long duration) Metadata for a video.Use
newBuilder()to create instances of this class without specifying values for all optional fields.- Parameters:
dimensions- Dimension of the photo/video.location- The GPS coordinate of the photo/video.timeTaken- The timestamp when the photo/video is taken.duration- The duration of the video in milliseconds.
-
VideoMetadata
public VideoMetadata()Metadata for a video.The default values for unset fields will be used.
-
-
Method Details
-
getDimensions
Dimension of the photo/video.- Overrides:
getDimensionsin classMediaMetadata- Returns:
- value for this field, or
nullif not present.
-
getLocation
The GPS coordinate of the photo/video.- Overrides:
getLocationin classMediaMetadata- Returns:
- value for this field, or
nullif not present.
-
getTimeTaken
The timestamp when the photo/video is taken.- Overrides:
getTimeTakenin classMediaMetadata- Returns:
- value for this field, or
nullif not present.
-
getDuration
The duration of the video in milliseconds.- Returns:
- value for this field, or
nullif not present.
-
newBuilder
Returns a new builder for creating an instance of this class.- Returns:
- builder for this class.
-
hashCode
public int hashCode()- Overrides:
hashCodein classMediaMetadata
-
equals
- Overrides:
equalsin classMediaMetadata
-
toString
- Overrides:
toStringin classMediaMetadata
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Overrides:
toStringMultilinein classMediaMetadata- Returns:
- Formatted, multiline String representation of this object
-