aboutsummaryrefslogtreecommitdiff
path: root/src/Data/DevHive.Data/Interfaces/IPostRepository.cs
blob: c24d59692f0516f09b38bd39b8438806ec5bca2d (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 issuerId, DateTime timeCreated);
		Task<List<string>> GetFileUrls(Guid postId);

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