public void Update()
        {
            IEnumerable <AnalyticDisplayModel> analytics = facade.GetAll();

            Analytics.Clear();
            foreach (AnalyticDisplayModel analytic in analytics)
            {
                Analytics.Add(analytic);
            }

            RaisePropertyChangedEvent("SelectedAnalytic");
        }
Esempio n. 2
0
 private void Attached(Attachable attachable, AttachableHolder holder)
 {
     enabled = false;
     if (null != _guideVisual)
     {
         _guideVisual.gameObject.SetActive(false);
     }
     _drawHighlight = false;
     OnStepCompleted();
     Analytics.Add("attachment_accuracy", _enteredRotation / 36f);
     Debug.Log("attachment_accuracy  " + _enteredRotation / 36f);
     Analytics.Add("drops", Mathf.Clamp(_grabCount, 0, 5));
     Debug.Log("drops  " + _grabCount);
 }
        /// <summary>
        /// Executes processing of the deal redemption timeout reversal request.
        /// </summary>
        public ResultCode Execute()
        {
            ResultCode result;

            // Marshal the First Data reverse deal request into a the context.
            FirstData firstData = new FirstData(Context);

            firstData.MarshalRedemptionTimeout();

            // Update the data store to reflect the reversal of the redeemed deal.
            result = ProcessRedemptionTimeout();

            if (result == ResultCode.Success)
            {
                Analytics.Add(AnalyticsAction.ReversedDealNonTimeout, Context.Log.ActivityId);
            }

            // Build the response to send back to First Data based on the result of reversing the deal.
            Context[Key.ResultCode] = result;
            firstData.BuildRedemptionTimeoutResponse();

            return(result);
        }