mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-18 06:39:14 +00:00
41 lines
792 B
Dart
41 lines
792 B
Dart
part of 'services_bloc.dart';
|
|
|
|
abstract class ServicesEvent extends Equatable {
|
|
const ServicesEvent();
|
|
}
|
|
|
|
class ServicesListUpdate extends ServicesEvent {
|
|
const ServicesListUpdate(this.services);
|
|
|
|
final List<Service> services;
|
|
|
|
@override
|
|
List<Object?> get props => [services];
|
|
}
|
|
|
|
class ServicesReload extends ServicesEvent {
|
|
const ServicesReload();
|
|
|
|
@override
|
|
List<Object?> get props => [];
|
|
}
|
|
|
|
class ServiceRestart extends ServicesEvent {
|
|
const ServiceRestart(this.service);
|
|
|
|
final Service service;
|
|
|
|
@override
|
|
List<Object?> get props => [service];
|
|
}
|
|
|
|
class ServiceMove extends ServicesEvent {
|
|
const ServiceMove(this.service, this.destination);
|
|
|
|
final Service service;
|
|
final String destination;
|
|
|
|
@override
|
|
List<Object?> get props => [service, destination];
|
|
}
|