Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //TODO: enable only needed properties.
- namespace Root.Core.Models.Entries
- {
- using System;
- using Newtonsoft.Json;
- using Deliverystack.Core.Models.Repositories;
- // using Newtonsoft.Json.Linq;
- // using Contentstack.Core.Models;
- // using Root.Core.Models.GlobalFields;
- public class ContentBlockEntry
- {
- public string Title { get; set; }
- [JsonProperty(propertyName: "updated_at")]
- public DateTime UpdatedAt { get; set; }
- [JsonProperty(propertyName: "uid")]
- public string EntryUid { get; set; }
- // set this explicitly from repository code, not by deserialization
- public string ContentTypeUid { get; set; }
- public string Locale { get; set; }
- public string EditLink
- {
- get
- {
- return Repository.GetEditLink(this.EntryUid, this.ContentTypeUid);
- }
- }
- public IRepository Repository { get; set; }
- }
- }
- // public string[] Tags { get; set; }
- // [JsonProperty(propertyName: "_version")]
- // public Double Version { get; set; }
- // [JsonProperty(propertyName: "created_at")]
- // public DateTime CreatedAt { get; set; }
- // [JsonProperty(propertyName: "created_by")]
- // public string CreatedBy { get; set; }
- // [JsonProperty(propertyName: "updated_by")]
- // public string UpdatedBy { get; set; }
- // public JObject JObject { get; set; }
- // public Entry Entry { get; set; }
- // [JsonProperty(propertyName: "publish_details")]
- // public PublishDetails PublishDetails { get; set; }
- //TODO: should a value other than MaxValue prevent Repository from including Entry?
- // [JsonProperty(propertyName: "deleted_at")]
- // public DateTime DeletedAt { get; set; } = DateTime.MaxValue;
- // [JsonProperty(propertyName: "deleted_by")]
- // public string DeletedBy { get; set; };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement