Add app source and tests
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
10
lib/Peach/about/external/data/Health.dart
vendored
Normal file
10
lib/Peach/about/external/data/Health.dart
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
enum HealthStatus { healthy, unhealthy, unknown, disabled, checking }
|
||||
|
||||
class HealthResult {
|
||||
final HealthStatus status;
|
||||
final String detail;
|
||||
final DateTime time;
|
||||
HealthResult(this.status, this.detail) : time = DateTime.now();
|
||||
|
||||
static HealthResult checking() => HealthResult(HealthStatus.checking, '…');
|
||||
}
|
||||
Reference in New Issue
Block a user