Beispiel #1
0
 public void MergeFrom(Property other)
 {
     if (other == null)
     {
         return;
     }
     if (other.entityId_ != null)
     {
         if (entityId_ == null)
         {
             entityId_ = new global::HOLMS.Types.TenancyConfig.Indicators.PropertyIndicator();
         }
         EntityId.MergeFrom(other.EntityId);
     }
     if (other.Description.Length != 0)
     {
         Description = other.Description;
     }
     if (other.checkinTimeOfDay_ != null)
     {
         if (checkinTimeOfDay_ == null)
         {
             checkinTimeOfDay_ = new global::Google.Protobuf.WellKnownTypes.Duration();
         }
         CheckinTimeOfDay.MergeFrom(other.CheckinTimeOfDay);
     }
     if (other.checkOutTimeOfDay_ != null)
     {
         if (checkOutTimeOfDay_ == null)
         {
             checkOutTimeOfDay_ = new global::Google.Protobuf.WellKnownTypes.Duration();
         }
         CheckOutTimeOfDay.MergeFrom(other.CheckOutTimeOfDay);
     }
     if (other.rolloverTimeOfDay_ != null)
     {
         if (rolloverTimeOfDay_ == null)
         {
             rolloverTimeOfDay_ = new global::Google.Protobuf.WellKnownTypes.Duration();
         }
         RolloverTimeOfDay.MergeFrom(other.RolloverTimeOfDay);
     }
     if (other.AllowedEarlyCheckinHours != 0)
     {
         AllowedEarlyCheckinHours = other.AllowedEarlyCheckinHours;
     }
     if (other.IifDocnumPrefix.Length != 0)
     {
         IifDocnumPrefix = other.IifDocnumPrefix;
     }
     if (other.IifCustomerName.Length != 0)
     {
         IifCustomerName = other.IifCustomerName;
     }
     if (other.checkinDeposit_ != null)
     {
         if (checkinDeposit_ == null)
         {
             checkinDeposit_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         CheckinDeposit.MergeFrom(other.CheckinDeposit);
     }
     if (other.lastRevenueAccrualStart_ != null)
     {
         if (lastRevenueAccrualStart_ == null)
         {
             lastRevenueAccrualStart_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         LastRevenueAccrualStart.MergeFrom(other.LastRevenueAccrualStart);
     }
     if (other.lastDateHkRolloverRan_ != null)
     {
         if (lastDateHkRolloverRan_ == null)
         {
             lastDateHkRolloverRan_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         LastDateHkRolloverRan.MergeFrom(other.LastDateHkRolloverRan);
     }
     if (other.Address1.Length != 0)
     {
         Address1 = other.Address1;
     }
     if (other.Address2.Length != 0)
     {
         Address2 = other.Address2;
     }
     if (other.City.Length != 0)
     {
         City = other.City;
     }
     if (other.State.Length != 0)
     {
         State = other.State;
     }
     if (other.Zip.Length != 0)
     {
         Zip = other.Zip;
     }
     if (other.PhoneNumber.Length != 0)
     {
         PhoneNumber = other.PhoneNumber;
     }
     if (other.cardMerchant_ != null)
     {
         if (cardMerchant_ == null)
         {
             cardMerchant_ = new global::HOLMS.Types.Money.Cards.CardMerchantIndicator();
         }
         CardMerchant.MergeFrom(other.CardMerchant);
     }
     if (other.cancellationPolicy_ != null)
     {
         if (cancellationPolicy_ == null)
         {
             cancellationPolicy_ = new global::HOLMS.Types.Booking.Indicators.CancellationPolicyIndicator();
         }
         CancellationPolicy.MergeFrom(other.CancellationPolicy);
     }
     if (other.maximumAuthorizationAmount_ != null)
     {
         if (maximumAuthorizationAmount_ == null)
         {
             maximumAuthorizationAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         MaximumAuthorizationAmount.MergeFrom(other.MaximumAuthorizationAmount);
     }
     if (other.DefaultStayLength != 0)
     {
         DefaultStayLength = other.DefaultStayLength;
     }
     if (other.Website.Length != 0)
     {
         Website = other.Website;
     }
     if (other.ReservationEmail.Length != 0)
     {
         ReservationEmail = other.ReservationEmail;
     }
     if (other.FaxNumber.Length != 0)
     {
         FaxNumber = other.FaxNumber;
     }
     if (other.BookingPrefix.Length != 0)
     {
         BookingPrefix = other.BookingPrefix;
     }
     if (other.VoidAuthorizationsAfterDays != 0)
     {
         VoidAuthorizationsAfterDays = other.VoidAuthorizationsAfterDays;
     }
     if (other.NoShowDelayHours != 0)
     {
         NoShowDelayHours = other.NoShowDelayHours;
     }
 }
Beispiel #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (entityId_ != null)
            {
                hash ^= EntityId.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            if (checkinTimeOfDay_ != null)
            {
                hash ^= CheckinTimeOfDay.GetHashCode();
            }
            if (checkOutTimeOfDay_ != null)
            {
                hash ^= CheckOutTimeOfDay.GetHashCode();
            }
            if (rolloverTimeOfDay_ != null)
            {
                hash ^= RolloverTimeOfDay.GetHashCode();
            }
            if (AllowedEarlyCheckinHours != 0)
            {
                hash ^= AllowedEarlyCheckinHours.GetHashCode();
            }
            if (IifDocnumPrefix.Length != 0)
            {
                hash ^= IifDocnumPrefix.GetHashCode();
            }
            if (IifCustomerName.Length != 0)
            {
                hash ^= IifCustomerName.GetHashCode();
            }
            if (checkinDeposit_ != null)
            {
                hash ^= CheckinDeposit.GetHashCode();
            }
            if (lastRevenueAccrualStart_ != null)
            {
                hash ^= LastRevenueAccrualStart.GetHashCode();
            }
            if (lastDateHkRolloverRan_ != null)
            {
                hash ^= LastDateHkRolloverRan.GetHashCode();
            }
            if (Address1.Length != 0)
            {
                hash ^= Address1.GetHashCode();
            }
            if (Address2.Length != 0)
            {
                hash ^= Address2.GetHashCode();
            }
            if (City.Length != 0)
            {
                hash ^= City.GetHashCode();
            }
            if (State.Length != 0)
            {
                hash ^= State.GetHashCode();
            }
            if (Zip.Length != 0)
            {
                hash ^= Zip.GetHashCode();
            }
            if (PhoneNumber.Length != 0)
            {
                hash ^= PhoneNumber.GetHashCode();
            }
            if (cardMerchant_ != null)
            {
                hash ^= CardMerchant.GetHashCode();
            }
            if (cancellationPolicy_ != null)
            {
                hash ^= CancellationPolicy.GetHashCode();
            }
            if (maximumAuthorizationAmount_ != null)
            {
                hash ^= MaximumAuthorizationAmount.GetHashCode();
            }
            if (DefaultStayLength != 0)
            {
                hash ^= DefaultStayLength.GetHashCode();
            }
            if (Website.Length != 0)
            {
                hash ^= Website.GetHashCode();
            }
            if (ReservationEmail.Length != 0)
            {
                hash ^= ReservationEmail.GetHashCode();
            }
            if (FaxNumber.Length != 0)
            {
                hash ^= FaxNumber.GetHashCode();
            }
            if (BookingPrefix.Length != 0)
            {
                hash ^= BookingPrefix.GetHashCode();
            }
            if (VoidAuthorizationsAfterDays != 0)
            {
                hash ^= VoidAuthorizationsAfterDays.GetHashCode();
            }
            if (NoShowDelayHours != 0)
            {
                hash ^= NoShowDelayHours.GetHashCode();
            }
            return(hash);
        }