如何让追随者不会将他们的推文私有化的ID

时间:2014-03-08 18:23:37

标签: c# linq-to-twitter

我希望所有关注者都不会将他们的推文设为私有。查询中需要哪些修改

 var friends = await twitterCtx.Friendship
                    .Where(f => f.Type == FriendshipType.FollowerIDs
                             && f.UserID == twitterUserId.ToString()
                             && f.Count == maxFollowersToRetrieve
                             && f.Cursor == nextCursor)
                     .Select(f => f).SingleOrDefaultAsync();

1 个答案:

答案 0 :(得分:1)

FollowerIDs查询只会为您提供用户ID。您可以使用FollowerList。友谊响应具有名为Users的属性,该属性是User的集合。每个用户实体都有一个名为Protected的属性,如果用户将其推文设为私有,则该属性设置为true。