authenticate method

  1. @override
Future<int> authenticate(
  1. String clientId,
  2. String txnId,
  3. int msisdn, {
  4. String env = "Production",
  5. bool isWifiSwitchOverEnabled = true,
  6. int timeoutinMs = 15000,
})
override

Implementation

@override
Future<int> authenticate(String clientId, String txnId, int msisdn,
    {String env = "Production",
    bool isWifiSwitchOverEnabled = true,
    int timeoutinMs = 15000}) async {
  var data = {
    "clientId": clientId,
    "txnId": txnId,
    "msisdn": msisdn,
    "env": env,
    "isWifiSwitchOverEnabled": isWifiSwitchOverEnabled,
    "timeout": timeoutinMs
  };
  final int status;
  status = await _channel.invokeMethod('authenticate', data);

  return status;
}