Package com.chatmotorapi.api.image
Class MotorImageContainer
java.lang.Object
com.chatmotorapi.api.image.MotorImageContainer
public class MotorImageContainer extends Object
Represents a container for an image generated by a
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:
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
.
MotorImageResponse
API.-
Method Summary
-
Method Details
-
getUrl
Returns the URL of the image, providing direct access to its web location.- Returns:
- the URL of the image
-
getB64Json
Returns the base64 encoded JSON of the image, useful for transmission or processing.- Returns:
- the base64 encoded JSON of the image
-
toString
Provides a string representation of this object. The output includes the class name along with key attribute values.
-