コード例 #1
0
    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);
        }
    }
コード例 #2
0
    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
    }
コード例 #3
0
    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
    }
コード例 #4
0
    private void OnMatchFailed(string errorData)
    {
        _CurrentMatch = null;
        ISN_Error error = new ISN_Error(errorData);

        ActionMatchFailed(error);
    }
コード例 #5
0
    private void OnRecordInterrupted(string errorData)
    {
        _IsRecodingAvailableToShare = false;
        ISN_Error e = new ISN_Error(errorData);

        ActionRecordInterrupted(e);
    }
コード例 #6
0
    public void onRestoreTransactionFailed(string array)
    {
        ISN_Error e = new ISN_Error(array);

        IOSStoreKitRestoreResult r = new IOSStoreKitRestoreResult(e);

        OnRestoreComplete(r);
    }
コード例 #7
0
    private void OnRecordInterrupted(string errorData)
    {
        _IsRecording = false;

        ISN_Error e = new ISN_Error(errorData);

        ActionRecordInterrupted(e);
    }
コード例 #8
0
    private void VerificationSignatureRetrieveFailed(string array)
    {
        ISN_Error error = new ISN_Error(array);


        GK_PlayerSignatureResult res = new GK_PlayerSignatureResult(error);

        OnPlayerSignatureRetrieveResult(res);
    }
コード例 #9
0
    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);
    }
コード例 #10
0
    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);
    }
コード例 #11
0
    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);
    }
コード例 #12
0
    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);
        }
    }
コード例 #13
0
	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);
	}
コード例 #14
0
    //--------------------------------------
    // Initialize
    //--------------------------------------

    public IOSStoreKitResult(string productIdentifier, ISN_Error e) : base(e)
    {
        _ProductIdentifier = productIdentifier;
        _State             = InAppPurchaseState.Failed;
    }
コード例 #15
0
    private void OnSendDataError(string errorData)
    {
        ISN_Error error = new ISN_Error(errorData);

        ActionDataSendError(error);
    }
コード例 #16
0
	//--------------------------------------
	//  GET/SET
	//--------------------------------------
	
	//--------------------------------------
	//  EVENTS
	//--------------------------------------

	void HandleActionRecordInterrupted (ISN_Error error) {
		IOSNativePopUpManager.showMessage ("Video was interrupted with error: "," " + error.Description);
	}
コード例 #17
0
    //--------------------------------------
    //  GET/SET
    //--------------------------------------

    //--------------------------------------
    //  EVENTS
    //--------------------------------------

    void HandleActionRecordInterrupted(ISN_Error error)
    {
        IOSNativePopUpManager.showMessage("Video was interrupted with error: ", " " + error.Description);
    }
コード例 #18
0
 public ISN_PlayerSignatureResult(ISN_Error er) : base(false)
 {
     error = er;
 }
コード例 #19
0
	public ISN_PlayerSignatureResult(ISN_Error er):base(false) {
		error = er;
	}
コード例 #20
0
	private void VerificationSignatureRetrieveFailed(string array) {

		ISN_Error error =  new ISN_Error(array);
	

		GK_PlayerSignatureResult res =  new GK_PlayerSignatureResult(error);
		OnPlayerSignatureRetrieveResult(res);

	}
コード例 #21
0
 public ISN_Result(ISN_Error e)
 {
     SetError(e);
 }
コード例 #22
0
    public ISN_Result(string errorData)
    {
        ISN_Error e = new ISN_Error(errorData);

        SetError(e);
    }
コード例 #23
0
	//--------------------------------------
	// Initialize
	//--------------------------------------

	public IOSStoreKitResult(string productIdentifier, ISN_Error e): base(e) {
		_ProductIdentifier = productIdentifier;
		_State = InAppPurchaseState.Failed;
	}
コード例 #24
0
ファイル: ISN_Result.cs プロジェクト: sonxoans2/TapJump
	public ISN_Result (string errorData) {
		ISN_Error e =  new ISN_Error(errorData);
		SetError(e);
	}
コード例 #25
0
    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);
    }
コード例 #26
0
ファイル: ISN_Result.cs プロジェクト: sonxoans2/TapJump
	//--------------------------------------
	// Private Methods
	//--------------------------------------

	public void SetError(ISN_Error e) {
		_Error = e;
		_IsSucceeded = false;
	}
コード例 #27
0
    //--------------------------------------
    // Initialize
    //--------------------------------------


    public IOSStoreKitRestoreResult(ISN_Error e) : base(e)
    {
    }
コード例 #28
0
    //--------------------------------------
    // Private Methods
    //--------------------------------------

    public void SetError(ISN_Error e)
    {
        _Error       = e;
        _IsSucceeded = false;
    }
コード例 #29
0
	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);

	}
コード例 #30
0
ファイル: ISN_Result.cs プロジェクト: sonxoans2/TapJump
	public ISN_Result (ISN_Error e) {
		SetError(e);
	}
コード例 #31
0
	//--------------------------------------
	// Initialize
	//--------------------------------------


	public  IOSStoreKitRestoreResult(ISN_Error e) : base(e) {
	
	}
コード例 #32
0
    public void SetErrorData(string errorData)
    {
        ISN_Error e = new ISN_Error(errorData);

        SetError(e);
    }