private Price DecodePrice(XElement itemElement, string storeId) { string itemCode = DecodeItemCode(itemElement); float itemPrice = FieldConverter.DecodeItemFieldFloat(itemElement, "itemprice"); DateTime updateTime = FieldConverter.DecodeItemFieldDateTime(itemElement, "priceupdatedate"); bool allowDiscount = FieldConverter.DecodeItemFieldBool(itemElement, "allowdiscount"); return(new Price() { StoreId = storeId, ItemCode = itemCode, PriceValue = itemPrice, UpdateTime = updateTime, AllowDiscount = allowDiscount }); }
private bool DecodeIsWeighted(XElement itemElement) { return(FieldConverter.DecodeItemFieldBool(itemElement, "isweighted")); }