-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TF-3157 Remove unnecessary background service worker
- Loading branch information
1 parent
66b39ee
commit 00411b1
Showing
5 changed files
with
59 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
lib/features/push_notification/data/model/web_socket_echo_request.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import 'package:jmap_dart_client/jmap/core/capability/capability_identifier.dart'; | ||
|
||
class WebSocketEchoRequest { | ||
static const String type = 'Request'; | ||
static const String id = 'R1'; | ||
static CapabilityIdentifier using = CapabilityIdentifier.jmapCore; | ||
static const String method = 'Core/echo'; | ||
|
||
const WebSocketEchoRequest._(); | ||
|
||
static Map<String, dynamic> toJson() { | ||
return { | ||
'@type': type, | ||
'id': id, | ||
'using': [using.value.toString()], | ||
'methodCalls': [[method, {}, 'c0']], | ||
}; | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
lib/features/push_notification/data/model/web_socket_push_enable_request.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import 'package:fcm/model/type_name.dart'; | ||
|
||
class WebSocketPushEnableRequest { | ||
static const String type = 'WebSocketPushEnable'; | ||
|
||
static Map<String, dynamic> toJson({ | ||
required List<TypeName> dataTypes, | ||
}) { | ||
return { | ||
'@type': type, | ||
'dataTypes': dataTypes.map((typeName) => typeName.value).toList(), | ||
}; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters