Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: Help with GetFriends()

$
0
0
Hi,

Sorry to bother you with what's probably a simple answer but I'm trying to retrieve a list of a users friends but the function is returning me an Enum, I'm really unsure what to do with it, I thought Enum's were constants and not something that would change depending on the user (in this case)

I'm using

var user = User.GetUserFromScreenName(username);
var show = user.GetFriends();

Which returns an IEnumerable, Which I can't iterate through, I expected it to return a list but this has stumped me.

Just a FYI I'm a hobbyist trying c# for the second time (First was little bits in Unity2d)

Any help would be appreciated

Thank you

Bry

Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>