Browse Source

Content Repository

pull/1/head
Sebastian 9 years ago
parent
commit
0edfef19c3
  1. 17
      src/Squidex.Read/Contents/IContentEntity.cs
  2. 21
      src/Squidex.Read/Contents/Repositories/IContentRepoitory.cs

17
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; }
}
}

21
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<List<IContentEntity>> QueryAsync();
Task<IContentEntity> FindContentAsync(Guid id);
}
}
Loading…
Cancel
Save