コード例 #1
0
 public OutfitUpdaterLight(OutfitUpdater outfitUpdater)
 {
     this.id          = outfitUpdater.Id;
     this.partnerName = HttpUtility.HtmlEncode(outfitUpdater.Partner.Name);
     this.partnerCode = HttpUtility.HtmlEncode(outfitUpdater.Partner.Code);
     this.name        = HttpUtility.HtmlEncode(outfitUpdater.Name);
     this.description = HttpUtility.HtmlEncode(outfitUpdater.Description);
     this.externalId  = outfitUpdater.ExternalId;
     this.price       = "$0.00";
     if (outfitUpdater.Price > 0)
     {
         this.price = "$" + Convert.ToDecimal(outfitUpdater.Price).ToString("#,##0.00");
     }
     this.buyUrl   = HttpUtility.HtmlEncode(outfitUpdater.BuyUrl);
     this.imageUrl = HttpUtility.HtmlEncode(outfitUpdater.ImageUrl);
 }
コード例 #2
0
 public OutfitUpdaterByPreCombination(OutfitUpdater outfitUpdater, PreCombination preCombination)
 {
     this.outfitUpdater  = outfitUpdater;
     this.preCombination = preCombination;
 }