I stream tweets in my wp8 app, using TweetSharp
. I want to detect the content in each tweet. With photos it's simple, using TwitterStatus.Entities.Media
its a collection of images. Harder with video, links to videos are in TwitterStatus.Entities.Urls
(such as youtube.com
or youtu.be
, etc) with simple links to another sites. Official android Twitter app detects content type and show an icon forech type(link, video, photo). I tried to get this info just from JSON, but in JSON videolinks also are in urls
, not in media
. But android app knows how to detect content, so it can be make.
In complete solution I need just a enum
field ContentType
in MyTwitterMessage
with Photo
, Video
, Link
or Nothing