/// <summary> /// 获取指定用户信息 /// </summary> /// <param name="uid">uid列表</param> /// <param name="scope">权限列表</param> public void GetUsersID(string uid, List <string> scope) { if (uid != "") { List <int> sArray = new List <int>(); string[] uids = uid.Split(','); foreach (string aUid in uids) { sArray.Add(Convert.ToInt32(aUid)); } getUserInfoRequest.GetUserInfo(scope, DownloadStringCompleted, sArray); currentState = TGetUserInfoType.KGetUserInfo; } }
/// <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> 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); }