using System.Collections.Generic;
using System.Runtime.Serialization;
using Examine;
namespace Umbraco.Web.Models.ContentEditing
{
///
/// Represents a search result by entity type
///
[DataContract(Name = "searchResult", Namespace = "")]
public class TreeSearchResult
{
[DataMember(Name = "appAlias")]
public string AppAlias { get; set; }
[DataMember(Name = "treeAlias")]
public string TreeAlias { get; set; }
///
/// This is optional but if specified should be the name of an angular service to format the search result.
///
[DataMember(Name = "jsSvc")]
public string JsFormatterService { get; set; }
///
/// This is optional but if specified should be the name of a method on the jsSvc angular service to use, if not
/// specified than it will expect the method to be called `format(searchResult, appAlias, treeAlias)`
///
[DataMember(Name = "jsMethod")]
public string JsFormatterMethod { get; set; }
[DataMember(Name = "results")]
public IEnumerable Results { get; set; }
}
}