Click here to Skip to main content
15,880,405 members
Articles / Programming Languages / Visual Basic

Weather Using VB.NET and Yahoo RSS!

Rate me:
Please Sign up or sign in to vote.
4.05/5 (13 votes)
7 Nov 2008CPOL2 min read 66.1K   4.2K   24  
Weather Using VB.NET and Yahoo RSS!
Imports Microsoft.VisualBasic
Imports System.Xml.Serialization
Partial Class YahooWeatherForecast
    Partial Class rssClass
        Partial Class channelClass
            Public Class unitsClass
                Private _temperature As String
                ''' <summary>
                '''  degree units, f for Fahrenheit or c for Celsius
                ''' </summary>
                <XmlAttribute()> _
                Public Property temperature() As String
                    Get
                        Return _temperature
                    End Get
                    Set(ByVal value As String)
                        _temperature = value
                    End Set
                End Property

                Private _distance As String
                ''' <summary>
                '''  units for distance, mi for miles or km for kilometers
                ''' </summary>
                <XmlAttribute()> _
                Public Property distance() As String
                    Get
                        Return _distance
                    End Get
                    Set(ByVal value As String)
                        _distance = value
                    End Set
                End Property

                Private _pressure As String
                ''' <summary>
                '''  units of barometric pressure, in for pounds per square inch or mb for millibars
                ''' </summary>
                <XmlAttribute()> _
                Public Property pressure() As String
                    Get
                        Return _pressure
                    End Get
                    Set(ByVal value As String)
                        _pressure = value
                    End Set
                End Property

                Private _speed As String
                ''' <summary>
                '''  units of speed, mph for miles per hour or kph for kilometers per hour 
                ''' </summary>
                <XmlAttribute()> _
                Public Property speed() As String
                    Get
                        Return _speed
                    End Get
                    Set(ByVal value As String)
                        _speed = value
                    End Set
                End Property

            End Class
        End Class
    End Class
End Class

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) TeraSoft
Jordan Jordan
Nedal Ahmed Odeh
Software development
BS Computer
Deploma IT
Web: http://nedal.faithweb.com

Facebook: http://www.facebook.com/nedal.odeh

Please, do not forget vote
This is a Collaborative Group (No members)


Comments and Discussions