Beispiel #1
0
        public async void updateProfile()
        {
            ProfilVM user = new ProfilVM();

            user.email = GlobalData.email;

            ProfilRP res = await ApiCall.MakeCall <ProfilVM, ProfilRP>("profil", user);

            if (res.success)
            {
                username.Text = res.user.pseudo;
                email.Text    = res.user.email;
                GlobalData.id = res.user._id;
            }
        }
Beispiel #2
0
        public async void updateProfile()
        {
            ProfilVM user = new ProfilVM();

            user.email = GlobalData.email;

            ProfilRP res = await ApiCall.MakeCall<ProfilVM, ProfilRP>("profil", user);

            if (res.success)
            {
                username.Text = res.user.pseudo;
                email.Text = res.user.email;
                GlobalData.id = res.user._id;
            }
        }