TF-1014: [Dev] Show quota at the bottom of mailbox

This commit is contained in:
ManhNTX
2022-11-09 16:49:01 +07:00
committed by Dat H. Pham
parent 21f027246b
commit 75495e7d1f
28 changed files with 508 additions and 6 deletions
@@ -0,0 +1,3 @@
class NotFoundQuotasException implements Exception {
NotFoundQuotasException();
}
@@ -0,0 +1,30 @@
import 'package:equatable/equatable.dart';
import 'package:jmap_dart_client/jmap/account_id.dart';
import 'package:jmap_dart_client/jmap/core/id.dart';
import 'package:jmap_dart_client/jmap/core/state.dart';
import 'package:jmap_dart_client/jmap/quotas/quota.dart';
class QuotasResponse with EquatableMixin {
final AccountId accountId;
final State state;
final List<Quota> quotas;
final List<Id>? notFound;
QuotasResponse({
required this.accountId,
required this.state,
required this.quotas,
this.notFound,
});
bool hasData() {
return quotas.isNotEmpty;
}
@override
List<Object?> get props => [
quotas,
state,
notFound,
];
}