blob: d40a4879a7974aa4295187070be26bcb48ac5738 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using DevHive.Data.Models;
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);
}
}
|