actionFightMyNameActionFightPostWithHttpInfo method
Future<Response>
actionFightMyNameActionFightPostWithHttpInfo(
- String name, {
- FightRequestSchema? fightRequestSchema,
Action Fight
Start a fight against a monster on the character's map. Add participants for multi-character fights (up to 3 characters, only for boss).
Note: This method returns the HTTP Response.
Parameters:
-
String name (required): Name of your character.
-
FightRequestSchema fightRequestSchema:
Implementation
Future<Response> actionFightMyNameActionFightPostWithHttpInfo(
String name, {
FightRequestSchema? fightRequestSchema,
}) async {
// ignore: prefer_const_declarations
final path = r'/my/{name}/action/fight'.replaceAll('{name}', name);
// ignore: prefer_final_locals
Object? postBody = fightRequestSchema;
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,
);
}