mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 16:56:19 +01:00
14 lines
369 B
Dart
14 lines
369 B
Dart
import 'package:nc_photos/account.dart';
|
|
import 'package:np_api/np_api.dart';
|
|
|
|
class ApiUtil {
|
|
static Api fromAccount(Account account) => Api(
|
|
Uri.parse(account.url),
|
|
BasicAuth(account.username2, account.password),
|
|
);
|
|
}
|
|
|
|
class AuthUtil {
|
|
static BasicAuth fromAccount(Account account) =>
|
|
BasicAuth(account.username2, account.password);
|
|
}
|