private void OnStoreKitInitFailed(string data) { string[] storeData; storeData = data.Split("|" [0]); ISN_Error e = new ISN_Error(); e.code = System.Convert.ToInt32(storeData[0]); e.description = storeData[1]; _IsStoreLoaded = false; _IsWaitingLoadResult = false; ISN_Result res = new ISN_Result(false); res.error = e; dispatch(STORE_KIT_INITI_FAILED, res); OnStoreKitInitComplete(res); if (!IOSNativeSettings.Instance.DisablePluginLogs) { Debug.Log("STORE_KIT_INIT_FAILED Error: " + e.description); } }
public void RestorePurchases() { if (!_IsStoreLoaded) { ISN_Error e = new ISN_Error((int)IOSTransactionErrorCode.SKErrorPaymentServiceNotInitialized, "Store Kit Initilizations required"); IOSStoreKitRestoreResult r = new IOSStoreKitRestoreResult(e); OnRestoreComplete(r); return; } OnRestoreStarted(); #if !UNITY_EDITOR IOSNativeMarketBridge.restorePurchases(); #else if (IOSNativeSettings.Instance.SendFakeEventsInEditor) { foreach (IOSProductTemplate product in Products) { if (product.ProductType == ISN_InAppType.NonConsumable) { Debug.Log("Restored: " + product.Id); FireProductBoughtEvent(product.Id, "", "", "", true); } } FireRestoreCompleteEvent(); } #endif }
public void restorePurchases() { if (!_IsStoreLoaded) { ISN_Error e = new ISN_Error((int)IOSTransactionErrorCode.SKErrorPaymentServiceNotInitialized, "Store Kit Initilizations required"); IOSStoreKitRestoreResult r = new IOSStoreKitRestoreResult(e); OnRestoreComplete(r); return; } #if !UNITY_EDITOR IOSNativeMarketBridge.restorePurchases(); #else if (IOSNativeSettings.Instance.SendFakeEventsInEditor) { foreach (string productId in _productsIds) { Debug.Log("Restored: " + productId); FireProductBoughtEvent(productId, "", "", "", true); } FireRestoreCompleteEvent(); } #endif }
private void OnMatchFailed(string errorData) { _CurrentMatch = null; ISN_Error error = new ISN_Error(errorData); ActionMatchFailed(error); }
private void OnRecordInterrupted(string errorData) { _IsRecodingAvailableToShare = false; ISN_Error e = new ISN_Error(errorData); ActionRecordInterrupted(e); }
public void onRestoreTransactionFailed(string array) { ISN_Error e = new ISN_Error(array); IOSStoreKitRestoreResult r = new IOSStoreKitRestoreResult(e); OnRestoreComplete(r); }
private void OnRecordInterrupted(string errorData) { _IsRecording = false; ISN_Error e = new ISN_Error(errorData); ActionRecordInterrupted(e); }
private void VerificationSignatureRetrieveFailed(string array) { ISN_Error error = new ISN_Error(array); GK_PlayerSignatureResult res = new GK_PlayerSignatureResult(error); OnPlayerSignatureRetrieveResult(res); }
private void OnInstaPostFailed(string data) { int code = System.Convert.ToInt32(data); ISN_Error error = new ISN_Error(code, "Posting Failed"); ISN_Result result = new ISN_Result(error); OnInstagramPostResult(result); }
private void OnStoreKitInitFailed(string data) { string[] storeData; storeData = data.Split("|" [0]); ISN_Error e = new ISN_Error(); e.code = System.Convert.ToInt32(storeData[0]); e.description = storeData[1]; _IsStoreLoaded = false; _IsWaitingLoadResult = false; dispatch(STORE_KIT_INITI_FAILED, e); }
private void VerificationSignatureRetrieveFailed(string array) { string[] data; data = array.Split("|" [0]); ISN_Error error = new ISN_Error(); error.code = System.Convert.ToInt32(data[0]); error.description = data[1]; ISN_PlayerSignatureResult res = new ISN_PlayerSignatureResult(error); OnPlayerSignatureRetrieveResult(res); }
private void OnStoreKitInitFailed(string data) { ISN_Error e = new ISN_Error(data); _IsStoreLoaded = false; _IsWaitingLoadResult = false; ISN_Result res = new ISN_Result(false); res.SetError(e); OnStoreKitInitComplete(res); if (!IOSNativeSettings.Instance.DisablePluginLogs) { Debug.Log("STORE_KIT_INIT_FAILED Error: " + e.Description); } }
private void OnUpdateMatchResult(string data) { string[] DataArray = data.Split(IOSNative.DATA_SPLITTER[0]); GK_TBM_MatchDataUpdateResult result; string matchId = DataArray[0]; GK_TBM_Match m = GetMatchById(matchId); if(m == null) { result = new GK_TBM_MatchDataUpdateResult(); ISN_Error e = new ISN_Error(); e.code = 0; e.description = "Match with id: " + matchId + " not found"; result.SetError(e); Debug.LogWarning(e.description); } else { m.SetData(DataArray[1]); result = new GK_TBM_MatchDataUpdateResult(m); } ActionMatchDataUpdated(result); }
//-------------------------------------- // Initialize //-------------------------------------- public IOSStoreKitResult(string productIdentifier, ISN_Error e) : base(e) { _ProductIdentifier = productIdentifier; _State = InAppPurchaseState.Failed; }
private void OnSendDataError(string errorData) { ISN_Error error = new ISN_Error(errorData); ActionDataSendError(error); }
//-------------------------------------- // GET/SET //-------------------------------------- //-------------------------------------- // EVENTS //-------------------------------------- void HandleActionRecordInterrupted (ISN_Error error) { IOSNativePopUpManager.showMessage ("Video was interrupted with error: "," " + error.Description); }
//-------------------------------------- // GET/SET //-------------------------------------- //-------------------------------------- // EVENTS //-------------------------------------- void HandleActionRecordInterrupted(ISN_Error error) { IOSNativePopUpManager.showMessage("Video was interrupted with error: ", " " + error.Description); }
public ISN_PlayerSignatureResult(ISN_Error er) : base(false) { error = er; }
public ISN_PlayerSignatureResult(ISN_Error er):base(false) { error = er; }
public ISN_Result(ISN_Error e) { SetError(e); }
public ISN_Result(string errorData) { ISN_Error e = new ISN_Error(errorData); SetError(e); }
//-------------------------------------- // Initialize //-------------------------------------- public IOSStoreKitResult(string productIdentifier, ISN_Error e): base(e) { _ProductIdentifier = productIdentifier; _State = InAppPurchaseState.Failed; }
public ISN_Result (string errorData) { ISN_Error e = new ISN_Error(errorData); SetError(e); }
//-------------------------------------- // Private Methods //-------------------------------------- public void SetError(ISN_Error e) { _Error = e; _IsSucceeded = false; }
//-------------------------------------- // Initialize //-------------------------------------- public IOSStoreKitRestoreResult(ISN_Error e) : base(e) { }
public ISN_Result (ISN_Error e) { SetError(e); }
public void SetErrorData(string errorData) { ISN_Error e = new ISN_Error(errorData); SetError(e); }