Implementing a Data Model
At this point, you need to implement a class representing a single item in the RSS feed. Add a new folder called Model to the project and then to this folder add a class called FeedItem
, whose code looks like this:
Public Class FeedItem Public Property Title As String Public Property Url As String Public Property Thumbnail As String Public Property Video As String Public Property DateRecorded As String Public Property Speaker As String Public Shared FeedUrl As String = _ "http://channel9.msdn.com/Tags/visual+basic/RSS"End Class
The code is very simple, and the properties are self-explanatory. It is worth mentioning that the Video
property stores the name of ...
Get Visual Basic 2015 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.