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);
|
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-07-05 20:22:34 -04:00
|
|
|
|
}
|
|
|
|
|
}
|