using System;
using Google.GData.Client;
using Google.GData.Extensions.Apps;

namespace Google.GData.Apps
{
    /// <summary>
    /// Feed API customization class for defining nickname feed.
    /// </summary>
    public class NicknameFeed : AbstractFeed
    {
        /// <summary>
        /// Constructs a new NicknameFeed.
        /// </summary>
        /// <param name="uriBase">the URI of the feed</param>
        /// <param name="iService">the service with which this
        /// feed will be associated</param>
        public NicknameFeed(Uri uriBase, IService iService)
            : base(uriBase, iService)
        {
            GAppsExtensions.AddProvisioningExtensions(this);
        }

        /// <summary>
        /// Overridden.  Returns a new <code>NicknameEntry</code>.
        /// </summary>
        /// <returns>the new <code>NicknameEntry</code></returns>
        public override AtomEntry CreateFeedEntry()
        {
            return new NicknameEntry();
        }
    }
}