blob: 5a04aed53c540c629d826f80ee6bd4a3dc69e161 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using DevHive.Data.Models;
using DevHive.Data.Repositories.Interfaces;
namespace DevHive.Data.Interfaces
{
public interface IPostRepository : IRepository<Post>
{
Task<bool> AddNewPostToCreator(Guid userId, Post post);
Task<Post> GetPostByCreatorAndTimeCreatedAsync(Guid creatorId, DateTime timeCreated);
Task<List<string>> GetFileUrls(Guid postId);
Task<bool> DoesPostExist(Guid postId);
Task<bool> DoesPostHaveFiles(Guid postId);
}
}
|