using CaritasPWA.Shared.Models; using CaritasPWA.Shared.ResourceFiles; using Microsoft.Extensions.Localization; using System.Collections.Generic; using System.Linq; namespace CaritasPWA.Shared.Services { // REST interface responsible to submit lost or found reports and get the available masterdata. public class LFBicycleRest : ILFBicycleRest { private readonly IStringLocalizer _i18n; public LFBicycleRest(IStringLocalizer i18n) { _i18n = i18n; } public List GetColors() { //return Defaults.ColorItems.ToList(); return new List(); } public List GetBicycleTypes() { List bicycleTypes = new (); foreach (BicycleType bct in Defaults.BycicleTypes) { bicycleTypes.Add(new BicycleType(bct.Id, _i18n.GetString("Bike." + bct.Type))); } return bicycleTypes; //return new List(); } public List GetBrands() { return Defaults.Brands.ToList(); //return new List(); } } }