2022-04-14 21:57:32 +02:00
|
|
|
import 'package:uuid/uuid.dart';
|
|
|
|
|
|
|
|
enum StreamElementType { log, alert }
|
|
|
|
|
|
|
|
class StreamElement {
|
|
|
|
StreamElement(this.type, this.message) {
|
|
|
|
uuid = const Uuid().v4();
|
2022-04-14 22:48:15 +02:00
|
|
|
date = DateTime.now();
|
2022-04-14 21:57:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
late final String uuid;
|
2022-04-14 22:48:15 +02:00
|
|
|
late final DateTime date;
|
2022-04-14 21:57:32 +02:00
|
|
|
final String message;
|
|
|
|
final StreamElementType type;
|
|
|
|
}
|