onGrantDenyReleaseManagement method
void
onGrantDenyReleaseManagement(
- Map map
)
Implementation
void onGrantDenyReleaseManagement(Map<dynamic, dynamic> map) {
final result = map["result"];
final msg = map["msg"];
print("releasw${jsonEncode(map)}");
if (floorRequestList.isNotEmpty) {
for (var item in floorRequestList) {
if (item.clientId == map['clientId']) {
floorRequestModel = item;
}
}
if (result == 1708) {
floorRequestModel?.isRequestAccepted = false;
floorRequestModel?.isRequestRejected = false;
floorRequestModel?.isRequestReleased = true;
floorRequestModel?.isMute = true;
floorRequestModel?.isUnMute = false;
} else if (result == 1709 ||
result == 1712 ||
result == 1711 ||
result == 1707) {
floorRequestList.remove(floorRequestModel);
}
showToastMessage(msg);
}
}