Class MotorImageContainer

java.lang.Object
com.chatmotorapi.api.image.MotorImageContainer

public class MotorImageContainer
extends Object
Represents a container for an image generated by a MotorImageRequest.
This class encapsulates an image's URL and a base64 encoded JSON representation, facilitating easy access and handling within applications. `MotorImageContainer` is not intended to be directly instantiated by users but is returned as part of the response from image processing requests.

The class provides:
  • A method to retrieve the URL of the image, allowing direct web access.
  • A method to obtain the base64 encoded JSON of the image generated by MotorImageRequest.
Instances of this class are accessible through the MotorImageResponse API.
  • Method Details

    • getUrl

      public String getUrl()
      Returns the URL of the image, providing direct access to its web location.
      Returns:
      the URL of the image
    • getB64Json

      public String getB64Json()
      Returns the base64 encoded JSON of the image, useful for transmission or processing.
      Returns:
      the base64 encoded JSON of the image
    • toString

      public String toString()
      Provides a string representation of this object. The output includes the class name along with key attribute values.
      Overrides:
      toString in class Object
      Returns:
      a string description of this object.