resolveRoom method
Determines the details for the room from which a skill request was invoked. This operation is used by skill developers.
May throw NotFoundException.
Parameter skillId
:
The ARN of the skill that was requested. Required.
Parameter userId
:
The ARN of the user. Required.
Implementation
Future<ResolveRoomResponse> resolveRoom({
required String skillId,
required String userId,
}) async {
ArgumentError.checkNotNull(skillId, 'skillId');
ArgumentError.checkNotNull(userId, 'userId');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AlexaForBusiness.ResolveRoom'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'SkillId': skillId,
'UserId': userId,
},
);
return ResolveRoomResponse.fromJson(jsonResponse.body);
}