mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-18 22:59:16 +00:00
31 lines
593 B
Dart
31 lines
593 B
Dart
import 'package:equatable/equatable.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:selfprivacy/utils/password_generator2.dart';
|
|
|
|
import '../user.dart';
|
|
|
|
@immutable
|
|
class Job extends Equatable {
|
|
Job({
|
|
String? id,
|
|
required this.title,
|
|
}) : id = id ?? getRandomString(5);
|
|
|
|
final String title;
|
|
final String id;
|
|
|
|
@override
|
|
List<Object> get props => [id, title];
|
|
}
|
|
|
|
class CreateUserJob extends Job {
|
|
CreateUserJob({
|
|
required this.user,
|
|
}) : super(title: 'Create ${user.login}');
|
|
|
|
final User user;
|
|
|
|
@override
|
|
List<Object> get props => [id, title];
|
|
}
|