mirror of
https://github.com/fergalmoran/podnoms.git
synced 2025-12-22 09:18:08 +00:00
15 lines
592 B
C#
15 lines
592 B
C#
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using PodNoms.Api.Models;
|
|
|
|
namespace PodNoms.Api.Persistence.Old {
|
|
public interface IEntryRepository {
|
|
Task<PodcastEntry> GetAsync(int id);
|
|
Task<PodcastEntry> GetByUidAsync(string uid);
|
|
Task<IEnumerable<PodcastEntry>> GetAllAsync(int podcastId);
|
|
Task<IEnumerable<PodcastEntry>> GetAllAsync(string podcastSlug);
|
|
Task<IEnumerable<PodcastEntry>> GetAllForUserAsync(string userId);
|
|
Task<PodcastEntry> AddOrUpdateAsync(PodcastEntry entry);
|
|
Task DeleteAsync(int id);
|
|
}
|
|
} |