Skip to content

Commit

Permalink
Adding Hub support
Browse files Browse the repository at this point in the history
  • Loading branch information
guyluz11 committed Jan 14, 2024
1 parent ca02e27 commit 2ba7b1d
Show file tree
Hide file tree
Showing 57 changed files with 276 additions and 2,484 deletions.
11 changes: 6 additions & 5 deletions lib/domain/connections_service.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'dart:async';
import 'dart:collection';
import 'dart:convert';
import 'dart:io';

import 'package:cbj_integrations_controller/integrations_controller.dart';
Expand Down Expand Up @@ -70,13 +71,13 @@ abstract interface class ConnectionsService {

Future searchDevices();

void setEntityState(ActionObject action);
void setEntityState(RequestActionObject action);

Future setEtitiesToArea(String areaId, HashSet<String> entities);

Future<HashMap<String, DeviceEntityBase>> get getAllEntities;
Future<HashMap<String, DeviceEntityBase>> get getEntities;

Future<HashMap<String, AreaEntity>> get getAllAreas;
Future<HashMap<String, AreaEntity>> get getAreas;

Stream<MapEntry<String, DeviceEntityBase>> watchEntities();

Expand All @@ -86,13 +87,13 @@ abstract interface class ConnectionsService {

Future setNewArea(AreaEntity area);

Future<HashMap<String, SceneCbjEntity>> getScenes();
Future<HashMap<String, SceneCbjEntity>> get getScenes;

Future activateScene(String id);

Future addScene(SceneCbjEntity scene);

Future<void> loginVendor(VendorLoginEntity value);
Future loginVendor(VendorLoginEntity value);

Future<List<VendorEntityInformation>> getVendors();
}
14 changes: 0 additions & 14 deletions lib/domain/device/devices_errors.dart

This file was deleted.

35 changes: 0 additions & 35 deletions lib/domain/device/devices_failures.dart

This file was deleted.

88 changes: 0 additions & 88 deletions lib/domain/device/devices_validators.dart

This file was deleted.

145 changes: 0 additions & 145 deletions lib/domain/device/i_device_repository.dart

This file was deleted.

46 changes: 0 additions & 46 deletions lib/domain/i_hub_connection_repository.dart

This file was deleted.

2 changes: 1 addition & 1 deletion lib/domain/i_local_db_repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ abstract interface class ILocalDbRepository {
return _instance ??= _IsarRepository();
}

Future<void> asyncConstructor();
Future asyncConstructor();

Future<Either<LocalDbFailures, Unit>> saveHubEntity({
required String hubNetworkBssid,
Expand Down
1 change: 0 additions & 1 deletion lib/domain/software_info/i_software_info_repository.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'dart:io';

import 'package:cbj_integrations_controller/integrations_controller.dart';
import 'package:cybearjinni/domain/i_hub_connection_repository.dart';
import 'package:cybearjinni/domain/security_bear/i_security_bear_connection_repository.dart';
import 'package:cybearjinni/domain/security_bear/security_bear_failures.dart';
import 'package:cybearjinni/domain/software_info/software_info_entity.dart';
Expand Down
Loading

0 comments on commit 2ba7b1d

Please sign in to comment.