using Knoks.Framework.DataAccess;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Text;
namespace Knoks.Core.Entities
{
public class KnokImage
{
///
///Use to show
///
public string Href { get; set; }
///
/// Use to edit
///
public string Url { get; set; }
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore), DefaultValue("")]
public string FileName { get; set; }
//public string ContentType { get; set; }
[ProcParamIgnore]
public byte[] Content { get; set; }
[ProcParamIgnore]
public string ContentBase64 { get; set; }//base64 image
[JsonIgnore, ProcParamIgnore]
public Stream ContentStream { get; set; }
public bool ShouldDeserializeHref() => false;
public bool ShouldSerializeContent() => false;
public bool ShouldSerializeContentBase64() => false;
}
}