mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-18 06:39:14 +00:00
44 lines
786 B
Dart
44 lines
786 B
Dart
part of 'volumes_bloc.dart';
|
|
|
|
sealed class VolumesEvent extends Equatable {
|
|
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];
|
|
}
|
|
|
|
class VolumeResize extends VolumesEvent {
|
|
const VolumeResize(
|
|
this.volume,
|
|
this.newSize,
|
|
);
|
|
|
|
final DiskVolume volume;
|
|
final DiskSize newSize;
|
|
|
|
@override
|
|
List<Object> get props => [volume, newSize];
|
|
}
|