mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 16:56:19 +01:00
7 lines
417 B
Dart
7 lines
417 B
Dart
import 'package:nc_photos/account.dart';
|
|
|
|
String getInstNameForAccount(String className, Account account) =>
|
|
"$className(${account.scheme}://${account.userId.toCaseInsensitiveString()}@${account.address})";
|
|
|
|
String getInstNameForRootAwareAccount(String className, Account account) =>
|
|
"$className(${account.scheme}://${account.userId.toCaseInsensitiveString()}@${account.address}?${account.roots.join('&')})";
|