37 lines
1.0 KiB
C#
37 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace Tesses.CMS
|
|
{
|
|
public class Movie
|
|
{
|
|
[JsonIgnore]
|
|
public long Id {get;set;}
|
|
[JsonProperty("proper_name")]
|
|
public string ProperName {get;set;}="";
|
|
[JsonProperty("name")]
|
|
public string Name {get;set;}="";
|
|
[JsonIgnore]
|
|
public long UserId {get;set;}
|
|
[JsonProperty("created_time")]
|
|
public DateTime CreationTime {get;set;}
|
|
[JsonProperty("last_updated_time")]
|
|
public DateTime LastUpdated {get;set;}
|
|
[JsonProperty("description")]
|
|
public string Description {get;set;}="";
|
|
|
|
|
|
|
|
public object Scriban(string thumbnail)
|
|
{
|
|
return new {
|
|
Proper = System.Web.HttpUtility.HtmlEncode( ProperName),
|
|
Name = System.Web.HttpUtility.HtmlEncode(Name),
|
|
Description = System.Web.HttpUtility.HtmlEncode(Description),
|
|
Thumbnail = thumbnail
|
|
};
|
|
}
|
|
|
|
}
|
|
} |