ImageEntity

data class ImageEntity(val id: Long = 0, val uri: String, val byteArray: ByteArray, val date: Long, val geoLocationID: Long)

The class representation of the entity 'Image' from the database. This entity stores information about an image.

Constructors

Link copied to clipboard
constructor(id: Long = 0, uri: String, byteArray: ByteArray, date: Long, geoLocationID: Long)

Properties

Link copied to clipboard

(ByteArray) The raw image pixel data as a byte array.

Link copied to clipboard
val date: Long

(Long) The milliseconds since epoch (1970-01-01T00:00:00Z) of when the photo was taken.

Link copied to clipboard

(Long) The geo location entity ID of where the photo was taken (foreign key).

Link copied to clipboard
val id: Long = 0

(Long, auto-generated) The unique identifier for the image within the database.

Link copied to clipboard
val uri: String

(String) The Android string uri of the image.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Checks if two Image objects are equal. Two images are considered equal if they have the same:

Link copied to clipboard
open override fun hashCode(): Int

Calculates a hash code for this Image object. This hash code is based on the uri, byteArray content, date taken, and geoLocationID. The hash code is used for efficient storage and retrieval in hash-based collections.