| 123456789101112131415161718192021222324252627282930313233343536373839 |
- 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<Resources> _i18n;
-
- public LFBicycleRest(IStringLocalizer<Resources> i18n) {
- _i18n = i18n;
- }
-
- public List<ColorItem> GetColors() {
- //return Defaults.ColorItems.ToList();
- return new List<ColorItem>();
- }
-
- public List<BicycleType> GetBicycleTypes() {
- List<BicycleType> bicycleTypes = new ();
- foreach (BicycleType bct in Defaults.BycicleTypes) {
- bicycleTypes.Add(new BicycleType(bct.Id, _i18n.GetString("Bike." + bct.Type)));
- }
- return bicycleTypes;
- //return new List<BicycleType>();
- }
-
-
- public List<Brand> GetBrands() {
- return Defaults.Brands.ToList();
- //return new List<BicycleType>();
- }
-
- }
- }
|