private string GetContent(INiconicoIchibaInfo niconicoIchibaInfo, bool isXml)
        {
            var info = new MarketInformation();

            foreach (var item in niconicoIchibaInfo.IchibaItems)
            {
                var marketItem = new MarketItem()
                {
                    Category = item.Category,
                    LinkUrl  = item.LinkUrl,
                    Price    = item.Price,
                    Name     = item.Name,
                    ThumbUrl = item.ThumbUrl,
                };
                info.Items.Add(marketItem);
            }
            string serialized;

            if (isXml)
            {
                serialized = Xmlparser.Serialize(info);
            }
            else
            {
                serialized = JsonParser.Serialize(info);
            }

            return(serialized);
        }
        private string GetHtmlContent(INiconicoIchibaInfo niconicoIchibaInfo, string niconicoId)
        {
            var page  = IchibaTemplate.GetReplacedString(niconicoId);
            var items = new List <string>();

            foreach (var item in niconicoIchibaInfo.IchibaItems)
            {
                var htmlItem = IchibaItemTemplate.GetReplacedString(item);
                items.Add(htmlItem);
            }

            var combined = string.Join("", items);

            return(page.Replace("{items}", combined));
        }