using System;
using System.Runtime.Serialization;

namespace BS.Shared.DataContracts
{
    [DataContract]
    public class FileAttachmentDC : IDataContract
    {
        [DataMember]
        public string Description { get; set; }

        [DataMember]
        public long? FileAttachmentOid { get; set; }

        [DataMember]
        public long? FileAttachmentVersion { get; set; }

        [DataMember]
        public string FileName { get; set; }

        [DataMember]
        public string InsertedBy { get; set; }

        [DataMember]
        public DateTime InsertedOn { get; set; }

        [DataMember]
        public bool IsLocked { get; set; }

        [DataMember]
        public string LockedBy { get; set; }

        [DataMember]
        public string URL { get; set; }

        [DataMember]
        public FileAttachmentType FileAttachmentType { get; set; }

        [DataMember]
        public long? BeWoFolderOid { get; set; }

        [DataMember]
        public long? ObjectOid { get; set; }

        [DataMember]
        public TableID ObjectTid { get; set; }

        [DataMember]
        public byte[] BinaryData { get; set; }
    }
}