Beispiel #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="request"></param>
 private void ShowRequestPopup(Request request)
 {
     if (EnjinEditor.IsRequestSuccessfull(request.state))
     {
         EditorUtility.DisplayDialog("SUCCESS", "The request has posted with a status of " + request.state + ". Please see your wallet to complete the transaction!", "Ok");
     }
     else
     {
         EditorUtility.DisplayDialog("FAILURE", "The request could not be processed due to a status of " + request.state + ".", "Ok");
     }
 }
Beispiel #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="request"></param>
        public void HandleRequestAction(Request request)
        {
            Debug.Log("<color=violet>[Handler Request]</color> " + JsonUtility.ToJson(request));

            Result result = new Result
            {
                Type    = Result.Types.CRYPTOITEMS,
                Request = request,
                Refresh = true,
                Message = JsonUtility.ToJson(request),
                Status  = (EnjinEditor.IsRequestSuccessfull(request.state)) ? Status.SUCCESS : Status.FAILURE
            };

            EnjinEditor.NotificationMonitor.ResultsQueue.Add(System.Guid.NewGuid().ToString(), result);
            //_resultQueue.Add(System.Guid.NewGuid().ToString(), result);
        }
Beispiel #3
0
        public void HandleChainedRequestAction(Request request, RequestEvent requestEvent, ProcessTasks task, CryptoItem cryptoItem, Dictionary <string, object> properties)
        {
            Debug.Log("<color=violet>[Handler Request]</color> " + JsonUtility.ToJson(request));

            Result result = new Result
            {
                Type    = Result.Types.CRYPTOITEMS,
                Request = request,
                Refresh = true,
                Message = JsonUtility.ToJson(request),
                Status  = (EnjinEditor.IsRequestSuccessfull(request.state)) ? Status.SUCCESS : Status.FAILURE
            };

            CompoundQuery query = new CompoundQuery(task, requestEvent.data.token, properties);

            result.compoundQueries.Add(query);

            EnjinEditor.NotificationMonitor.ResultsQueue.Add(System.Guid.NewGuid().ToString(), result);
            //_resultQueue.Add(System.Guid.NewGuid().ToString(), result);
        }