|
|
@ -17,14 +17,12 @@ class NextcloudClient extends DynamiteClient { |
|
|
|
NextcloudClient( |
|
|
|
NextcloudClient( |
|
|
|
super.baseURL, { |
|
|
|
super.baseURL, { |
|
|
|
this.loginName, |
|
|
|
this.loginName, |
|
|
|
this.username, |
|
|
|
|
|
|
|
final String? password, |
|
|
|
final String? password, |
|
|
|
final String? language, |
|
|
|
final String? language, |
|
|
|
final AppType appType = AppType.unknown, |
|
|
|
final AppType appType = AppType.unknown, |
|
|
|
final String? userAgentOverride, |
|
|
|
final String? userAgentOverride, |
|
|
|
super.cookieJar, |
|
|
|
super.cookieJar, |
|
|
|
}) : assert(loginName != null || username == null, 'Provide loginName instead of username or both'), |
|
|
|
}) : super( |
|
|
|
super( |
|
|
|
|
|
|
|
baseHeaders: (<String, String?>{ |
|
|
|
baseHeaders: (<String, String?>{ |
|
|
|
'OCS-APIRequest': 'true', |
|
|
|
'OCS-APIRequest': 'true', |
|
|
|
'Accept-Language': language, |
|
|
|
'Accept-Language': language, |
|
|
@ -44,9 +42,6 @@ class NextcloudClient extends DynamiteClient { |
|
|
|
/// Identifier used for authentication. This can be the username or email or something else. |
|
|
|
/// Identifier used for authentication. This can be the username or email or something else. |
|
|
|
final String? loginName; |
|
|
|
final String? loginName; |
|
|
|
|
|
|
|
|
|
|
|
/// Username of the user on the server |
|
|
|
|
|
|
|
final String? username; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
WebDavClient? _webdav; |
|
|
|
WebDavClient? _webdav; |
|
|
|
CoreClient? _core; |
|
|
|
CoreClient? _core; |
|
|
|
NewsClient? _news; |
|
|
|
NewsClient? _news; |
|
|
|