Package ai.runapi.wan.types
Class ImageTaskResponse
java.lang.Object
ai.runapi.core.polling.AbstractTaskResponse
ai.runapi.wan.types.ImageTaskResponse
- All Implemented Interfaces:
ai.runapi.core.polling.Poller.CompletedResult,ai.runapi.core.polling.TaskResponse
- Direct Known Subclasses:
TextToImageResponse
public class ImageTaskResponse
extends ai.runapi.core.polling.AbstractTaskResponse
implements ai.runapi.core.polling.Poller.CompletedResult
Task response for image-producing Wan operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidEnsures a completed response contains its expected image results.Returns unrecognized response fields preserved from the API response.getError()Returns the task error message, if the task failed.getId()Returns the task ID.Output images.ai.runapi.core.polling.TaskStatusReturns the current task status.Methods inherited from class ai.runapi.core.polling.AbstractTaskResponse
getBilling
-
Constructor Details
-
ImageTaskResponse
public ImageTaskResponse()
-
-
Method Details
-
getId
Returns the task ID.- Specified by:
getIdin interfaceai.runapi.core.polling.TaskResponse- Specified by:
getIdin classai.runapi.core.polling.AbstractTaskResponse
-
getStatus
public ai.runapi.core.polling.TaskStatus getStatus()Returns the current task status.- Specified by:
getStatusin interfaceai.runapi.core.polling.TaskResponse- Specified by:
getStatusin classai.runapi.core.polling.AbstractTaskResponse
-
getError
Returns the task error message, if the task failed.- Specified by:
getErrorin interfaceai.runapi.core.polling.TaskResponse- Specified by:
getErrorin classai.runapi.core.polling.AbstractTaskResponse
-
getImages
Output images. Empty lists are valid completed results. -
extraFields
Returns unrecognized response fields preserved from the API response. -
ensureResultPresent
public void ensureResultPresent()Ensures a completed response contains its expected image results.- Specified by:
ensureResultPresentin interfaceai.runapi.core.polling.Poller.CompletedResult
-