Skip to content

Commit

Permalink
Fix missing Quota properties
Browse files Browse the repository at this point in the history
  • Loading branch information
dab246 authored and hoangdat committed Oct 4, 2023
1 parent 7c39c3e commit e8005e2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions lib/jmap/quotas/quota.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Quota with EquatableMixin {
final UnsignedInt? limit;
final Scope scope;
final String name;
final List<DataType> dataTypes;
final List<DataType>? dataTypes;
final List<DataType>? types;
final UnsignedInt? warnLimit;
final UnsignedInt? softLimit;
Expand All @@ -33,15 +33,15 @@ class Quota with EquatableMixin {
this.resourceType,
this.scope,
this.name,
this.dataTypes,
{
this.used,
this.hardLimit,
this.limit,
this.warnLimit,
this.softLimit,
this.description,
this.types
this.types,
this.dataTypes,
}
);

Expand Down
10 changes: 5 additions & 5 deletions lib/jmap/quotas/quota.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions test/jmap/quotas/get_quota_method_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ void main() {
ResourceType.count,
Scope.account,
'[email protected]',
[DataType.mail],
dataTypes: [DataType.mail],
types: [DataType.mail],
used: UnsignedInt(20000),
limit: UnsignedInt(50000),
Expand All @@ -30,7 +30,7 @@ void main() {
ResourceType.count,
Scope.account,
'[email protected]',
[DataType.mail, DataType.calendar, DataType.contact],
dataTypes: [DataType.mail, DataType.calendar, DataType.contact],
types: [DataType.mail, DataType.calendar, DataType.contact],
used: UnsignedInt(10000),
limit: UnsignedInt(70000),
Expand Down

0 comments on commit e8005e2

Please sign in to comment.