$TextToImageApiClient class

Constructors

$TextToImageApiClient($Client _rootClient)
Creates a new DynamiteClient for text_to_image_api requests.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

$deleteTask_Request({required int id, bool? oCSAPIRequest}) → Request
This endpoint allows to delete a scheduled task for a user.
$deleteTask_Serializer() → DynamiteSerializer<TextToImageApiDeleteTaskResponseApplicationJson, void>
Builds a serializer to parse the response of $deleteTask_Request.
$getImage_Request({required int id, required int index, bool? oCSAPIRequest}) → Request
This endpoint allows downloading the resulting image of a task.
$getImage_Serializer() → DynamiteSerializer<Uint8List, void>
Builds a serializer to parse the response of $getImage_Request.
$getTask_Request({required int id, bool? oCSAPIRequest}) → Request
This endpoint allows checking the status and results of a task. Tasks are removed 1 week after receiving their last update.
$getTask_Serializer() → DynamiteSerializer<TextToImageApiGetTaskResponseApplicationJson, void>
Builds a serializer to parse the response of $getTask_Request.
$isAvailable_Request({bool? oCSAPIRequest}) → Request
Check whether this feature is available.
$isAvailable_Serializer() → DynamiteSerializer<TextToImageApiIsAvailableResponseApplicationJson, void>
Builds a serializer to parse the response of $isAvailable_Request.
$listTasksByApp_Request({required String appId, String? identifier, bool? oCSAPIRequest}) → Request
This endpoint returns a list of tasks of a user that are related with a specific appId and optionally with an identifier.
$listTasksByApp_Serializer() → DynamiteSerializer<TextToImageApiListTasksByAppResponseApplicationJson, void>
Builds a serializer to parse the response of $listTasksByApp_Request.
$schedule_Request({required String input, required String appId, String? identifier, int? numberOfImages, bool? oCSAPIRequest}) → Request
This endpoint allows scheduling a text to image task.
$schedule_Serializer() → DynamiteSerializer<TextToImageApiScheduleResponseApplicationJson, void>
Builds a serializer to parse the response of $schedule_Request.
deleteTask({required int id, bool? oCSAPIRequest}) Future<DynamiteResponse<TextToImageApiDeleteTaskResponseApplicationJson, void>>
This endpoint allows to delete a scheduled task for a user.
getImage({required int id, required int index, bool? oCSAPIRequest}) Future<DynamiteResponse<Uint8List, void>>
This endpoint allows downloading the resulting image of a task.
getTask({required int id, bool? oCSAPIRequest}) Future<DynamiteResponse<TextToImageApiGetTaskResponseApplicationJson, void>>
This endpoint allows checking the status and results of a task. Tasks are removed 1 week after receiving their last update.
isAvailable({bool? oCSAPIRequest}) Future<DynamiteResponse<TextToImageApiIsAvailableResponseApplicationJson, void>>
Check whether this feature is available.
listTasksByApp({required String appId, String? identifier, bool? oCSAPIRequest}) Future<DynamiteResponse<TextToImageApiListTasksByAppResponseApplicationJson, void>>
This endpoint returns a list of tasks of a user that are related with a specific appId and optionally with an identifier.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
schedule({required String input, required String appId, String? identifier, int? numberOfImages, bool? oCSAPIRequest}) Future<DynamiteResponse<TextToImageApiScheduleResponseApplicationJson, void>>
This endpoint allows scheduling a text to image task.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited