-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: refactor dart call forwarding
- Loading branch information
Showing
16 changed files
with
249 additions
and
270 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
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
This file was deleted.
Oops, something went wrong.
29 changes: 11 additions & 18 deletions
29
lib/customer_io_const.dart → lib/data_pipelines/_native_constants.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 |
---|---|---|
@@ -1,33 +1,26 @@ | ||
// TODO: Cleanup this file later when all commented methods are implemented | ||
|
||
class MethodConsts { | ||
static const String initialize = "initialize"; | ||
static const String identify = "identify"; | ||
/// Methods specific to Data Pipelines module. | ||
class NativeMethods { | ||
static const String clearIdentify = "clearIdentify"; | ||
static const String track = "track"; | ||
static const String trackMetric = "trackMetric"; | ||
static const String identify = "identify"; | ||
static const String initialize = "initialize"; | ||
static const String screen = "screen"; | ||
static const String setDeviceAttributes = "setDeviceAttributes"; | ||
static const String setProfileAttributes = "setProfileAttributes"; | ||
static const String registerDeviceToken = "registerDeviceToken"; | ||
static const String onMessageReceived = "onMessageReceived"; | ||
static const String dismissMessage = "dismissMessage"; | ||
static const String getRegisteredDeviceToken = "getRegisteredDeviceToken"; | ||
static const String track = "track"; | ||
static const String trackMetric = "trackMetric"; | ||
} | ||
|
||
class TrackingConsts { | ||
static const String userId = "userId"; | ||
/// Method parameters specific to DataPipelines module. | ||
class NativeMethodParams { | ||
static const String attributes = "attributes"; | ||
static const String traits = "traits"; | ||
static const String eventName = "eventName"; | ||
static const String token = "token"; | ||
static const String deliveryId = "deliveryId"; | ||
static const String deliveryToken = "deliveryToken"; | ||
static const String metricEvent = "metricEvent"; | ||
static const String message = "message"; | ||
static const String handleNotificationTrigger = "handleNotificationTrigger"; | ||
|
||
static const String name = "name"; | ||
static const String properties = "properties"; | ||
static const String title = "title"; | ||
static const String token = "token"; | ||
static const String traits = "traits"; | ||
static const String userId = "userId"; | ||
} |
Oops, something went wrong.