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);
|
|
|
|
|
Task CreateFollowerAsync(string acct, string host, int[] followings, Dictionary<int, long> followingSyncStatus);
|
|
|
|
|
Task<Follower[]> GetFollowersAsync(int followedUserId);
|
|
|
|
|
Task UpdateFollowerAsync(int id, int[] followings, Dictionary<int, long> followingSyncStatus);
|
|
|
|
|
Task DeleteFollowerAsync(int id);
|
|
|
|
|
Task DeleteFollowerAsync(string acct, string host);
|
2020-07-05 20:22:34 -04:00
|
|
|
|
}
|
|
|
|
|
}
|