Class ImageData
java.lang.Object
com.example.iconic_raffleevent.model.ImageData
Represents image data, including an image identifier, title, and the URL to the image.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the unique identifier of the image.Gets the URL of the image.getTitle()
Gets the title associated with the image.int
hashCode()
void
setImageId
(String imageId) Sets the unique identifier for the image.void
setImageUrl
(String imageUrl) Sets the URL for the image.void
Sets the title for the image.
-
Constructor Details
-
ImageData
public ImageData()Default constructor for creating an empty ImageData object. -
ImageData
Constructor for creating an ImageData object with specified values.- Parameters:
imageId
- This is the unique identifier for the image.title
- This is the title associated with the image.imageUrl
- This is the URL to access the image.
-
-
Method Details
-
getImageId
Gets the unique identifier of the image.- Returns:
- Return the image ID as a String.
-
setImageId
Sets the unique identifier for the image.- Parameters:
imageId
- This is the unique ID to assign to the image.
-
getTitle
Gets the title associated with the image.- Returns:
- Return the title of the image as a String.
-
setTitle
Sets the title for the image.- Parameters:
title
- This is the title to assign to the image.
-
getImageUrl
Gets the URL of the image.- Returns:
- Return the URL of the image as a String.
-
setImageUrl
Sets the URL for the image.- Parameters:
imageUrl
- This is the URL to assign to the image.
-
equals
-
hashCode
public int hashCode()
-