|
|
@ -2,6 +2,7 @@ import 'package:built_value/serializer.dart'; |
|
|
|
import 'package:built_value/standard_json_plugin.dart'; |
|
|
|
import 'package:built_value/standard_json_plugin.dart'; |
|
|
|
import 'package:dynamite_runtime/content_string.dart'; |
|
|
|
import 'package:dynamite_runtime/content_string.dart'; |
|
|
|
import 'package:nextcloud/src/api/core.openapi.dart'; |
|
|
|
import 'package:nextcloud/src/api/core.openapi.dart'; |
|
|
|
|
|
|
|
import 'package:nextcloud/src/api/files_sharing.openapi.dart'; |
|
|
|
import 'package:nextcloud/src/api/news.openapi.dart'; |
|
|
|
import 'package:nextcloud/src/api/news.openapi.dart'; |
|
|
|
import 'package:nextcloud/src/api/notes.openapi.dart'; |
|
|
|
import 'package:nextcloud/src/api/notes.openapi.dart'; |
|
|
|
import 'package:nextcloud/src/api/notifications.openapi.dart'; |
|
|
|
import 'package:nextcloud/src/api/notifications.openapi.dart'; |
|
|
@ -51,14 +52,15 @@ class NextcloudClient extends DynamiteClient { |
|
|
|
|
|
|
|
|
|
|
|
WebDavClient? _webdav; |
|
|
|
WebDavClient? _webdav; |
|
|
|
CoreClient? _core; |
|
|
|
CoreClient? _core; |
|
|
|
|
|
|
|
FilesSharingClient? _filesSharing; |
|
|
|
NewsClient? _news; |
|
|
|
NewsClient? _news; |
|
|
|
NotesClient? _notes; |
|
|
|
NotesClient? _notes; |
|
|
|
NotificationsClient? _notifications; |
|
|
|
NotificationsClient? _notifications; |
|
|
|
ProvisioningApiClient? _provisioningApi; |
|
|
|
ProvisioningApiClient? _provisioningApi; |
|
|
|
UppushClient? _uppush; |
|
|
|
|
|
|
|
UserStatusClient? _userStatus; |
|
|
|
|
|
|
|
SettingsClient? _settings; |
|
|
|
SettingsClient? _settings; |
|
|
|
ThemingClient? _theming; |
|
|
|
ThemingClient? _theming; |
|
|
|
|
|
|
|
UppushClient? _uppush; |
|
|
|
|
|
|
|
UserStatusClient? _userStatus; |
|
|
|
|
|
|
|
|
|
|
|
/// Client for WebDAV |
|
|
|
/// Client for WebDAV |
|
|
|
WebDavClient get webdav => _webdav ??= WebDavClient(this); |
|
|
|
WebDavClient get webdav => _webdav ??= WebDavClient(this); |
|
|
@ -66,6 +68,9 @@ class NextcloudClient extends DynamiteClient { |
|
|
|
/// Client for the core APIs |
|
|
|
/// Client for the core APIs |
|
|
|
CoreClient get core => _core ??= CoreClient.fromClient(this); |
|
|
|
CoreClient get core => _core ??= CoreClient.fromClient(this); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// Client for the files sharing APIs |
|
|
|
|
|
|
|
FilesSharingClient get filesSharing => _filesSharing ??= FilesSharingClient.fromClient(this); |
|
|
|
|
|
|
|
|
|
|
|
/// Client for the news app APIs |
|
|
|
/// Client for the news app APIs |
|
|
|
NewsClient get news => _news ??= NewsClient.fromClient(this); |
|
|
|
NewsClient get news => _news ??= NewsClient.fromClient(this); |
|
|
|
|
|
|
|
|
|
|
@ -78,17 +83,17 @@ class NextcloudClient extends DynamiteClient { |
|
|
|
/// Client for the provisioning APIs |
|
|
|
/// Client for the provisioning APIs |
|
|
|
ProvisioningApiClient get provisioningApi => _provisioningApi ??= ProvisioningApiClient.fromClient(this); |
|
|
|
ProvisioningApiClient get provisioningApi => _provisioningApi ??= ProvisioningApiClient.fromClient(this); |
|
|
|
|
|
|
|
|
|
|
|
/// Client for the uppush app APIs |
|
|
|
|
|
|
|
UppushClient get uppush => _uppush ??= UppushClient.fromClient(this); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// Client for the user status APIs |
|
|
|
|
|
|
|
UserStatusClient get userStatus => _userStatus ??= UserStatusClient.fromClient(this); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// Client for the settings APIs |
|
|
|
/// Client for the settings APIs |
|
|
|
SettingsClient get settings => _settings ??= SettingsClient.fromClient(this); |
|
|
|
SettingsClient get settings => _settings ??= SettingsClient.fromClient(this); |
|
|
|
|
|
|
|
|
|
|
|
/// Client for the theming APIs |
|
|
|
/// Client for the theming APIs |
|
|
|
ThemingClient get theming => _theming ??= ThemingClient.fromClient(this); |
|
|
|
ThemingClient get theming => _theming ??= ThemingClient.fromClient(this); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// Client for the uppush app APIs |
|
|
|
|
|
|
|
UppushClient get uppush => _uppush ??= UppushClient.fromClient(this); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// Client for the user status APIs |
|
|
|
|
|
|
|
UserStatusClient get userStatus => _userStatus ??= UserStatusClient.fromClient(this); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// ignore: public_member_api_docs |
|
|
|
// ignore: public_member_api_docs |
|
|
|