get a status by id

Jul 19, 2012 at 12:45 PM

Hey! I've just started using LinqToTwitter, and I'm wondering if I can get a specific status just by using a statusID, I know there is no such constructor in status entitie So I don't know what to do..
thanks.

Coordinator
Jul 19, 2012 at 10:23 PM

Hi,

It sounds like you can use a Status/Show query, like this:

            var friendTweets =
                from tweet in twitterCtx.Status
                where tweet.Type == StatusType.Show &&
                      tweet.ID == "10520783556"
                select tweet;

Here's more info:

http://linqtotwitter.codeplex.com/wikipage?title=Querying%20Statuses&referringTitle=Making%20Status%20Queries%20and%20Calls

@JoeMayo