auto.bus_api/Server/Services/IStatisticsService.cs

26 lines
1.0 KiB
C#

using System.Dynamic;
using Microsoft.AspNetCore.Mvc;
using SharedModels.QueryParameters;
using SharedModels.QueryParameters.Statistics;
namespace Server.Services;
public interface IStatisticsService
{
Task<(bool IsSucceed, IActionResult? actionResult, IEnumerable<ExpandoObject> route,
PagingMetadata<ExpandoObject> pagingMetadata)>
GetPopularRoutes(PopularRoutesParameters parameters);
Task<(bool IsSucceed, IActionResult? actionResult, IEnumerable<ExpandoObject> users,
PagingMetadata<ExpandoObject> pagingMetadata)>
GetEngagedUsers(EngagedUserParameters parameters);
Task<(bool IsSucceed, IActionResult? actionResult, IEnumerable<ExpandoObject> companies,
PagingMetadata<ExpandoObject> pagingMetadata)>
GetPopularCompanies(PopularCompanyParameters parameters);
Task<(bool IsSucceed, IActionResult? actionResult, IEnumerable<ExpandoObject> stations,
PagingMetadata<ExpandoObject> pagingMetadata)>
GetPopularStations(PopularAddressesParameters parameters);
}