Exemple #1
0
 public BeerVM(UnTappedBeerSearch.Item beer)
 {
     id             = beer.beer.bid;
     name           = beer.beer.beer_name;
     lableSM        = beer.beer.beer_label;
     IBU            = beer.beer.beer_ibu;
     percent        = Convert.ToDecimal(beer.beer.beer_abv);
     description    = beer.beer.beer_description;
     untappedRating = -1;
     brewery        = new BreweryVM(beer.brewery);
     type           = beer.beer.beer_style;
 }
Exemple #2
0
 public BeerVM(Beverage beer)
 {
     id             = beer.Id;
     name           = beer.Name;
     lableSM        = beer.LableSm;
     lableMed       = beer.LableMed;
     IBU            = beer.IBU;
     percent        = beer.AlcoholPercentage;
     description    = beer.Description;
     untappedRating = beer.UtappedRating;
     brewery        = new BreweryVM(beer.Brewery);
     type           = beer.BeverageType.Name;
 }