auto.bus_api/Server/Services/IStatisticsService.cs
2022-11-23 19:45:15 +02:00

21 lines
731 B
C#

using System.Dynamic;
using Server.Models;
using SharedModels.QueryParameters;
using SharedModels.QueryParameters.Statistics;
namespace Server.Services;
public interface IStatisticsService
{
Task<(bool IsSucceed, string? message, IEnumerable<ExpandoObject> route)>
GetPopularRoutes(int amount);
Task<(bool IsSucceed, string? message, IEnumerable<ExpandoObject> users, PagingMetadata<User> pagingMetadata)>
GetEngagedUsers(EngagedUserParameters parameters);
Task<(bool IsSucceed, string? message, IEnumerable<ExpandoObject> companies)>
GetPopularCompanies(int amount);
Task<(bool IsSucceed, string? message, IEnumerable<ExpandoObject> stations)>
GetPopularStations(int amount);
}