con setting

This commit is contained in:
mohammad
2024-10-27 17:16:37 +03:00
parent d4d7ced585
commit 769be41855
9 changed files with 454 additions and 88 deletions

View File

@ -1,3 +1,5 @@
import 'dart:math';
import 'package:syncrow_app/features/scene/model/create_automation_model.dart';
import 'package:syncrow_app/features/scene/model/create_scene_model.dart';
import 'package:syncrow_app/features/scene/model/scene_details_model.dart';
@ -147,6 +149,22 @@ class SceneApi {
}
}
static Future getIcon() async {
try {
final response = await _httpService.get(
path: ApiEndpoints.getIconScene,
showServerMessage: false,
expectedResponseModel: (json) {
log(json);
return json;
},
);
return response;
} catch (e) {
rethrow;
}
}
//update Scene
static updateScene(CreateSceneModel createSceneModel, String sceneId) async {
try {