equipItem static method
Equip an item. You must have a valid Destiny Account, and either be in a social space, in orbit, or offline.
Implementation
static Future<Int32Response> equipItem (
HttpClient client,
DestinyItemActionRequest body
) async {
final Map<String, dynamic> params = Map<String, dynamic>();
final HttpClientConfig config = HttpClientConfig('POST', '/Destiny2/Actions/Items/EquipItem/', params);
config.body = await body.asyncToJson();
config.bodyContentType = 'application/json';
final HttpResponse response = await client.request(config);
if(response.statusCode == 200) {
return Int32Response.asyncFromJson(response.mappedBody);
}
throw Exception(response.mappedBody);
}