public static void onRestoreTransactionsFinished(RestoreTransactionsFinishedEvent _Event) { bool success = _Event.GetSuccess(); SoomlaUtils.LogDebug(TAG, "SOOMLA/UNITY onRestoreTransactionsFinished:" + success.ToString()); StoreEvents.OnRestoreTransactionsFinished(success); }
/// <summary> /// Handles the <c>onRestoreTransactionsFinished</c> event, which is fired when the restore transactions /// process has finished. /// </summary> /// <param name="message">Message that contains information about the <c>restoreTransactions</c> process that /// has finished.</param> public void onRestoreTransactionsFinished(string message) { SoomlaUtils.LogDebug(TAG, "SOOMLA/UNITY onRestoreTransactionsFinished:" + message); bool success = Convert.ToBoolean(int.Parse(message)); StoreEvents.OnRestoreTransactionsFinished(success); }
/// <summary> /// Handles the <c>onRestoreTransactionsFinished</c> event, which is fired when the restore transactions /// process has finished. /// </summary> /// <param name="message">Message that contains information about the <c>restoreTransactions</c> process that /// has finished.</param> public void onRestoreTransactionsFinished(string message) { SoomlaUtils.LogDebug(TAG, "SOOMLA/UNITY onRestoreTransactionsFinished:" + message); var eventJSON = new JSONObject(message); bool success = eventJSON["success"].b; StoreEvents.OnRestoreTransactionsFinished(success); }