2024-02-01 14:30:06 +00:00
|
|
|
part of 'volumes_bloc.dart';
|
|
|
|
|
2024-02-09 13:54:04 +00:00
|
|
|
sealed class VolumesEvent extends Equatable {
|
2024-02-01 14:30:06 +00:00
|
|
|
const VolumesEvent();
|
|
|
|
}
|
|
|
|
|
|
|
|
class VolumesServerLoaded extends VolumesEvent {
|
|
|
|
const VolumesServerLoaded();
|
|
|
|
|
|
|
|
@override
|
|
|
|
List<Object> get props => [];
|
|
|
|
}
|
|
|
|
|
|
|
|
class VolumesServerReset extends VolumesEvent {
|
|
|
|
const VolumesServerReset();
|
|
|
|
|
|
|
|
@override
|
|
|
|
List<Object> get props => [];
|
|
|
|
}
|
|
|
|
|
|
|
|
class VolumesServerStateChanged extends VolumesEvent {
|
|
|
|
const VolumesServerStateChanged(
|
|
|
|
this.volumes,
|
|
|
|
);
|
|
|
|
|
|
|
|
final List<ServerDiskVolume> volumes;
|
|
|
|
|
|
|
|
@override
|
|
|
|
List<Object> get props => [volumes];
|
|
|
|
}
|
2024-02-06 15:21:21 +00:00
|
|
|
|
|
|
|
class VolumeResize extends VolumesEvent {
|
|
|
|
const VolumeResize(
|
|
|
|
this.volume,
|
|
|
|
this.newSize,
|
|
|
|
);
|
|
|
|
|
|
|
|
final DiskVolume volume;
|
|
|
|
final DiskSize newSize;
|
|
|
|
|
|
|
|
@override
|
|
|
|
List<Object> get props => [volume, newSize];
|
|
|
|
}
|