Beispiel #1
0
        public async Task <StoreApp> GetAppDetailsAsync(AppQueryParameters appQueryParameters)
        {
            var app = (await RemoteUserService.GetAppDetailAsync(appQueryParameters.GetAppQueryParametersDC())).GetStoreApp();

            this.Close();
            return(app);
        }
Beispiel #2
0
        public async Task <IEnumerable <StoreApp> > GetRandomAppsAsync(AppQueryParameters appQueryParameters)
        {
            var appsDC = await RemoteUserService.GetRandomAppsAsync(appQueryParameters.GetAppQueryParametersDC());

            var apps = appsDC.Select(appDC => appDC.GetStoreApp()).ToList();

            foreach (var app in apps)
            {
                app.Icon128x128 = await app.Icon128x128Bytes.ConvertToBitmapImageAsync();
            }
            this.Close();
            return(apps);
        }