From cc7af3e4e634180c3171049d0b43a71ad2e0ba11 Mon Sep 17 00:00:00 2001 From: mohammad Date: Wed, 2 Oct 2024 13:26:25 +0300 Subject: [PATCH] wizard --- .../bloc/three_touch_bloc/three_touch_bloc.dart | 16 ---------------- .../bloc/three_touch_bloc/three_touch_event.dart | 5 ----- 2 files changed, 21 deletions(-) diff --git a/lib/features/devices/bloc/three_touch_bloc/three_touch_bloc.dart b/lib/features/devices/bloc/three_touch_bloc/three_touch_bloc.dart index 8f06b4a..da8a97e 100644 --- a/lib/features/devices/bloc/three_touch_bloc/three_touch_bloc.dart +++ b/lib/features/devices/bloc/three_touch_bloc/three_touch_bloc.dart @@ -65,19 +65,6 @@ class ThreeTouchBloc extends Bloc { on(toggleSelectedIndex); on(toggleCreateSchedule); on(_changeStatus); - on(_fetchTouchStatus); - } - - _fetchTouchStatus( - InitialSettingDevises event, Emitter emit) async { - emit(LoadingInitialState()); - var response = await DevicesAPI.getDeviceStatus(event.id); - List statusModelList = []; - for (var status in response['status']) { - statusModelList.add(StatusModel.fromJson(status)); - } - deviceStatus = ThreeTouchModel.fromJson(statusModelList); - emit(ChangeStateSetting()); } void _fetchThreeTouchStatus( @@ -712,9 +699,6 @@ class ThreeTouchBloc extends Bloc { ChangeStatusEvent event, Emitter emit) async { try { emit(LoadingInitialState()); - - print(optionSelected); - print(statusSelected); final Map> controlMap = { "relay_status": { 'Power On': 'power_on', diff --git a/lib/features/devices/bloc/three_touch_bloc/three_touch_event.dart b/lib/features/devices/bloc/three_touch_bloc/three_touch_event.dart index 6091d41..e6ef1fe 100644 --- a/lib/features/devices/bloc/three_touch_bloc/three_touch_event.dart +++ b/lib/features/devices/bloc/three_touch_bloc/three_touch_event.dart @@ -145,8 +145,3 @@ class ChangeStatusEvent extends ThreeTouchEvent { final BuildContext context; const ChangeStatusEvent({this.deviceId = '', required this.context}); } - -class InitialSettingDevises extends ThreeTouchEvent { - final String id; - const InitialSettingDevises({required this.id}); -}