mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-15 09:45:22 +00:00
Updated the API Endpoints, API Calls, Data Models and cubits to the lateset changes from the backend
This commit is contained in:
@ -26,7 +26,7 @@ class CustomSwitch extends StatelessWidget {
|
||||
onTap: () {
|
||||
DevicesCubit.getInstance().deviceControl(
|
||||
DeviceControlModel(
|
||||
deviceId: device.id,
|
||||
deviceId: device.uuid,
|
||||
code: device.status
|
||||
.firstWhere((status) => status.code == "switch")
|
||||
.code,
|
||||
@ -34,7 +34,7 @@ class CustomSwitch extends StatelessWidget {
|
||||
.firstWhere((status) => status.code == "switch")
|
||||
.value!,
|
||||
),
|
||||
device.id!,
|
||||
device.uuid!,
|
||||
);
|
||||
},
|
||||
child: Container(
|
||||
|
Reference in New Issue
Block a user