mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-23 09:16:54 +00:00
fix: Generate hive build runner model for server details
This commit is contained in:
parent
4aa6caed65
commit
cb94248df0
|
@ -76,13 +76,14 @@ class ServerVolumeAdapter extends TypeAdapter<ServerVolume> {
|
||||||
sizeByte: fields[3] == null ? 10737418240 : fields[3] as int,
|
sizeByte: fields[3] == null ? 10737418240 : fields[3] as int,
|
||||||
serverId: fields[4] as int?,
|
serverId: fields[4] as int?,
|
||||||
linuxDevice: fields[5] as String?,
|
linuxDevice: fields[5] as String?,
|
||||||
|
uuid: fields[6] as String?,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void write(BinaryWriter writer, ServerVolume obj) {
|
void write(BinaryWriter writer, ServerVolume obj) {
|
||||||
writer
|
writer
|
||||||
..writeByte(5)
|
..writeByte(6)
|
||||||
..writeByte(1)
|
..writeByte(1)
|
||||||
..write(obj.id)
|
..write(obj.id)
|
||||||
..writeByte(2)
|
..writeByte(2)
|
||||||
|
@ -92,7 +93,9 @@ class ServerVolumeAdapter extends TypeAdapter<ServerVolume> {
|
||||||
..writeByte(4)
|
..writeByte(4)
|
||||||
..write(obj.serverId)
|
..write(obj.serverId)
|
||||||
..writeByte(5)
|
..writeByte(5)
|
||||||
..write(obj.linuxDevice);
|
..write(obj.linuxDevice)
|
||||||
|
..writeByte(6)
|
||||||
|
..write(obj.uuid);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
@ -117,6 +120,8 @@ class ServerProviderAdapter extends TypeAdapter<ServerProvider> {
|
||||||
return ServerProvider.unknown;
|
return ServerProvider.unknown;
|
||||||
case 1:
|
case 1:
|
||||||
return ServerProvider.hetzner;
|
return ServerProvider.hetzner;
|
||||||
|
case 2:
|
||||||
|
return ServerProvider.digitalOcean;
|
||||||
default:
|
default:
|
||||||
return ServerProvider.unknown;
|
return ServerProvider.unknown;
|
||||||
}
|
}
|
||||||
|
@ -131,6 +136,9 @@ class ServerProviderAdapter extends TypeAdapter<ServerProvider> {
|
||||||
case ServerProvider.hetzner:
|
case ServerProvider.hetzner:
|
||||||
writer.writeByte(1);
|
writer.writeByte(1);
|
||||||
break;
|
break;
|
||||||
|
case ServerProvider.digitalOcean:
|
||||||
|
writer.writeByte(2);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue