getSeatList method

Future<void> getSeatList()

Implementation

Future<void> getSeatList() async {
  var getSeatResult = await liveService.getSeatList();
  if (getSeatResult.code != TUIError.success) {
    LiveKitLogger.error("$tag getSeatList [code:${getSeatResult.code},message:${getSeatResult.message}]");
    return;
  }
  if (getSeatResult.data == null) {
    LiveKitLogger.error("$tag getSeatList [list:${getSeatResult.data}]");
    return;
  }
  seatState.updateSeatList(getSeatResult.data!);
  updateSelfSeatedState();
  autoTakeSeatByOwner();
}