Exemple #1
0
    public void DidRequestAction(TapjoyEvent tapjoyEvent, TapjoyEventRequest request)
    {
        Debug.Log("C#: DidRequestAction type:" + request.type + ", identifier:" + request.identifier + ", quantity:" + request.quantity);

        /*
         * // Your app should perform an action based on the value of the request.type property
         * switch(request.type){
         *      case TapjoyEventRequest.TYPE_IN_APP_PURCHASE:
         *              // Your app should initiate an in-app purchase of the product identified by request.identifier
         *              break;
         *      case TapjoyEventRequest.TYPE_VIRTUAL_GOOD:
         *              // Your app should award the user the item specified by request.identifier with the amount specified by request.quantity
         *              break;
         *      case TapjoyEventRequest.TYPE_CURRENCY:
         *              // The user has been awarded the currency specified with request.identifier, with the amount specified by request.quantity
         *              break;
         *      case TapjoyEventRequest.TYPE_NAVIGATION:
         *              // Your app should attempt to navigate to the location specified by request.identifier
         *              break;
         * }
         */

        // Your app must call either EventRequestCompleted() or EventRequestCancelled() to complete the lifecycle of the request
        request.EventRequestCompleted();
    }
Exemple #2
0
    public void TriggerDidRequestAction(int type, string identifier, int quantity)
    {
        Debug.Log("C#: TriggerDidRequestAction");
        TapjoyEventRequest tapjoyEventRequest = new TapjoyEventRequest(this.myGuid, type, identifier, quantity);

        this.myCallback.DidRequestAction(this, tapjoyEventRequest);
    }
Exemple #3
0
	public void TriggerDidRequestAction(int type, string identifier, int quantity)
	{
		Debug.Log("C#: TriggerDidRequestAction");

		TapjoyEventRequest eventRequest = new TapjoyEventRequest(myGuid, type, identifier, quantity);

		myCallback.DidRequestAction(this, eventRequest);
	}
Exemple #4
0
	public void DidRequestAction(TapjoyEvent tapjoyEvent, TapjoyEventRequest request)
	{
		Debug.Log("C#: DidRequestAction type:" + request.type + ", identifier:" + request.identifier + ", quantity:" + request.quantity);

		/*
		// Your app should perform an action based on the value of the request.type property
		switch(request.type){
			case TapjoyEventRequest.TYPE_IN_APP_PURCHASE:
				// Your app should initiate an in-app purchase of the product identified by request.identifier
				break;
			case TapjoyEventRequest.TYPE_VIRTUAL_GOOD:
				// Your app should award the user the item specified by request.identifier with the amount specified by request.quantity
				break;
			case TapjoyEventRequest.TYPE_CURRENCY:
				// The user has been awarded the currency specified with request.identifier, with the amount specified by request.quantity
				break;
			case TapjoyEventRequest.TYPE_NAVIGATION:
				// Your app should attempt to navigate to the location specified by request.identifier
				break;
		}
		*/

		// Your app must call either EventRequestCompleted() or EventRequestCancelled() to complete the lifecycle of the request
		request.EventRequestCompleted();
	}