public object Clone()
 {
     EmailAddressDetail clone = new EmailAddressDetail();
     clone.Address = this.Address;
     clone.ValidRangeFrom = this.ValidRangeFrom;
     clone.ValidRangeUntil = this.ValidRangeUntil;
     return clone;
 }
Exemple #2
0
        public object Clone()
        {
            EmailAddressDetail clone = new EmailAddressDetail();

            clone.Address         = this.Address;
            clone.ValidRangeFrom  = this.ValidRangeFrom;
            clone.ValidRangeUntil = this.ValidRangeUntil;
            return(clone);
        }
Exemple #3
0
        public EmailAddressDetail CreateEmailAddressDetail(EmailAddress emailAddress, IPersistenceContext context)
        {
            EmailAddressDetail detail = new EmailAddressDetail();

            detail.Address = emailAddress.Address;
            detail.ValidRangeFrom = emailAddress.ValidRange.From;
            detail.ValidRangeUntil = emailAddress.ValidRange.Until;

            return detail;
        }
Exemple #4
0
        public EmailAddress CreateEmailAddress(EmailAddressDetail detail)
        {
            EmailAddress emailAddress = new EmailAddress();

            emailAddress.Address = detail.Address;
            emailAddress.ValidRange = new DateTimeRange(
                detail.ValidRangeFrom,
                detail.ValidRangeUntil);

            return emailAddress;
        }
		public ExternalPractitionerContactPointDetail(
			EntityRef contactPointRef, string name, string description, bool isDefaultContactPoint,
			EnumValueInfo preferredResultCommunicationMode, EnumValueInfo informationAuthority,
			List<TelephoneDetail> phoneDetails, List<AddressDetail> addressDetails, List<EmailAddressDetail> emailAddressDetails,
			TelephoneDetail currentPhone, TelephoneDetail currentFax, AddressDetail currentAddress, EmailAddressDetail currentEmailAddress,
			ExternalPractitionerContactPointSummary mergeDestination, bool isMerged, bool deactivated)
		{
			this.ContactPointRef = contactPointRef;
			this.Name = name;
			this.Description = description;
			this.IsDefaultContactPoint = isDefaultContactPoint;
			this.PreferredResultCommunicationMode = preferredResultCommunicationMode;
			this.InformationAuthority = informationAuthority;
			this.TelephoneNumbers = phoneDetails;
			this.Addresses = addressDetails;
			this.EmailAddresses = emailAddressDetails;
			this.CurrentPhoneNumber = currentPhone;
			this.CurrentFaxNumber = currentFax;
			this.CurrentAddress = currentAddress;
			this.CurrentEmailAddress = currentEmailAddress;
			this.MergeDestination = mergeDestination;
			this.IsMerged = isMerged;
			this.Deactivated = deactivated;
		}
 public ExternalPractitionerContactPointDetail(
     EntityRef contactPointRef, string name, string description, bool isDefaultContactPoint,
     EnumValueInfo preferredResultCommunicationMode, EnumValueInfo informationAuthority,
     List <TelephoneDetail> phoneDetails, List <AddressDetail> addressDetails, List <EmailAddressDetail> emailAddressDetails,
     TelephoneDetail currentPhone, TelephoneDetail currentFax, AddressDetail currentAddress, EmailAddressDetail currentEmailAddress,
     ExternalPractitionerContactPointSummary mergeDestination, bool isMerged, bool deactivated)
 {
     this.ContactPointRef                  = contactPointRef;
     this.Name                             = name;
     this.Description                      = description;
     this.IsDefaultContactPoint            = isDefaultContactPoint;
     this.PreferredResultCommunicationMode = preferredResultCommunicationMode;
     this.InformationAuthority             = informationAuthority;
     this.TelephoneNumbers                 = phoneDetails;
     this.Addresses                        = addressDetails;
     this.EmailAddresses                   = emailAddressDetails;
     this.CurrentPhoneNumber               = currentPhone;
     this.CurrentFaxNumber                 = currentFax;
     this.CurrentAddress                   = currentAddress;
     this.CurrentEmailAddress              = currentEmailAddress;
     this.MergeDestination                 = mergeDestination;
     this.IsMerged                         = isMerged;
     this.Deactivated                      = deactivated;
 }