// WingsEmu // // Developed by NosWings Team using System; using System.Collections.Generic; using System.Threading.Tasks; using PhoenixLib.DAL; using WingsEmu.DTOs.Enums; using WingsEmu.Packets.Enums.Character; namespace WingsAPI.Data.Character; public interface ICharacterDAO : IGenericAsyncLongRepository { Task DeleteByPrimaryKey(long accountId, byte characterSlot); Task> GetTopCompliment(int top = 30); Task> GetTopPoints(int top = 30); Task> GetTopReputation(int top = 43); IEnumerable LoadByAccount(long accountId); Task> LoadByAccountAsync(long accountId); CharacterDTO GetById(long characterId); Task LoadByNameAsync(string name); CharacterDTO LoadBySlot(long accountId, byte slot); Task LoadBySlotAsync(long accountId, byte slot); IEnumerable LoadAllCharactersByAccount(long accountId); Task> GetAllCharactersByMasterAccountIdAsync(Guid accountId); Task> GetTopByLevelAsync(int number); Task> GetTopLevelByClassTypeAsync(ClassType classType, int number); Task> GetClassesCountAsync(); }