getAllTasksRewardsTasksRewardsGetWithHttpInfo method
Get All Tasks Rewards
Fetch the list of all tasks rewards. To obtain these rewards, you must exchange 6 task coins with a tasks master.
Note: This method returns the HTTP Response.
Parameters:
Implementation
Future<Response> getAllTasksRewardsTasksRewardsGetWithHttpInfo({
int? page,
int? size,
}) async {
// ignore: prefer_const_declarations
final path = r'/tasks/rewards';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (page != null) {
queryParams.addAll(_queryParams('', 'page', page));
}
if (size != null) {
queryParams.addAll(_queryParams('', 'size', size));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}