public Profile EditUserSettings(string aboutText = "", string newPassword = "", string avatarImagePath = "") { this.CheckAppKey(); this.CheckLoggedIn(); try { var req = YifyAPI.GetEditUserSettingsRequest(this.userKey, this.appKey, aboutText, newPassword, avatarImagePath); string res = Task <string> .Factory.StartNew(() => { return(YifyAPI.SendPostRequestAsync(req).Result); }).Result; return(_parser.ParseGetProfileRequest(res)); } catch (FileNotFoundException) { throw; } catch (Exception ex) { throw new YifyException("An error occurred. See inner exception for more details", ex); } }