예제 #1
0
        public static AdPrepared1 Prepare(AdOlxDirty oldAd)
        {
            AdPrepared1 newAd = new AdPrepared1
            {
                Id       = oldAd.Id,
                Title    = oldAd.Title,
                Currency = ParcerCurrency.ParceCurrency(oldAd.PriceWithCurrency),
                Href     = oldAd.Href,
                Location = oldAd.Location,
                Price    = ParcerPrice.ParcePrice(oldAd.PriceWithCurrency)
            };

            return(newAd);
        }
예제 #2
0
 public static string ToString(this AdPrepared1 ad)
 {
     return($"[AD \n\tId={ad.Id}, \n\tTitle={ad.Title}, \n\tHref={ad.Href}, \n\tPrice={ad.Price}{ad.Currency}, \n\tLocation={ad.Location}]");
 }