This repository has been archived on 2022-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
DevOpsOpenHack/MobileApps/MyDriving/MyDriving.DataStore.Mock/Stores/TripPointStore.cs

26 lines
661 B
C#
Raw Normal View History

2022-11-03 20:41:13 +00:00
using MyDriving.DataObjects;
using MyDriving.DataStore.Abstractions;
using MyDriving.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MyDriving.DataStore.Mock.Stores
{
public class TripPointStore : BaseStore<TripPoint>, ITripPointStore
{
ITripStore tripStore;
public TripPointStore()
{
tripStore = ServiceLocator.Instance.Resolve<ITripStore>();
}
public async Task<IEnumerable<TripPoint>> GetPointsForTripAsync(string id)
{
return (await tripStore.GetItemAsync(id)).Points;
}
}
}