Class ImageData

java.lang.Object
com.example.iconic_raffleevent.model.ImageData

public class ImageData extends Object
Represents image data, including an image identifier, title, and the URL to the image.
  • Constructor Details

    • ImageData

      public ImageData()
      Default constructor for creating an empty ImageData object.
    • ImageData

      public ImageData(String imageId, String title, String imageUrl)
      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

      public String getImageId()
      Gets the unique identifier of the image.
      Returns:
      Return the image ID as a String.
    • setImageId

      public void setImageId(String imageId)
      Sets the unique identifier for the image.
      Parameters:
      imageId - This is the unique ID to assign to the image.
    • getTitle

      public String getTitle()
      Gets the title associated with the image.
      Returns:
      Return the title of the image as a String.
    • setTitle

      public void setTitle(String title)
      Sets the title for the image.
      Parameters:
      title - This is the title to assign to the image.
    • getImageUrl

      public String getImageUrl()
      Gets the URL of the image.
      Returns:
      Return the URL of the image as a String.
    • setImageUrl

      public void setImageUrl(String imageUrl)
      Sets the URL for the image.
      Parameters:
      imageUrl - This is the URL to assign to the image.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object