From 0edfef19c32154c2cdf5cab484aa876e16da3b07 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Sat, 14 Jan 2017 12:31:06 +0100 Subject: [PATCH] Content Repository --- src/Squidex.Read/Contents/IContentEntity.cs | 17 +++++++++++++++ .../Repositories/IContentRepoitory.cs | 21 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 src/Squidex.Read/Contents/IContentEntity.cs create mode 100644 src/Squidex.Read/Contents/Repositories/IContentRepoitory.cs diff --git a/src/Squidex.Read/Contents/IContentEntity.cs b/src/Squidex.Read/Contents/IContentEntity.cs new file mode 100644 index 000000000..6b85654dc --- /dev/null +++ b/src/Squidex.Read/Contents/IContentEntity.cs @@ -0,0 +1,17 @@ +// ========================================================================== +// IContentEntity.cs +// Squidex Headless CMS +// ========================================================================== +// Copyright (c) Squidex Group +// All rights reserved. +// ========================================================================== + +using Newtonsoft.Json.Linq; + +namespace Squidex.Read.Contents +{ + public interface IContentEntity : IEntity + { + JToken Data { get; } + } +} diff --git a/src/Squidex.Read/Contents/Repositories/IContentRepoitory.cs b/src/Squidex.Read/Contents/Repositories/IContentRepoitory.cs new file mode 100644 index 000000000..ff66ad955 --- /dev/null +++ b/src/Squidex.Read/Contents/Repositories/IContentRepoitory.cs @@ -0,0 +1,21 @@ +// ========================================================================== +// IContentRepoitory.cs +// Squidex Headless CMS +// ========================================================================== +// Copyright (c) Squidex Group +// All rights reserved. +// ========================================================================== + +using System; +using System.Collections.Generic; +using System.Threading.Tasks; + +namespace Squidex.Read.Contents.Repositories +{ + public interface IContentRepoitory + { + Task> QueryAsync(); + + Task FindContentAsync(Guid id); + } +}