actionMoveMyNameActionMovePostWithHttpInfo method
Future<Response>
actionMoveMyNameActionMovePostWithHttpInfo(
- String name,
- DestinationSchema destinationSchema
Action Move
Moves a character on the map using either the map's ID or X and Y position. Provide either 'map_id' or both 'x' and 'y' coordinates in the request body.
Note: This method returns the HTTP Response.
Parameters:
-
String name (required): Name of your character.
-
DestinationSchema destinationSchema (required):
Implementation
Future<Response> actionMoveMyNameActionMovePostWithHttpInfo(
String name,
DestinationSchema destinationSchema,
) async {
// ignore: prefer_const_declarations
final path = r'/my/{name}/action/move'.replaceAll('{name}', name);
// ignore: prefer_final_locals
Object? postBody = destinationSchema;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}