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

            this.Close();
            return(app);
        }
Example #2
0
        public async Task <AuthenticationResult> SignInAsync(string username, string password)
        {
            var result = (await RemoteUserService.SignInAsync(username, password)).GetAuthenticationResult();

            this.Close();
            return(result);
        }
Example #3
0
        public async Task <bool> TryActivateAccountAsync(int activationCode)
        {
            var result = await RemoteUserService.TryActivateAccountAsync(activationCode);

            this.Close();
            return(result);
        }
Example #4
0
        public async Task <ServerDescriptor> RegisterDeviceAsync(UserClientDescriptor descriptor)
        {
            var result = await RemoteUserService.RegisterDeviceAsync(descriptor.GetUserClientrDescriptorDC());

            this.Close();
            return(result.GetServerDescriptor());
        }
Example #5
0
        public async Task <bool> IsEmailAvailableForRegistration(string email)
        {
            var result = await RemoteUserService.IsEmailAvailableForRegistrationAsync(email);

            this.Close();
            return(result);
        }
Example #6
0
        public async Task <ServerDescriptor> GetServerDiscriptorAsync(UserClientDescriptor descriptor)
        {
            var serverDescriptor = (await RemoteUserService.GetServerDescriptorAsync(descriptor.GetUserClientrDescriptorDC()))
                                   .GetServerDescriptor();

            this.Close();
            return(serverDescriptor);
        }
Example #7
0
        public async Task <IEnumerable <AppVersion> > GetAppsLatestVersionInfoAsync(IEnumerable <Guid> appGuids)
        {
            var latestVersions =
                (await RemoteUserService.GetAppsLatestVersionInfoAsync(appGuids.ToArray()))
                .Select(version => version.GetAppVersion());

            this.Close();
            return(latestVersions);
        }
Example #8
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);
        }
Example #9
0
        public async Task <Screenshot> GetAppScreenShotAsync(
            Guid appGuid,
            AppScreenshotSize screenShotSize,
            AppScreenshotType screenShotType,
            int screenShotIndex)
        {
            var screenShotDC = await RemoteUserService.GetAppScreenshotAsync(new ScreenshotFilterDataContract()
            {
                AppGuid         = appGuid,
                ScreenshotSize  = (ScreenshotSize)screenShotSize,
                ScreenshotType  = (ScreenshotType)screenShotType,
                ScreenshotIndex = screenShotIndex
            });

            this.Close();
            return(await screenShotDC.GetScreenShotAsync());
        }
Example #10
0
 public async Task <IEnumerable <AppCategory> > GetAppCategoriesAsync()
 {
     return((await RemoteUserService.GetAppCategoriesAsync())
            .Select(appCategoryDC => appCategoryDC.GetAppCategory()));
 }
Example #11
0
        public async Task ResendActivationCodeAsync()
        {
            await RemoteUserService.ResendActivationCodeAsync();

            this.Close();
        }
Example #12
0
        public async Task RegisterNaturalPersonAsync(NaturalPerson naturalPerson)
        {
            await RemoteUserService.RegisterNaturalPersonAsync(naturalPerson.GetNaturalPersonDC(), naturalPerson.Password);

            this.Close();
        }
Example #13
0
        public async Task SignOutAsync()
        {
            await RemoteUserService.SignOutAsync();

            this.Close();
        }