cloutier--bird.makeup/src/DataAccessLayers/BirdsiteLive.DAL/Contracts/IFollowersDal.cs

19 lines
756 B
C#
Raw Normal View History

2020-07-06 00:56:26 -04:00
using System.Collections.Generic;
using System.Threading.Tasks;
using BirdsiteLive.DAL.Models;
namespace BirdsiteLive.DAL.Contracts
2020-07-05 20:22:34 -04:00
{
public interface IFollowersDal
{
2020-07-06 00:56:26 -04:00
Task<Follower> GetFollowerAsync(string acct, string host);
2020-08-10 20:04:12 -04:00
Task CreateFollowerAsync(string acct, string host, string inboxRoute, string sharedInboxRoute, int[] followings = null,
2020-07-07 21:03:20 -04:00
Dictionary<int, long> followingSyncStatus = null);
2020-07-06 00:56:26 -04:00
Task<Follower[]> GetFollowersAsync(int followedUserId);
Task<Follower[]> GetAllFollowersAsync();
2020-07-07 21:03:20 -04:00
Task UpdateFollowerAsync(Follower follower);
2020-07-06 00:56:26 -04:00
Task DeleteFollowerAsync(int id);
Task DeleteFollowerAsync(string acct, string host);
2020-12-30 01:43:26 -05:00
Task<int> GetFollowersCountAsync();
2020-07-05 20:22:34 -04:00
}
}