2020-12-03 08:26:58 +06:30
|
|
|
import 'dart:async';
|
|
|
|
|
import 'dart:io';
|
|
|
|
|
|
|
|
|
|
import 'package:cloud_firestore/cloud_firestore.dart';
|
|
|
|
|
import 'package:fcs/domain/entities/package.dart';
|
|
|
|
|
import 'package:fcs/domain/entities/processing.dart';
|
|
|
|
|
import 'package:fcs/pages/main/model/base_model.dart';
|
|
|
|
|
import 'package:logging/logging.dart';
|
|
|
|
|
|
|
|
|
|
class ProcessingModel extends BaseModel {
|
|
|
|
|
List<Processing> processings = [];
|
|
|
|
|
final log = Logger('ProcessingModel');
|
|
|
|
|
|
2021-09-10 16:48:21 +06:30
|
|
|
StreamSubscription<QuerySnapshot>? listener;
|
2020-12-03 08:26:58 +06:30
|
|
|
|
|
|
|
|
void initUser(user) {
|
|
|
|
|
super.initUser(user);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
logout() async {
|
2021-09-10 16:48:21 +06:30
|
|
|
if (listener != null) await listener!.cancel();
|
2020-12-03 08:26:58 +06:30
|
|
|
|
|
|
|
|
processings = [];
|
|
|
|
|
}
|
|
|
|
|
|
2021-09-10 16:48:21 +06:30
|
|
|
Future<void> createProcessing(Processing processing) async {}
|
2020-12-03 08:26:58 +06:30
|
|
|
|
2021-09-10 16:48:21 +06:30
|
|
|
Future<void> updateProcessing(Processing processing) async {}
|
2020-12-03 08:26:58 +06:30
|
|
|
}
|