using Google.GData.Client;

namespace Google.GData.WebmasterTools
{
    public class SitemapsEntry : WebmasterToolsBaseEntry
    {
        /// <summary>
        /// Constructs a new SitemapsEntry instance
        /// </summary>
        public SitemapsEntry()
        {
            Tracing.TraceMsg("Created SitemapsEntry");

            AddExtension(new Mobile());
            AddExtension(new SitemapLastDownloaded());
            AddExtension(new SitemapMobile());
            AddExtension(new SitemapMobileMarkupLanguage());
            AddExtension(new SitemapNews());
            AddExtension(new SitemapNewsPublicationLabel());
            AddExtension(new SitemapType());
            AddExtension(new SitemapUrlCount());
        }

        /// <summary>
        /// getter/setter for Mobile subelement
        /// </summary>
        public string Mobile
        {
            get { return getWebmasterToolsValue(WebmasterToolsNameTable.XmlMobileElement); }
            set { setWebmasterToolsExtension(WebmasterToolsNameTable.XmlMobileElement, value); }
        }

        /// <summary>
        /// getter/setter for SitemapLastDownloaded subelement
        /// </summary>
        public string SitemapLastDownloaded
        {
            get { return getWebmasterToolsValue(WebmasterToolsNameTable.XmlSitemapLastDownloadedElement); }
            set { setWebmasterToolsExtension(WebmasterToolsNameTable.XmlSitemapLastDownloadedElement, value); }
        }

        /// <summary>
        /// getter/setter for SitemapMobile subelement
        /// </summary>
        public string SitemapMobile
        {
            get { return getWebmasterToolsValue(WebmasterToolsNameTable.XmlSitemapMobileElement); }
            set { setWebmasterToolsExtension(WebmasterToolsNameTable.XmlSitemapMobileElement, value); }
        }

        /// <summary>
        /// getter/setter for SitemapMobileMarkupLanguage subelement
        /// </summary>
        public string SitemapMobileMarkupLanguage
        {
            get { return getWebmasterToolsValue(WebmasterToolsNameTable.XmlSitemapMobileMarkupLanguageElement); }
            set { setWebmasterToolsExtension(WebmasterToolsNameTable.XmlSitemapMobileMarkupLanguageElement, value); }
        }

        /// <summary>
        /// getter/setter for SitemapNews subelement
        /// </summary>
        public string SitemapNews
        {
            get { return getWebmasterToolsValue(WebmasterToolsNameTable.XmlSitemapNewsElement); }
            set { setWebmasterToolsExtension(WebmasterToolsNameTable.XmlSitemapNewsElement, value); }
        }

        /// <summary>
        /// getter/setter for SitemapNewsPublicationLabel subelement
        /// </summary>
        public string SitemapNewsPublicationLabel
        {
            get { return getWebmasterToolsValue(WebmasterToolsNameTable.XmlSitemapNewsPublicationLabelElement); }
            set { setWebmasterToolsExtension(WebmasterToolsNameTable.XmlSitemapNewsPublicationLabelElement, value); }
        }

        /// <summary>
        /// getter/setter for SitemapType subelement
        /// </summary>
        public string SitemapType
        {
            get { return getWebmasterToolsValue(WebmasterToolsNameTable.XmlSitemapTypeElement); }
            set { setWebmasterToolsExtension(WebmasterToolsNameTable.XmlSitemapTypeElement, value); }
        }

        /// <summary>
        /// getter/setter for SitemapUrlCount subelement
        /// </summary>
        public string SitemapUrlCount
        {
            get { return getWebmasterToolsValue(WebmasterToolsNameTable.XmlSitemapUrlCountElement); }
            set { setWebmasterToolsExtension(WebmasterToolsNameTable.XmlSitemapUrlCountElement, value); }
        }
    }
}