Package com.dropbox.core.v2.files
Class PhotoMetadata
java.lang.Object
com.dropbox.core.v2.files.MediaMetadata
com.dropbox.core.v2.files.PhotoMetadata
Metadata for a photo.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.dropbox.core.v2.files.MediaMetadata
dimensions, location, timeTaken -
Constructor Summary
ConstructorsConstructorDescriptionMetadata for a photo.PhotoMetadata(Dimensions dimensions, GpsCoordinates location, Date timeTaken) Metadata for a photo. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDimension of the photo/video.The GPS coordinate of the photo/video.The timestamp when the photo/video is taken.inthashCode()static PhotoMetadata.BuilderReturns a new builder for creating an instance of this class.toString()Returns a String representation of this object formatted for easier readability.
-
Constructor Details
-
PhotoMetadata
public PhotoMetadata(@Nullable Dimensions dimensions, @Nullable GpsCoordinates location, @Nullable Date timeTaken) Metadata for a photo.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.
-
PhotoMetadata
public PhotoMetadata()Metadata for a photo.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.
-
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
-