public void OnComplete(JSONObject jsonResults)
        {
            if (_completion == null)
            {
                return;
            }

            Dictionary <string, object> results = new Dictionary <string, object>();

            if (jsonResults != null)
            {
                results = Json.Deserialize(jsonResults.ToString()) as Dictionary <string, object>;
            }
            _completion?.Invoke(results);
        }
 public override void SetExternalUserId(string externalId, string authHashToken, OnExternalUserIdUpdate success, OnExternalUserIdUpdateFailure failure) {
    iOS.OneSignal.SetExternalUserId(externalId, authHashToken, (results) => {
       success?.Invoke(NSDictToPureDict(results));
    }, error =>
    {
       if (failure != null)
       {
          Dictionary<string, object> dict;
          if (error.UserInfo != null)
             dict = NSDictToPureDict(error.UserInfo);
          else
             dict = new Dictionary<string, object> { { "error", "An unknown error occurred" } };
          failure(dict);
       }
    });
 }
 public override void RemoveExternalUserId(OnExternalUserIdUpdate completion)
 {
     iOS.OneSignal.RemoveExternalUserId((results) => {
         completion?.Invoke(NSDictToPureDict(results));
     });
 }
 public override void SetExternalUserId(string externalId, OnExternalUserIdUpdate completion)
 {
     iOS.OneSignal.SetExternalUserId(externalId, (results) => {
         completion?.Invoke(NSDictToPureDict(results));
     });
 }