21 lines
731 B
C#
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);
|
|
} |