mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-08 00:51:20 +00:00
chore: Remove unused server basic info attribute
This commit is contained in:
parent
7b02074345
commit
69822f24ca
|
@ -3,14 +3,12 @@ class ServerBasicInfo {
|
||||||
required this.id,
|
required this.id,
|
||||||
required this.name,
|
required this.name,
|
||||||
required this.reverseDns,
|
required this.reverseDns,
|
||||||
required this.serverTypeId,
|
|
||||||
required this.ip,
|
required this.ip,
|
||||||
required this.created,
|
required this.created,
|
||||||
});
|
});
|
||||||
final int id;
|
final int id;
|
||||||
final String name;
|
final String name;
|
||||||
final String reverseDns;
|
final String reverseDns;
|
||||||
final String serverTypeId;
|
|
||||||
final String ip;
|
final String ip;
|
||||||
final DateTime created;
|
final DateTime created;
|
||||||
}
|
}
|
||||||
|
@ -24,7 +22,6 @@ class ServerBasicInfoWithValidators extends ServerBasicInfo {
|
||||||
id: serverBasicInfo.id,
|
id: serverBasicInfo.id,
|
||||||
name: serverBasicInfo.name,
|
name: serverBasicInfo.name,
|
||||||
reverseDns: serverBasicInfo.reverseDns,
|
reverseDns: serverBasicInfo.reverseDns,
|
||||||
serverTypeId: serverBasicInfo.serverTypeId,
|
|
||||||
ip: serverBasicInfo.ip,
|
ip: serverBasicInfo.ip,
|
||||||
created: serverBasicInfo.created,
|
created: serverBasicInfo.created,
|
||||||
isIpValid: isIpValid,
|
isIpValid: isIpValid,
|
||||||
|
@ -35,7 +32,6 @@ class ServerBasicInfoWithValidators extends ServerBasicInfo {
|
||||||
required super.id,
|
required super.id,
|
||||||
required super.name,
|
required super.name,
|
||||||
required super.reverseDns,
|
required super.reverseDns,
|
||||||
required super.serverTypeId,
|
|
||||||
required super.ip,
|
required super.ip,
|
||||||
required super.created,
|
required super.created,
|
||||||
required this.isIpValid,
|
required this.isIpValid,
|
||||||
|
|
|
@ -81,7 +81,6 @@ class DigitalOceanServerProvider extends ServerProvider {
|
||||||
created: DateTime.now(),
|
created: DateTime.now(),
|
||||||
ip: ipv4,
|
ip: ipv4,
|
||||||
name: server['name'],
|
name: server['name'],
|
||||||
serverTypeId: server['region']['slug'],
|
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
).toList();
|
).toList();
|
||||||
|
|
|
@ -77,7 +77,6 @@ class HetznerServerProvider extends ServerProvider {
|
||||||
ip: hetznerServer.publicNet.ipv4!.ip,
|
ip: hetznerServer.publicNet.ipv4!.ip,
|
||||||
reverseDns: hetznerServer.publicNet.ipv4!.reverseDns,
|
reverseDns: hetznerServer.publicNet.ipv4!.reverseDns,
|
||||||
created: hetznerServer.created,
|
created: hetznerServer.created,
|
||||||
serverTypeId: hetznerServer.name,
|
|
||||||
);
|
);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue