mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
opt.
This commit is contained in:
@@ -2,13 +2,23 @@ import 'package:dartssh2/dartssh2.dart';
|
||||
import 'package:toolbox/data/model/server/server_private_info.dart';
|
||||
import 'package:toolbox/data/model/server/server_status.dart';
|
||||
|
||||
class Server {
|
||||
import '../app/tag_pickable.dart';
|
||||
|
||||
class Server implements TagPickable {
|
||||
ServerPrivateInfo spi;
|
||||
ServerStatus status;
|
||||
SSHClient? client;
|
||||
ServerState state;
|
||||
|
||||
Server(this.spi, this.status, this.client, this.state);
|
||||
|
||||
@override
|
||||
bool containsTag(String tag) {
|
||||
return spi.tags?.contains(tag) ?? false;
|
||||
}
|
||||
|
||||
@override
|
||||
String get tagName => spi.id;
|
||||
}
|
||||
|
||||
enum ServerState {
|
||||
|
||||
Reference in New Issue
Block a user