public Boolean IsEqual(EntityContactInformation compareEntityContactInformation) { Boolean isEqual = base.IsEqual((CoreObject)compareEntityContactInformation); isEqual &= (entityId == compareEntityContactInformation.EntityId); isEqual &= (contactType == compareEntityContactInformation.ContactType); isEqual &= (contactSequence == compareEntityContactInformation.ContactSequence); isEqual &= (number == compareEntityContactInformation.Number); isEqual &= (numberExtension == compareEntityContactInformation.NumberExtension); isEqual &= (email == compareEntityContactInformation.Email); isEqual &= (effectiveDate == compareEntityContactInformation.EffectiveDate); isEqual &= (terminationDate == compareEntityContactInformation.TerminationDate); return(isEqual); }
public EntityContactInformation Copy() { Server.Application.EntityContactInformation serverEntityContactInformation = (Server.Application.EntityContactInformation)ToServerObject(); EntityContactInformation copiedEntityContactInformation = new EntityContactInformation(application, serverEntityContactInformation); return(copiedEntityContactInformation); }
public EntityContactInformation CurrentContactInformation(Server.Application.EntityContactType forContactType) { EntityContactInformation contactInformation = null; foreach (EntityContactInformation currentContactInformation in ContactInformations) { if (currentContactInformation.ContactType == forContactType) { if ((DateTime.Today >= currentContactInformation.EffectiveDate) && (DateTime.Today <= currentContactInformation.TerminationDate)) { contactInformation = currentContactInformation; break; } } } return(contactInformation); }