actionMoveMyNameActionMovePostWithHttpInfo method

Future<Response> actionMoveMyNameActionMovePostWithHttpInfo(
  1. String name,
  2. 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:

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,
  );
}