mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
17 lines
678 B
C#
17 lines
678 B
C#
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using Kruzya.TelegramBot.Core.Data;
|
|
using Telegram.Bot.Types;
|
|
|
|
namespace Kruzya.TelegramBot.Core.Service
|
|
{
|
|
public interface IReputation
|
|
{
|
|
public Task<double> GetUserReputationAsync(Chat chat, User user);
|
|
public Task<double> SetUserReputationAsync(Chat chat, User user, double value);
|
|
public Task<double> GetReputationDiffAsync(Chat chat, User sender, User receiver);
|
|
public Task<double> IncrementReputationAsync(Chat chat, User user, double diff);
|
|
public Task<IEnumerable<IReputationEntity>> GetChatRatingAsync(Chat chat, int limit = 10, int offset = 0);
|
|
}
|
|
}
|