[reputation] Add rating.

This commit is contained in:
West14
2022-02-14 14:39:55 +02:00
parent f80b5d0da8
commit e885613c58
6 changed files with 95 additions and 11 deletions
+4 -1
View File
@@ -1,4 +1,6 @@
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Threading.Tasks;
using Kruzya.TelegramBot.Core.Data;
using Telegram.Bot.Types;
namespace Kruzya.TelegramBot.Core.Service
@@ -9,5 +11,6 @@ namespace Kruzya.TelegramBot.Core.Service
public Task<double> SetUserReputationAsync(Chat chat, User user, double value);
public Task<double> GetReputationDiffAsync(Chat chat, User sender, User receiver);
public Task IncrementReputationAsync(Chat chat, User user, double diff);
public Task<IEnumerable<IReputationEntity>> GetChatRatingAsync(Chat chat, int limit = 10, int offset = 0);
}
}