aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Data/Interfaces/Repositories/IPostRepository.cs
blob: 5022df536a7917ae12fc22228f8e1662e0564fb1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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<Post> GetPostByCreatorAndTimeCreatedAsync(Guid issuerId, DateTime timeCreated);
		Task<List<string>> GetFileUrls(Guid postId);

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