/// <summary> /// 获取当前用户信息 /// </summary> private void GetCurrentUserInfo() { GetUserInfoRequest getcuruserinfoRequest = new GetUserInfoRequest(); List <string> scope = new List <string>(); scope.Add("uid"); scope.Add("name"); scope.Add("sex"); scope.Add("star"); scope.Add("zidou"); scope.Add("vip"); scope.Add("birthday"); scope.Add("email_hash"); scope.Add("tinyurl"); scope.Add("headurl"); scope.Add("mainurl"); scope.Add("hometown_location"); scope.Add("work_history"); scope.Add("university_history"); currentState = TLoginState.KGetUserInfo; getcuruserinfoRequest.GetUserInfo(scope, DownloadStringCompleted); }
/// <summary> /// 构造 /// </summary> public GetUserInfoBS() { getCurUserInfoRequest = new GetCurUserInfoRequest(); getUserInfoRequest = new GetUserInfoRequest(); userlist = new UserList(); }
/// <summary> /// 获取当前用户信息 /// </summary> private void GetCurrentUserInfo() { GetUserInfoRequest getcuruserinfoRequest = new GetUserInfoRequest(); List<string> scope = new List<string>(); scope.Add("uid"); scope.Add("name"); scope.Add("sex"); scope.Add("star"); scope.Add("zidou"); scope.Add("vip"); scope.Add("birthday"); scope.Add("email_hash"); scope.Add("tinyurl"); scope.Add("headurl"); scope.Add("mainurl"); scope.Add("hometown_location"); scope.Add("work_history"); scope.Add("university_history"); currentState = TLoginState.KGetUserInfo; getcuruserinfoRequest.GetUserInfo(scope, DownloadStringCompleted); }
UserList userlist; //获得的User数据 #endregion Fields #region Constructors /// <summary> /// 构造 /// </summary> public GetUserInfoBS() { getCurUserInfoRequest = new GetCurUserInfoRequest(); getUserInfoRequest = new GetUserInfoRequest(); userlist = new UserList(); }