mirror of
https://bitbucket.org/myhomie/myhomie_app.git
synced 2025-12-06 00:51:19 +00:00
45 lines
1.2 KiB
Dart
45 lines
1.2 KiB
Dart
import 'package:mycoreapi/api.dart';
|
|
//import 'package:openapi_dart_common/openapi.dart';
|
|
|
|
class Client {
|
|
ApiClient _apiClient;
|
|
ApiClient get apiApi => _apiClient;
|
|
|
|
TokenApi _tokenApi;
|
|
TokenApi get tokenApi => _tokenApi;
|
|
|
|
AuthenticationApi _authenticationApi;
|
|
AuthenticationApi get authenticationApi => _authenticationApi;
|
|
|
|
UserApi _userApi;
|
|
UserApi get userApi => _userApi;
|
|
|
|
GroupApi _groupApi;
|
|
GroupApi get groupApi => _groupApi;
|
|
|
|
DeviceApi _deviceApi;
|
|
DeviceApi get deviceApi => _deviceApi;
|
|
|
|
AutomationApi _automationApi;
|
|
AutomationApi get automationApi => _automationApi;
|
|
|
|
ProviderApi _providerApi;
|
|
ProviderApi get providerApi => _providerApi;
|
|
|
|
RoomApi _roomApi;
|
|
RoomApi get roomApi => _roomApi;
|
|
|
|
Client() {
|
|
_apiClient = ApiClient(
|
|
basePath: "http://192.168.31.140");
|
|
//basePath: "http://localhost:25049");
|
|
_tokenApi = TokenApi(_apiClient);
|
|
_authenticationApi = AuthenticationApi(_apiClient);
|
|
_userApi = UserApi(_apiClient);
|
|
_groupApi = GroupApi(_apiClient);
|
|
_deviceApi = DeviceApi(_apiClient);
|
|
_automationApi = AutomationApi(_apiClient);
|
|
_providerApi = ProviderApi(_apiClient);
|
|
_roomApi = RoomApi(_apiClient);
|
|
}
|
|
} |