Files
BeWoPlaner/Shared/DataContracts/ContactDC.cs

36 lines
920 B
C#

using BS.Shared.Interface;
using System.Diagnostics;
using System.Runtime.Serialization;
namespace BS.Shared.DataContracts
{
[DataContract]
[DebuggerDisplay("{ContactType}: {ContactValue}")]
public partial class ContactDC : IDataContract, IContact
{
[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
};
}
public ContactType Type => ContactType;
public string Value => ContactValue;
}
}