IPostsRepository.cs 803 Bytes
Newer Older
1 2 3 4
using System;
using System.Collections.Generic;
using MySocialPortalLib.Model;

5
namespace MySocialPortalLib.Repository
6 7 8
{
    public interface IPostsRepository
    {
9
        void AddOrUpdate(Post post);
10 11

        void AddPosts(IEnumerable<Post> posts);
12 13 14

        Post? GetById(string id);

15
        Post? GetByOriginalNetworkId(string network, string id);
16
        
17
        IEnumerable<Post> GetPosts(int maxPosts, string personId = "", string networkName = "");
18

19
        IEnumerable<Post> GetPosts(DateTimeOffset newestPostTime, int maxPosts, bool inclusive, string personId = "", string networkName = "");
20
        
21
        IEnumerable<Post> GetPosts(DateTimeOffset oldestPostTime, DateTimeOffset newestPostTime, int maxPosts, bool inclusive, string personId = "", string networkName = "");
22
        
23 24
    }
}