using System;
using System.Linq;
using System.Text;
using System.Data;
using System.Collections.Generic;



namespace Plus.Communication.Packets.Outgoing.Marketplace
{
    class MarketplaceItemStatsComposer : ServerPacket
    {
        public MarketplaceItemStatsComposer(int ItemId, int SpriteId, int AveragePrice)
            : base(ServerPacketHeader.MarketplaceItemStatsMessageComposer)
        {
            base.WriteInteger(AveragePrice);//Avg price in last 7 days.
            base.WriteInteger(PlusEnvironment.GetGame().GetCatalog().GetMarketplace().OfferCountForSprite(SpriteId));

            base.WriteInteger(0);//No idea.
            base.WriteInteger(0);//No idea.

            base.WriteInteger(ItemId);
            base.WriteInteger(SpriteId);
        }
    }
}