Пример #1
0
        private async void photoList_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (e.AddedItems.Count == 1)
            {
                var             photo   = e.AddedItems[0] as FacebookAlbumPhotoViewModel;
                AddPhotoRequest request = new AddPhotoRequest();
                request.Transmit = "fb";

                Asset asset = new Asset()
                {
                    Id = photo.ID, Main = _main, XdistancePercent = 1, YdistancePercent = 1, XoffsetPercent = 0, YoffsetPercent = 0
                };

                request.Assets = new Asset[] { asset };

                TinderSession.CurrentSession.CurrentProfile.Photos = await ContentClient.PostAsync <List <Photo> >("media", request).ConfigureAwait(false);

                NavigationService.GoBack();
            }
        }