File tree Expand file tree Collapse file tree 5 files changed +13
-6
lines changed Expand file tree Collapse file tree 5 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ class CapabilityIdentifier with EquatableMixin {
9
9
static final jmapMdn = CapabilityIdentifier (Uri .parse ('urn:ietf:params:jmap:mdn' ));
10
10
static final jmapQuota = CapabilityIdentifier (Uri .parse ('urn:ietf:params:jmap:quota' ));
11
11
static final jmapTeamMailboxes = CapabilityIdentifier (Uri .parse ('urn:apache:james:params:jmap:mail:shares' ));
12
- static final jmapSortOrder = CapabilityIdentifier (Uri .parse ('urn:apache:james:params:jmap:mail:identity:sortorder' ));
12
+ static final jamesSortOrder = CapabilityIdentifier (Uri .parse ('urn:apache:james:params:jmap:mail:identity:sortorder' ));
13
13
14
14
final Uri value;
15
15
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ class GetIdentityMethod extends GetMethod {
29
29
Set <CapabilityIdentifier > get requiredCapabilitiesSupportSortOrder => {
30
30
CapabilityIdentifier .jmapCore,
31
31
CapabilityIdentifier .jmapSubmission,
32
- CapabilityIdentifier .jmapSortOrder
32
+ CapabilityIdentifier .jamesSortOrder
33
33
};
34
34
35
35
@override
Original file line number Diff line number Diff line change @@ -19,6 +19,12 @@ class SetIdentityMethod extends SetMethod<Identity> {
19
19
CapabilityIdentifier .jmapSubmission
20
20
};
21
21
22
+ Set <CapabilityIdentifier > get requiredCapabilitiesSupportSortOrder => {
23
+ CapabilityIdentifier .jmapCore,
24
+ CapabilityIdentifier .jmapSubmission,
25
+ CapabilityIdentifier .jamesSortOrder
26
+ };
27
+
22
28
@override
23
29
Map <String , dynamic > toJson () {
24
30
final val = < String , dynamic > {
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ dev_dependencies:
31
31
flutter_test :
32
32
sdk : flutter
33
33
34
- http_mock_adapter : 0.3.2
34
+ http_mock_adapter : 0.3.3
35
35
36
36
# For information on the generic Dart part of this file, see the
37
37
# following page: https://dart.dev/tools/pub/pubspec
Original file line number Diff line number Diff line change @@ -46,7 +46,8 @@ void main() {
46
46
data: {
47
47
"using" : [
48
48
"urn:ietf:params:jmap:core" ,
49
- "urn:ietf:params:jmap:submission"
49
+ "urn:ietf:params:jmap:submission" ,
50
+ "urn:apache:james:params:jmap:mail:identity:sortorder"
50
51
],
51
52
"methodCalls" : [
52
53
[
@@ -70,7 +71,7 @@ void main() {
70
71
headers: {
71
72
"accept" : "application/json;jmapVersion=rfc-8621" ,
72
73
"content-type" : "application/json; charset=utf-8" ,
73
- "content-length" : 522
74
+ "content-length" : 577
74
75
}
75
76
);
76
77
@@ -89,7 +90,7 @@ void main() {
89
90
final requestBuilder = JmapRequestBuilder (httpClient, ProcessingInvocation ());
90
91
final setIdentityInvocation = requestBuilder.invocation (setIdentityMethod);
91
92
final response = await (requestBuilder
92
- ..usings (setIdentityMethod.requiredCapabilities ))
93
+ ..usings (setIdentityMethod.requiredCapabilitiesSupportSortOrder ))
93
94
.build ()
94
95
.execute ();
95
96
You can’t perform that action at this time.
0 commit comments