myhomie_app/lib/client.dart

57 lines
1.5 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;
HomeApi _homeApi;
HomeApi get homeApi => _homeApi;
AlarmApi _alarmApi;
AlarmApi get alarmApi => _alarmApi;
EventApi _eventApi;
EventApi get eventApi => _eventApi;
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(String path) {
_apiClient = ApiClient(
basePath: path);
//basePath: "http://localhost:25049");
_tokenApi = TokenApi(_apiClient);
_authenticationApi = AuthenticationApi(_apiClient);
_userApi = UserApi(_apiClient);
_homeApi = HomeApi(_apiClient);
_alarmApi = AlarmApi(_apiClient);
_eventApi = EventApi(_apiClient);
_groupApi = GroupApi(_apiClient);
_deviceApi = DeviceApi(_apiClient);
_automationApi = AutomationApi(_apiClient);
_providerApi = ProviderApi(_apiClient);
_roomApi = RoomApi(_apiClient);
}
}