21 lines
No EOL
908 B
C#
21 lines
No EOL
908 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using BirdsiteLive.DAL.Models;
|
|
|
|
namespace BirdsiteLive.DAL.Contracts
|
|
{
|
|
public interface ITwitterUserDal
|
|
{
|
|
Task CreateTwitterUserAsync(string acct, long lastTweetPostedId);
|
|
Task<SyncTwitterUser> GetTwitterUserAsync(string acct);
|
|
Task<SyncTwitterUser> GetTwitterUserAsync(int id);
|
|
Task<SyncTwitterUser[]> GetAllTwitterUsersAsync(int maxNumber);
|
|
Task<SyncTwitterUser[]> GetAllTwitterUsersAsync();
|
|
Task UpdateTwitterUserAsync(int id, long lastTweetPostedId, long lastTweetSynchronizedForAllFollowersId, int fetchingErrorCount, DateTime lastSync);
|
|
Task UpdateTwitterUserAsync(SyncTwitterUser user);
|
|
Task DeleteTwitterUserAsync(string acct);
|
|
Task DeleteTwitterUserAsync(int id);
|
|
Task<int> GetTwitterUsersCountAsync();
|
|
Task<int> GetFailingTwitterUsersCountAsync();
|
|
}
|
|
} |