aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Data/Interfaces/Repositories/IPostRepository.cs
blob: 9f7cf8536c3a711b1d1d57be1981213133a6a46b (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.Repositories
{
	public interface IPostRepository : IRepository<Post>
	{
		Task<bool> AddNewPostToCreator(Guid userId, Post post);

		Task<Post> GetPostByCreatorAndTimeCreatedAsync(Guid issuerId, DateTime timeCreated);
		Task<List<string>> GetFileUrls(Guid postId);

		Task<bool> DoesPostExist(Guid postId);
		Task<bool> DoesPostHaveFiles(Guid postId);
	}
}