Logo Search packages:      
Sourcecode: gdata-sharp version File versions  Download package

mediarss.cs

/* Copyright (c) 2006 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
*/

using System;
using System.Xml;
using Google.GData.Client;
using System.Globalization;

namespace Google.GData.Extensions.MediaRss {

    /// <summary>
    /// helper to instantiate all factories defined in here and attach 
    /// them to a base object
    /// </summary>
00027     public class MediaRssExtensions
    {
        /// <summary>
        /// helper to add all MediaRss extensions to a base object
        /// </summary>
        /// <param name="baseObject"></param>
00033         public static void AddExtension(AtomBase baseObject) 
        {
            baseObject.AddExtension(new MediaGroup());
        }
    }


    /// <summary>
    /// short table for constants related to mediaRss declarations
    /// </summary>
00043     public class MediaRssNameTable 
    {
          /// <summary>static string to specify the mediarss namespace
          /// TODO: picasa has the namespace slighly wrong.
          /// </summary>
00048         public const string NSMediaRss  = "http://search.yahoo.com/mrss/";
        /// <summary>static string to specify the used mediarss prefix</summary>
00050         public const string mediaRssPrefix  = "media";
        /// <summary>static string to specify the media:group element</summary>
00052         public const string MediaRssGroup    = "group";
        /// <summary>static string to specify the media:credit element</summary>
00054         public const string MediaRssCredit    = "credit";
        /// <summary>static string to specify the media:content element</summary>
00056         public const string MediaRssContent    = "content";
        /// <summary>static string to specify the media:category element</summary>
00058         public const string MediaRssCategory    = "category";
        /// <summary>static string to specify the media:description element</summary>
00060         public const string MediaRssDescription    = "description";
         /// <summary>static string to specify the media:keywords element</summary>
00062         public const string MediaRssKeywords    = "keywords";
        /// <summary>static string to specify the media:thumbnail element</summary>
00064         public const string MediaRssThumbnail    = "thumbnail";
        /// <summary>static string to specify the media:title element</summary>
00066         public const string MediaRssTitle    = "title";
        /// <summary>static string to specify the media:rating element</summary>
00068         public const string MediaRssRating = "rating";
        /// <summary>static string to specify the media:restriction element</summary>
00070         public const string MediaRssRestriction = "restriction";
        /// <summary>static string to specify the media:player element</summary>
00072         public const string MediaRssPlayer    = "player";

        /// <summary>
        /// the attribute string for the URL attribute
        /// </summary>
00077         public const string AttributeUrl = "url";
        /// <summary>
        /// the attribute string for the height attribute
        /// </summary>
00081         public const string AttributeHeight = "height";
        /// <summary>
        /// the attribute string for the width attribute
        /// </summary>
00085         public const string AttributeWidth = "width";
        /// <summary>
        /// the attribute string for the time attribute
        /// </summary>
00089         public const string AttributeTime = "time";
        /// <summary>
        /// the attribute string for the type attribute
        /// </summary>
00093         public const string AttributeType = "type";
        /// <summary>
        /// the attribute string for the isDefault attribute
        /// </summary>
00097         public const string AttributeDefault = "isDefault";
        /// <summary>
        /// the attribute string for the expression attribute
        /// </summary>
00101         public const string AttributeExpression = "expression";
        /// <summary>
        /// the attribute string for the duration attribute
        /// </summary>
00105         public const string AttributeDuration = "duration";




    }

    /// <summary>
    /// MediaGroup container element for the MediaRss namespace
    /// </summary>
00115     public class MediaGroup : SimpleContainer
    {
        private ExtensionCollection<MediaThumbnail> thumbnails;
        private ExtensionCollection<MediaContent> contents;
        private ExtensionCollection<MediaCategory> categories;
        /// <summary>
        /// default constructor for media:group
        /// </summary>
00123         public MediaGroup() :
            base(MediaRssNameTable.MediaRssGroup,
                 MediaRssNameTable.mediaRssPrefix,
                 MediaRssNameTable.NSMediaRss)
        {
            this.ExtensionFactories.Add(new MediaCredit());
            this.ExtensionFactories.Add(new MediaDescription());
            this.ExtensionFactories.Add(new MediaContent());
            this.ExtensionFactories.Add(new MediaKeywords());
            this.ExtensionFactories.Add(new MediaThumbnail());
            this.ExtensionFactories.Add(new MediaTitle());
            this.ExtensionFactories.Add(new MediaCategory());
            this.ExtensionFactories.Add(new MediaRating());
            this.ExtensionFactories.Add(new MediaRestriction());
            this.ExtensionFactories.Add(new MediaPlayer());
        }

        /// <summary>
        /// returns the media:credit element
        /// </summary>
        public MediaCredit Credit
00144         {
            get
            {
                return FindExtension(MediaRssNameTable.MediaRssCredit,
                                     MediaRssNameTable.NSMediaRss) as MediaCredit;
            }
            set
            {
                ReplaceExtension(MediaRssNameTable.MediaRssCredit,
                                MediaRssNameTable.NSMediaRss,
                                value);
            }
        }

        /// <summary>
        /// returns the media:credit element
        /// </summary>
        public MediaRestriction Restriction
00162         {
            get
            {
                return FindExtension(MediaRssNameTable.MediaRssRestriction,
                                     MediaRssNameTable.NSMediaRss) as MediaRestriction;
            }
            set
            {
                ReplaceExtension(MediaRssNameTable.MediaRssRestriction,
                                MediaRssNameTable.NSMediaRss,
                                value);
            }
        }

        /// <summary>
        /// returns the media:content element
        /// </summary>
        public MediaContent Content
00180         {
            get
            {
                return FindExtension(MediaRssNameTable.MediaRssContent,
                                     MediaRssNameTable.NSMediaRss) as MediaContent;
            }
            set
            {
                ReplaceExtension(MediaRssNameTable.MediaRssContent,
                                MediaRssNameTable.NSMediaRss,
                                value);
            }
        }


        /// <summary>
        /// returns the media:credit element
        /// </summary>
        public MediaDescription Description
00199         {
            get
            {
                return FindExtension(MediaRssNameTable.MediaRssDescription,
                                     MediaRssNameTable.NSMediaRss) as MediaDescription;
            }
            set
            {
                ReplaceExtension(MediaRssNameTable.MediaRssDescription,
                                MediaRssNameTable.NSMediaRss,
                                value);
            }
        }
        /// <summary>
        /// The media:keywords tag contains a comma-separated list of words associated with a video. 
        /// You must provide at least one keyword for each video in your feed. This field has a 
        /// maximum length of 120 characters, including commas, and may contain all valid UTF-8 
        /// characters except &gt; and &lt;  In addition, each keyword must be at least two characters 
        /// long and may not be longer than 25 characters.
        /// </summary>
        public MediaKeywords Keywords
00220         {
            get
            {
                return FindExtension(MediaRssNameTable.MediaRssKeywords,
                                     MediaRssNameTable.NSMediaRss) as MediaKeywords;
            }
            set
            {
                ReplaceExtension(MediaRssNameTable.MediaRssKeywords,
                                MediaRssNameTable.NSMediaRss,
                                value);
            }
        }
        /// <summary>
        /// returns the media:credit element
        /// </summary>
        public MediaTitle Title
00237         {
            get
            {
                return FindExtension(MediaRssNameTable.MediaRssTitle,
                                     MediaRssNameTable.NSMediaRss) as MediaTitle;
            }
            set
            {
                ReplaceExtension(MediaRssNameTable.MediaRssTitle,
                                MediaRssNameTable.NSMediaRss,
                                value);
            }
        }

        /// <summary>
        /// returns the media:rating element
        /// </summary>
        public MediaRating Rating
00255         {
            get
            {
                return FindExtension(MediaRssNameTable.MediaRssRating,
                                     MediaRssNameTable.NSMediaRss) as MediaRating;
            }
            set
            {
                ReplaceExtension(MediaRssNameTable.MediaRssRating,
                                MediaRssNameTable.NSMediaRss,
                                value);
            }
        }

        /// <summary>
        ///  property accessor for the Thumbnails 
        /// </summary>
        public ExtensionCollection<MediaThumbnail> Thumbnails
00273         {
            get 
            {
                if (this.thumbnails == null)
                {
                    this.thumbnails = new ExtensionCollection<MediaThumbnail>(this); 
                }
                return this.thumbnails;
            }
        }

        
        /// <summary>
        ///  property accessor for the Contents Collection 
        /// </summary>
        public ExtensionCollection<MediaContent> Contents
00289         {
            get 
            {
                if (this.contents == null)
                {
                    this.contents = new ExtensionCollection<MediaContent>(this); 
                }
                return this.contents;
            }
        }

        /// <summary>
        ///  property accessor for the Category Collection 
        /// </summary>
        public ExtensionCollection<MediaCategory> Categories
00304         {
            get 
            {
                if (this.categories == null)
                {
                    this.categories = new ExtensionCollection<MediaCategory>(this); 
                }
                return this.categories;
            }
        }


        /// <summary>
        /// returns the media:player element
        /// </summary>
        public MediaPlayer Player
00320         {
            get
            {
                return FindExtension(MediaRssNameTable.MediaRssPlayer,
                                     MediaRssNameTable.NSMediaRss) as MediaPlayer;
            }
            set
            {
                ReplaceExtension(MediaRssNameTable.MediaRssPlayer,
                                MediaRssNameTable.NSMediaRss,
                                value);
            }
        }

   }

    /// <summary>
    /// media:credit schema extension describing an credit given to media
    /// it's a child of media:group
    /// </summary>
00340     public class MediaCredit : SimpleElement
    {
        /// <summary>
        /// default constructor for media:credit
        /// </summary>
00345         public MediaCredit()
        : base(MediaRssNameTable.MediaRssCredit, 
               MediaRssNameTable.mediaRssPrefix,
               MediaRssNameTable.NSMediaRss)
        {
            this.Attributes.Add("role", null);
            this.Attributes.Add("scheme", null);
        }

        /// <summary>
        /// default constructor for media:credit with an initial value
        /// </summary>
        /// <param name="initValue"/>
00358         public MediaCredit(string initValue)
        : base(MediaRssNameTable.MediaRssCredit, 
               MediaRssNameTable.mediaRssPrefix,
               MediaRssNameTable.NSMediaRss, initValue)
        {
            this.Attributes.Add("role", null);
            this.Attributes.Add("scheme", null);
        }

        /// <summary>
        ///  returns the schem of the credit element
        /// </summary>
        /// <returns></returns>
        public string Scheme
00372         {
            get
            {
                return this.Attributes["scheme"] as string;
            }
            set
            {
                this.Attributes["scheme"] = value;
            }
        }
        /// <summary>
        ///  returns the role of the credit element
        /// </summary>
        /// <returns></returns>
        public string Role
00387         {
            get
            {
                return this.Attributes["role"] as string;
            }
            set
            {
                this.Attributes["role"] = value;
            }
        }
    }


    /// <summary>
    /// media:restriction schema extension identifies the country or countries where a
    ///  video may or may not be played. The attribute value is a space-delimited 
    /// list of ISO 3166 two-letter country codes. 
    /// </summary>
00405     public class MediaRestriction : SimpleElement
    {
        const string AttributeType = "type";
        const string AttributeRel = "relationship";
        /// <summary>
        /// default constructor for media:credit
        /// </summary>
00412         public MediaRestriction()
        : base(MediaRssNameTable.MediaRssRestriction,
               MediaRssNameTable.mediaRssPrefix,
               MediaRssNameTable.NSMediaRss)
        {
            this.Attributes.Add(AttributeType, null);
            this.Attributes.Add(AttributeRel, null);
        }

        /// <summary>
        /// default constructor for media:credit with an initial value
        /// </summary>
        /// <param name="initValue"/>
00425         public MediaRestriction(string initValue)
        : base(MediaRssNameTable.MediaRssRestriction, 
               MediaRssNameTable.mediaRssPrefix,
               MediaRssNameTable.NSMediaRss, initValue)
        {
            this.Attributes.Add(AttributeType, null);
            this.Attributes.Add(AttributeRel, null);
        }

        /// <summary>
        ///  returns the schem of the credit element
        /// </summary>
        /// <returns></returns>
        public string Type
00439         {
            get
            {
                return this.Attributes[AttributeType] as string;
            }
            set
            {
                this.Attributes[AttributeType] = value;
            }
        }
        /// <summary>
        ///  returns the role of the credit element
        /// </summary>
        /// <returns></returns>
        public string Relationship
00454         {
            get
            {
                return this.Attributes[AttributeRel] as string;
            }
            set
            {
                this.Attributes[AttributeRel] = value;
            }
        }
    }



    /// <summary>
    /// media:description schema extension describing an description given to media
    /// it's a child of media:group
    /// </summary>
00472     public class MediaDescription : SimpleElement
    {
        /// <summary>
        /// default constructor for media:description 
        /// </summary>
00477         public MediaDescription()
        : base(MediaRssNameTable.MediaRssDescription, 
               MediaRssNameTable.mediaRssPrefix,
               MediaRssNameTable.NSMediaRss)
        {
            this.Attributes.Add("type", null);
        }

        /// <summary>
        /// default constructor for media:description with an initial value
        /// </summary>
        /// <param name="initValue"/>
00489         public MediaDescription(string initValue)
        : base(MediaRssNameTable.MediaRssDescription, 
               MediaRssNameTable.mediaRssPrefix,
               MediaRssNameTable.NSMediaRss, initValue)
        {
            this.Attributes.Add("type", null);
        }
    }

    /// <summary>
    /// media:player schema extension describing the player URL
    /// it's a child of media:group
    /// </summary>
00502     public class MediaPlayer : SimpleElement
    {
        /// <summary>
        /// default constructor for media:content
        /// </summary>
00507         public MediaPlayer()
        : base(MediaRssNameTable.MediaRssPlayer, 
               MediaRssNameTable.mediaRssPrefix,
               MediaRssNameTable.NSMediaRss)
        {
            this.Attributes.Add(MediaRssNameTable.AttributeUrl, null);
        }

        //////////////////////////////////////////////////////////////////////
        /// <summary>convienience accessor for the Url</summary> 
        /// <returns> </returns>
        //////////////////////////////////////////////////////////////////////
        public string Url
00520         {
           get 
            {
                return this.Attributes[MediaRssNameTable.AttributeUrl] as string;
            }
            set
            {
                this.Attributes[MediaRssNameTable.AttributeUrl] = value;
            }
        }
        // end of accessor public string Url
    }

    /// <summary>
    /// media:content schema extension describing the content URL
    /// it's a child of media:group
    /// </summary>
00537     public class MediaContent : SimpleElement
    {
        /// <summary>
        /// default constructor for media:content
        /// </summary>
00542         public MediaContent()
        : base(MediaRssNameTable.MediaRssContent, 
               MediaRssNameTable.mediaRssPrefix,
               MediaRssNameTable.NSMediaRss)
        {
            this.Attributes.Add(MediaRssNameTable.AttributeUrl, null);
            this.Attributes.Add(MediaRssNameTable.AttributeType, null);
            this.Attributes.Add(MediaRssNameTable.AttributeDefault, null);
            this.Attributes.Add(MediaRssNameTable.AttributeExpression, null);
            this.Attributes.Add(MediaRssNameTable.AttributeDuration, null);
        }

        //////////////////////////////////////////////////////////////////////
        /// <summary>convienience accessor for the Url</summary> 
        /// <returns> </returns>
        //////////////////////////////////////////////////////////////////////
        public string Url
00559         {
           get 
            {
                return this.Attributes[MediaRssNameTable.AttributeUrl] as string;
            }
            set
            {
                this.Attributes[MediaRssNameTable.AttributeUrl] = value;
            }
        }
        // end of accessor public string Url


        //////////////////////////////////////////////////////////////////////
        /// <summary>convienience accessor for the Height</summary> 
        /// <returns> </returns>
        //////////////////////////////////////////////////////////////////////
        public string Height
00577         {
           get 
            {
                return this.Attributes[MediaRssNameTable.AttributeHeight] as string;
            }
            set
            {
                this.Attributes[MediaRssNameTable.AttributeHeight] = value;
            }
        }

        //////////////////////////////////////////////////////////////////////
        /// <summary>convienience accessor for the Width</summary> 
        /// <returns> </returns>
        //////////////////////////////////////////////////////////////////////
        public string Width
00593         {
           get 
            {
                return this.Attributes[MediaRssNameTable.AttributeWidth] as string;
            }
            set
            {
                this.Attributes[MediaRssNameTable.AttributeWidth] = value;
            }
        }
        // end of accessor public string Url

        //////////////////////////////////////////////////////////////////////
        /// <summary>convienience accessor for the Width</summary> 
        /// <returns> </returns>
        //////////////////////////////////////////////////////////////////////
        public string Type
00610         {
           get 
            {
                return this.Attributes[MediaRssNameTable.AttributeDuration] as string;
            }
            set
            {
                this.Attributes[MediaRssNameTable.AttributeDuration] = value;
            }
        }

        //////////////////////////////////////////////////////////////////////
        /// <summary>convienience accessor for the Duration</summary> 
        /// <returns> </returns>
        //////////////////////////////////////////////////////////////////////
        public string Duration
00626         {
            get
            {
                return this.Attributes[MediaRssNameTable.AttributeType] as string;
            }
            set
            {
                this.Attributes[MediaRssNameTable.AttributeType] = value;
            }
        }



    }

     /// <summary>
    /// media:content schema extension describing the content URL
    /// it's a child of media:group
    /// </summary>
00645     public class MediaCategory : SimpleElement
    {
        /// <summary>
        /// default constructor for media:content
        /// </summary>
00650         public MediaCategory()
        : base(MediaRssNameTable.MediaRssCategory, 
               MediaRssNameTable.mediaRssPrefix,
               MediaRssNameTable.NSMediaRss)
        {
            this.Attributes.Add("scheme", null);
            this.Attributes.Add("label", null);
        }

         /// <summary>
        /// default constructor for media:credit with an initial value
        /// </summary>
        /// <param name="initValue"/>
00663         public MediaCategory(string initValue)
        : base(MediaRssNameTable.MediaRssCategory, 
               MediaRssNameTable.mediaRssPrefix,
               MediaRssNameTable.NSMediaRss, initValue)
        {
            this.Attributes.Add("scheme", null);
            this.Attributes.Add("lable", null);
        }

        /// <summary>
        /// Constructor for MediaCategory with an initial value
        /// and a scheme.
        /// </summary>
        /// <param name="initValue">The value of the tag</param>
        /// <param name="scheme">The scheme of the tag</param>
00678         public MediaCategory(string initValue, string scheme)
        : this(initValue)
        {
            this.Attributes["scheme"] = scheme;
        }
    }

    /// <summary>
    /// media:keywords schema extension describing a 
    /// comma seperated list of keywords
    /// it's a child of media:group
    /// </summary>
00690     public class MediaKeywords : SimpleElement
    {
        /// <summary>
        /// default constructor for media:keywords
        /// </summary>
00695         public MediaKeywords()
        : base(MediaRssNameTable.MediaRssKeywords, 
               MediaRssNameTable.mediaRssPrefix,
               MediaRssNameTable.NSMediaRss)
        {}

        /// <summary>
        /// default constructor for media:keywords with an initial value
        /// </summary>
        /// <param name="initValue"/>
00705         public MediaKeywords(string initValue)
        : base(MediaRssNameTable.MediaRssKeywords,
               MediaRssNameTable.mediaRssPrefix,
               MediaRssNameTable.NSMediaRss, initValue)
        {}
    }

    /// <summary>
    /// media:thumbnail schema extension describing a 
    /// thumbnail URL with height/width
    /// it's a child of media:group
    /// </summary>
00717     public class MediaThumbnail : SimpleElement
    {
        /// <summary>
        /// default constructor for media:thumbnail
        /// </summary>
00722         public MediaThumbnail()
        : base(MediaRssNameTable.MediaRssThumbnail, 
               MediaRssNameTable.mediaRssPrefix,
               MediaRssNameTable.NSMediaRss)
        {
            this.Attributes.Add(MediaRssNameTable.AttributeUrl, null);
            this.Attributes.Add(MediaRssNameTable.AttributeHeight, null);
            this.Attributes.Add(MediaRssNameTable.AttributeWidth, null);
            this.Attributes.Add(MediaRssNameTable.AttributeTime, null);
        }

        //////////////////////////////////////////////////////////////////////
        /// <summary>convienience accessor for the Url</summary> 
        /// <returns> </returns>
        //////////////////////////////////////////////////////////////////////
        public string Url
00738         {
           get 
            {
                return this.Attributes[MediaRssNameTable.AttributeUrl] as string;
            }
            set
            {
                this.Attributes[MediaRssNameTable.AttributeUrl] = value;
            }
        }
        // end of accessor public string Url


        //////////////////////////////////////////////////////////////////////
        /// <summary>convienience accessor for the Height</summary> 
        /// <returns> </returns>
        //////////////////////////////////////////////////////////////////////
        public string Height
00756         {
           get 
            {
                return this.Attributes[MediaRssNameTable.AttributeHeight] as string;
            }
            set
            {
                this.Attributes[MediaRssNameTable.AttributeHeight] = value;
            }
        }

        //////////////////////////////////////////////////////////////////////
        /// <summary>convienience accessor for the Width</summary> 
        /// <returns> </returns>
        //////////////////////////////////////////////////////////////////////
        public string Width
00772         {
           get 
            {
                return this.Attributes[MediaRssNameTable.AttributeWidth] as string;
            }
            set
            {
                this.Attributes[MediaRssNameTable.AttributeWidth] = value;
            }
        }

        //////////////////////////////////////////////////////////////////////
        /// <summary>convienience accessor for the time attribute</summary> 
        /// <returns> </returns>
        //////////////////////////////////////////////////////////////////////
        public string Time
00788         {
            get
            {
                return this.Attributes[MediaRssNameTable.AttributeTime] as string;
            }
            set
            {
                this.Attributes[MediaRssNameTable.AttributeTime] = value;
            }
        }
        // end of accessor public string Url
    }

    /// <summary>
    /// media:title schema extension describing the title given to media
    /// it's a child of media:group
    /// </summary>
00805     public class MediaTitle : SimpleElement
    {
        /// <summary>
        /// default constructor for media:title
        /// </summary>
00810         public MediaTitle()
        : base(MediaRssNameTable.MediaRssTitle, 
               MediaRssNameTable.mediaRssPrefix,
               MediaRssNameTable.NSMediaRss)
        {
            this.Attributes.Add("type", null);
        }

        /// <summary>
        /// default constructor for media:title with an initial value
        /// </summary>
        /// <param name="initValue"/>
00822         public MediaTitle(string initValue)
        : base(MediaRssNameTable.MediaRssTitle, 
               MediaRssNameTable.mediaRssPrefix,
               MediaRssNameTable.NSMediaRss, initValue)
        {
            this.Attributes.Add("type", null);
        }
    }

    /// <summary>
    /// media:rating schema extension describing the rating given to media
    /// it's a child of media:group
    /// </summary>
00835     public class MediaRating : SimpleElement
    {
        /// <summary>
        /// default constructor for media:rating
        /// </summary>
00840         public MediaRating()
            : base(MediaRssNameTable.MediaRssRating,
                   MediaRssNameTable.mediaRssPrefix,
                   MediaRssNameTable.NSMediaRss)
        {
            this.Attributes.Add("scheme", null);
            this.Attributes.Add("country", null);
        }

        /// <summary>
        /// default constructor for media:rating with an initial value
        /// </summary>
        /// <param name="initValue"/>
00853         public MediaRating(string initValue)
            : base(MediaRssNameTable.MediaRssRating,
                   MediaRssNameTable.mediaRssPrefix,
                   MediaRssNameTable.NSMediaRss, initValue)
        {
            this.Attributes.Add("scheme", null);
            this.Attributes.Add("country", null);
        }

        /// <summary>
        /// Constructor for MediaRating with an initial value
        /// and a scheme.
        /// </summary>
        /// <param name="initValue">The value of the tag</param>
        /// <param name="scheme">The scheme of the tag</param>
00868         public MediaRating(string initValue, string scheme)
        : this(initValue)
        {
            this.Attributes["scheme"] = scheme;
        }

        /// <summary>
        ///  returns the schem for the media rating
        /// </summary>
        /// <returns></returns>
        public string Scheme
00879         {
            get
            {
                return this.Attributes["scheme"] as string;
            }
            set
            {
                this.Attributes["scheme"] = value;
            }
        }

        /// <summary>
        ///  returns the country for this rating
        /// </summary>
        /// <returns></returns>
        public string Country
00895         {
            get
            {
                return this.Attributes["country"] as string;
            }
            set
            {
                this.Attributes["country"] = value;
            }
        }
    }
}

Generated by  Doxygen 1.6.0   Back to index