using System.Runtime.Serialization;

namespace BS.Shared.DataContracts
{
    [DataContract]
    public class ContactDC : IDataContract
    {
        [DataMember]
        public long? ContactOID { get; set; }

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

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

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

        internal ContactDC CopyToNew()
        {
            return new ContactDC
                   {
                       ContactOID = this.ContactOID, 
                       ContactValue = this.ContactValue
                   };
        }
    }
}