public void addUser(fbUser fbuser)
 {
     foreach (fbUser user in cachedUsers)
     {
         if (user.profile_id.Equals(fbuser.profile_id))
         {
             //宣告使用者更新的Class & 更新flag
             bool   update_flag = false;
             fbUser updatedUser = new fbUser(fbuser.profile_id, fbuser.cover_name);
             //如果名字換了
             if (!fbuser.cover_name.Equals(user.cover_name))
             {
                 //上面建構子已經更新過
                 update_flag = true;
             }
             //如果好友資料有存在
             if (fbuser.friends_isCached && fbuser.friends != null)
             {
                 updatedUser.friends_isCached = fbuser.friends_isCached;
                 updatedUser.friends_isPublic = fbuser.friends_isPublic;
                 updatedUser.friends          = new HashSet <String>(fbuser.friends);
                 update_flag = true;
             }
             //如果資料有更新
             if (update_flag)
             {
                 cachedUsers.Remove(user);
                 cachedUsers.Add(updatedUser);
             }
             return;
         }
     }
     cachedUsers.Add(fbuser);
 }
 public fbUser getUser(fbUser fbuser)
 {
     foreach (fbUser user in cachedUsers)
     {
         if (user.profile_id.Equals(fbuser.profile_id))
         {
             return(user);
         }
     }
     return(null);
 }
 public bool IsInFriendList(fbUser fbUserClass, HashSet <fbUser> friendList)
 {
     return(IsInFriendList(fbUserClass.profile_id, friendList));
 }
 public void addPrecisionRecallItem(long var_crawled, fbUser user, HashSet <String> answerFriendList, bool flagNotSure)
 {
     addPrecisionRecallItem(var_crawled, user.profile_id, answerFriendList, flagNotSure);
 }