using System;
using Google.GData.Client;

namespace Google.GData.WebmasterTools
{
    public class MessagesFeed : AbstractFeed
    {
        public MessagesFeed(Uri uriBase, IService service) : base(uriBase, service)
        {
        }

        #region Overrides of AbstractFeed

        /// <summary>
        /// this needs to get implemented by subclasses
        /// </summary>
        /// <returns>AtomEntry</returns>
        public override AtomEntry CreateFeedEntry()
        {
            return new MessagesEntry();
        }

        #endregion

        #region Overrides of AtomFeed

        /// <summary>
        /// Is called after we already handled the custom entry, to handle all 
        /// other potential parsing tasks
        /// </summary>
        /// <param name="e"></param>
        /// <param name="parser">the atom feed parser used</param>
        protected override void HandleExtensionElements(ExtensionElementEventArgs e, AtomFeedParser parser)
        {
            base.HandleExtensionElements(e, parser);
        }

        #endregion
    }
}