public void MergeFrom(Guest other) { if (other == null) { return; } if (other.entityId_ != null) { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.CRM.Guests.GuestIndicator(); } EntityId.MergeFrom(other.EntityId); } if (other.contactInfo_ != null) { if (contactInfo_ == null) { contactInfo_ = new global::HOLMS.Types.Primitive.ContactInformation(); } ContactInfo.MergeFrom(other.ContactInfo); } if (other.IsBlacklisted != false) { IsBlacklisted = other.IsBlacklisted; } }
public void MergeFrom(Group other) { if (other == null) { return; } if (other.entityId_ != null) { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.CRM.Groups.GroupIndicator(); } EntityId.MergeFrom(other.EntityId); } if (other.Name.Length != 0) { Name = other.Name; } if (other.GroupType != 0) { GroupType = other.GroupType; } if (other.GroupNumber.Length != 0) { GroupNumber = other.GroupNumber; } if (other.creditLimit_ != null) { if (creditLimit_ == null) { creditLimit_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } CreditLimit.MergeFrom(other.CreditLimit); } if (other.Active != false) { Active = other.Active; } if (other.contactInfo_ != null) { if (contactInfo_ == null) { contactInfo_ = new global::HOLMS.Types.Primitive.ContactInformation(); } ContactInfo.MergeFrom(other.ContactInfo); } if (other.property_ != null) { if (property_ == null) { property_ = new global::HOLMS.Types.TenancyConfig.Indicators.PropertyIndicator(); } Property.MergeFrom(other.Property); } }
public void MergeFrom(StaffMember other) { if (other == null) { return; } if (other.entityId_ != null) { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.IAM.StaffMemberIndicator(); } EntityId.MergeFrom(other.EntityId); } if (other.UserId.Length != 0) { UserId = other.UserId; } if (other.Password.Length != 0) { Password = other.Password; } if (other.DisplayName.Length != 0) { DisplayName = other.DisplayName; } if (other.EmergencyContactPhoneNumber.Length != 0) { EmergencyContactPhoneNumber = other.EmergencyContactPhoneNumber; } if (other.IsPhoneDataDisplayable != false) { IsPhoneDataDisplayable = other.IsPhoneDataDisplayable; } if (other.dateHired_ != null) { if (dateHired_ == null) { dateHired_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } DateHired.MergeFrom(other.DateHired); } if (other.IsActive != false) { IsActive = other.IsActive; } if (other.department_ != null) { if (department_ == null) { department_ = new global::HOLMS.Types.IAM.DepartmentIndicator(); } Department.MergeFrom(other.Department); } if (other.DepartmentName.Length != 0) { DepartmentName = other.DepartmentName; } if (other.contactInfo_ != null) { if (contactInfo_ == null) { contactInfo_ = new global::HOLMS.Types.Primitive.ContactInformation(); } ContactInfo.MergeFrom(other.ContactInfo); } if (other.IsIncluded != false) { IsIncluded = other.IsIncluded; } }