Esempio n. 1
0
        public void AddScreenshot(AppScreenshot screenshot)
        {
            _developerService.SaveScreenshotAsync(screenshot);
            MobileScreenshots.Add(screenshot);

            // notify ui
            this.OnPropertyChanged(nameof(HasMobileScreenshot));
        }
Esempio n. 2
0
        private async void LoadScreenshots()
        {
            var filter = new AppScreenshotFilter()
            {
                AppId          = AppDetail.AppSpecification.AppId,
                AppGuid        = AppDetail.AppSpecification.Guid,
                ScreenshotSize = DeveloperService.ScreenshotSize.Thumbnail,
                ScreenshotType = DeveloperService.ScreenshotType.Mobile
            };

            var screenshotIds = await _developerService.GetScreenshotIdsAsync(filter);

            foreach (var id in screenshotIds)
            {
                filter.ScreenshotId = id;
                var screenshot = await _developerService.GetScreenshotAsync(filter);

                MobileScreenshots.Add(screenshot);
            }

            // notify ui
            this.OnPropertyChanged(nameof(HasMobileScreenshot));
        }