public async void AddResumeBubble()
        {
            try
            {
                //ShowViewModel<HomeViewModel>();

                file_name = Regex.Replace(file_name, @"\s+", "_");

                user_details.file_url = "https://" + "srendip-dev" + ".s3.amazonaws.com/" + AccountInfo.Profile_email + "/" + "Profile_resume" + "/" + file_name;

                user_details.detail = file_name;

                bubble_details.Add(user_details);

                var result = await client.AddBubbleFile(Convert.ToInt32(bubble_id), type, bubble_details);

                Debug.WriteLine("RESULT");
                if (result != null && result.code.Equals(200))
                {
                    ShowViewModel <BubbleBoardViewModel>();
                }
                else
                {
                    //Debug.WriteLine("ERROR PERFORMING SIGN IN RESULT " + result.message);
                }
            }
            catch (HttpRequestException hre)
            {
                Debug.WriteLine("ERROR PERFORMING SIGN IN HTTPREQUEST");
            }
        }
Beispiel #2
0
        public async void AddPetsBubble()
        {
            try
            {
                foreach (Models.PetsList petsList in AddPetViewModel.PetList)
                {
                    Bytes = petsList.PetBytes;

                    petName = petsList.PetName;

                    ChangeImage();
                }

                //ShowViewModel<HomeViewModel>();

                var result = await client.AddBubbleFile(Convert.ToInt32(bubble_id), type, bubble_details);

                Debug.WriteLine("RESULT");
                if (result != null && result.code.Equals(200))
                {
                    ShowViewModel <BubbleBoardViewModel>();
                }
                else
                {
                    //Debug.WriteLine("ERROR PERFORMING SIGN IN RESULT " + result.message);
                }
            }
            catch (HttpRequestException hre)
            {
                Debug.WriteLine("ERROR PERFORMING SIGN IN HTTPREQUEST");
            }
        }