mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-24 01:36:26 +01:00
8 lines
369 B
Dart
8 lines
369 B
Dart
|
import 'package:nc_photos/account.dart';
|
||
|
|
||
|
String getInstNameForAccount(String className, Account account) =>
|
||
|
"$className(${account.scheme}://${account.username}@${account.address})";
|
||
|
|
||
|
String getInstNameForRootAwareAccount(String className, Account account) =>
|
||
|
"$className(${account.scheme}://${account.username}@${account.address}?${account.roots.join('&')})";
|