Ejemplo n.º 1
0
        public async Task FetchSubscriptionItems()
        {
            IsBusy = true;
            var subscriptionService = new SubscriptionService();

            subscriptionList = await subscriptionService.GetAppSubscriptionList();

            if (subscriptionList != null && subscriptionList.Length > 0)
            {
                AppSubscription monthSubscription = subscriptionList[0];
                AppSubscription yearSubscription  = subscriptionList[1];

                MonthlySubscription = "$" + monthSubscription.cost + "/" + monthSubscription.name;
                MonthlyDesc         = "-" + monthSubscription.description;

                YearlySubscription = "$" + yearSubscription.cost + "/" + yearSubscription.name;
                YearlyDesc         = "-" + yearSubscription.description;
            }
            else
            {
                Debug.WriteLine("Subscription list is empty");
            }
            IsBusy             = false;
            IsConatinerVisible = true;
        }