tesses-cms/Tesses.CMS/Movie.cs

37 lines
1.0 KiB
C#
Raw Permalink Normal View History

2023-12-16 01:40:05 +00:00
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace Tesses.CMS
{
public class Movie
{
[JsonIgnore]
public long Id {get;set;}
2024-07-28 22:59:28 +00:00
[JsonProperty("proper_name")]
2023-12-16 01:40:05 +00:00
public string ProperName {get;set;}="";
2024-07-28 22:59:28 +00:00
[JsonProperty("name")]
2023-12-16 01:40:05 +00:00
public string Name {get;set;}="";
[JsonIgnore]
public long UserId {get;set;}
2024-08-10 18:32:16 +00:00
[JsonProperty("creation_time")]
public DateTime CreationTime {get;set;}=DateTime.Now;
2024-07-28 22:59:28 +00:00
[JsonProperty("last_updated_time")]
2024-08-10 18:32:16 +00:00
public DateTime LastUpdated {get;set;}=DateTime.Now;
2024-07-28 22:59:28 +00:00
[JsonProperty("description")]
2023-12-16 01:40:05 +00:00
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
};
}
}
}