mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-09-12 06:47:18 +00:00
26 lines
482 B
Dart
26 lines
482 B
Dart
import 'package:equatable/equatable.dart';
|
|
import 'package:selfprivacy/logic/models/state_types.dart';
|
|
|
|
enum ServiceTypes {
|
|
messanger,
|
|
mail,
|
|
passwordManager,
|
|
github,
|
|
cloud,
|
|
}
|
|
|
|
class Service extends Equatable {
|
|
const Service({this.state, this.type});
|
|
|
|
final StateType state;
|
|
final ServiceTypes type;
|
|
|
|
Service updateState(StateType newState) => Service(
|
|
state: newState,
|
|
type: type,
|
|
);
|
|
|
|
@override
|
|
List<Object> get props => [state, type];
|
|
}
|