clearHandUpList method

Future<void> clearHandUpList()

Implementation

Future<void> clearHandUpList() async {
  if (getRole() == RoleEnum.student || getRole() == RoleEnum.supervisor) {
    TCICLog.info("学生或督导角色不能清除举手列表", actionModule: ActionModule.tcicController.name, actionName: ActionName.getHandUpList.name);
    return;
  }
  var body = ClearHandUpListBody(classId: _config.classId);
  var data = await networkService.clearHandUpList(body);
  if (data != null) {
    if (data.errorCode == 0) {
      _handsUpInfoObs.updateHandUpList([], "clearHandUpList");
    }
  }
}