equipItems static method
Future<DestinyEquipItemResultsResponse>
equipItems(
- HttpClient client,
- DestinyItemSetActionRequest body
Equip a list of items by itemInstanceIds. You must have a valid Destiny Account, and either be in a social space, in orbit, or offline. Any items not found on your character will be ignored.
Implementation
static Future<DestinyEquipItemResultsResponse> equipItems (
HttpClient client,
DestinyItemSetActionRequest body
) async {
final Map<String, dynamic> params = Map<String, dynamic>();
final HttpClientConfig config = HttpClientConfig('POST', '/Destiny2/Actions/Items/EquipItems/', params);
config.body = await body.asyncToJson();
config.bodyContentType = 'application/json';
final HttpResponse response = await client.request(config);
if(response.statusCode == 200) {
return DestinyEquipItemResultsResponse.asyncFromJson(response.mappedBody);
}
throw Exception(response.mappedBody);
}