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