Implement paging for the three entity types that media can be related to

This commit is contained in:
Warren Buckley
2019-11-15 12:50:44 +00:00
parent 85c2269645
commit 8773d644aa
5 changed files with 234 additions and 116 deletions

View File

@@ -1,24 +1,9 @@
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Runtime.Serialization;
namespace Umbraco.Web.Models.ContentEditing
{
[DataContract(Name = "mediaReferences", Namespace = "")]
public class MediaReferences
[DataContract(Name = "entityType", Namespace = "")]
public class EntityTypeReferences : EntityBasic
{
[DataMember(Name = "content")]
public IEnumerable<EntityTypeReferences> Content { get; set; } = Enumerable.Empty<EntityTypeReferences>();
[DataMember(Name = "members")]
public IEnumerable<EntityTypeReferences> Members { get; set; } = Enumerable.Empty<EntityTypeReferences>();
[DataMember(Name = "media")]
public IEnumerable<EntityTypeReferences> Media { get; set; } = Enumerable.Empty<EntityTypeReferences>();
[DataContract(Name = "entityType", Namespace = "")]
public class EntityTypeReferences : EntityBasic
{
}
}
}