Exemplo n.º 1
0
        public static IO.Swagger.Model.UserProfile UpdateProfile()
        {
            AccountManager lm  = AccountManager.GetInstance();
            DefaultApi     api = new DefaultApi("http://localhost:8080/api/");

            IO.Swagger.Model.UserProfile profile = new IO.Swagger.Model.UserProfile();
            profile        = api.GetMyProfile(lm.Token);
            lm.UserId      = profile.UserId.Value;
            lm.Username    = profile.Username;
            lm.DisplayName = profile.DisplayName;
            lm.Email       = profile.Email;

            return(profile);
        }
Exemplo n.º 2
0
        public static IO.Swagger.Model.UserProfile UpdateProfile()
        {
            AccountManager lm = AccountManager.GetInstance();
            DefaultApi api = new DefaultApi("http://localhost:8080/api/");

            IO.Swagger.Model.UserProfile profile = new IO.Swagger.Model.UserProfile();
            profile = api.GetMyProfile(lm.Token);
            lm.UserId = profile.UserId.Value;
            lm.Username = profile.Username;
            lm.DisplayName = profile.DisplayName;
            lm.Email = profile.Email;

            return profile;
        }