2022-05-25 15:53:49 +02:00
|
|
|
abstract class Users {
|
|
|
|
const Users._();
|
2022-11-28 07:12:40 +01:00
|
|
|
|
2022-12-29 15:02:29 +01:00
|
|
|
static const user1 = User(
|
|
|
|
String.fromEnvironment(
|
|
|
|
'USER1_NAME',
|
|
|
|
defaultValue: 'alice',
|
|
|
|
),
|
|
|
|
String.fromEnvironment(
|
|
|
|
'USER1_PW',
|
|
|
|
defaultValue: 'AliceInWonderland',
|
|
|
|
),
|
2022-11-28 07:12:40 +01:00
|
|
|
);
|
2022-12-29 15:02:29 +01:00
|
|
|
static const user2 = User(
|
|
|
|
String.fromEnvironment(
|
|
|
|
'USER2_NAME',
|
|
|
|
defaultValue: 'bob',
|
|
|
|
),
|
|
|
|
String.fromEnvironment(
|
|
|
|
'USER2_PW',
|
|
|
|
defaultValue: 'JoWirSchaffenDas',
|
|
|
|
),
|
2022-11-28 07:12:40 +01:00
|
|
|
);
|
2022-05-25 15:53:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
class User {
|
|
|
|
final String name;
|
|
|
|
final String password;
|
|
|
|
|
|
|
|
const User(this.name, this.password);
|
|
|
|
}
|
|
|
|
|
2022-12-29 15:02:29 +01:00
|
|
|
const homeserver = 'http://${const String.fromEnvironment(
|
|
|
|
'HOMESERVER',
|
|
|
|
defaultValue: 'localhost',
|
|
|
|
)}';
|