private async void BlackListItem_Click(object sender, RoutedEventArgs e) { try { user = await FanfouUWP.FanfouAPI.FanfouAPI.Instance.BlockCreate(this.user.id); defaultViewModel["user"] = user; ToastShow.ShowInformation("已经将@" + user.screen_name + "加入黑名单,若解锁请在个人页面完成"); } catch (Exception) { Utils.ToastShow.ShowInformation("加载失败,请检查网络"); } }
private async void AppBarButton_Click(object sender, RoutedEventArgs e) { try { user = await FanfouAPI.FanfouAPI.Instance.AccountUpdateProfile( url : url.Text, location : location.Text, description : description.Text, name : name.Text, email : email.Text); defaultViewModel["user"] = user; ToastShow.ShowInformation("修改用户资料成功!"); } catch { ToastShow.ShowInformation("修改用户资料失败!"); } }