All checks were successful
Build blog docker image / Build-Blog-Image (push) Successful in 1m15s
Reviewed-on: #9
27 lines
725 B
C#
27 lines
725 B
C#
using System.Diagnostics.CodeAnalysis;
|
|
using YaeBlog.Models;
|
|
|
|
namespace YaeBlog.Abstraction;
|
|
|
|
public interface IEssayContentService
|
|
{
|
|
public IEnumerable<BlogEssay> Essays { get; }
|
|
|
|
public int Count { get; }
|
|
|
|
public IReadOnlyDictionary<EssayTag, List<BlogEssay>> Tags { get; }
|
|
|
|
public IReadOnlyDictionary<string, BlogHeadline> Headlines { get; }
|
|
|
|
public bool TryAddHeadline(string filename, BlogHeadline headline);
|
|
public bool SearchByUrlEncodedTag(string tag, [NotNullWhen(true)] out List<BlogEssay>? result);
|
|
|
|
public bool TryAdd(BlogEssay essay);
|
|
|
|
public bool TryGetEssay(string filename, [NotNullWhen(true)] out BlogEssay? essay);
|
|
|
|
public void RefreshTags();
|
|
|
|
public void Clear();
|
|
}
|