2018-06-29 19:52:40 +02:00
|
|
|
|
using System;
|
2018-07-13 12:45:04 +10:00
|
|
|
|
using System.Collections.Generic;
|
2018-06-29 19:52:40 +02:00
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
|
|
using Umbraco.Core.Models;
|
2018-09-20 17:22:39 +02:00
|
|
|
|
using Umbraco.Core.Models.ContentEditing;
|
2018-06-29 19:52:40 +02:00
|
|
|
|
|
|
|
|
|
|
namespace Umbraco.Web.Models.ContentEditing
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// A model representing a content item to be displayed in the back office
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataContract(Name = "content", Namespace = "")]
|
2018-08-01 15:40:54 +10:00
|
|
|
|
public class MediaItemDisplay : ListViewAwareContentItemDisplayBase<ContentPropertyDisplay>
|
2018-06-29 19:52:40 +02:00
|
|
|
|
{
|
2018-07-13 12:45:04 +10:00
|
|
|
|
public MediaItemDisplay()
|
|
|
|
|
|
{
|
|
|
|
|
|
ContentApps = new List<ContentApp>();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2018-06-29 19:52:40 +02:00
|
|
|
|
[DataMember(Name = "contentType")]
|
|
|
|
|
|
public ContentTypeBasic ContentType { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[DataMember(Name = "mediaLink")]
|
|
|
|
|
|
public string MediaLink { get; set; }
|
2018-07-13 12:45:04 +10:00
|
|
|
|
|
|
|
|
|
|
[DataMember(Name = "apps")]
|
|
|
|
|
|
public IEnumerable<ContentApp> ContentApps { get; set; }
|
2018-06-29 19:52:40 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|