Ejemplo n.º 1
0
 public void MergeFrom(ReservationDefaults other)
 {
     if (other == null)
     {
         return;
     }
     if (other.defaultRateSchedule_ != null)
     {
         if (defaultRateSchedule_ == null)
         {
             defaultRateSchedule_ = new global::HOLMS.Types.Supply.RateScheduleIndicator();
         }
         DefaultRateSchedule.MergeFrom(other.DefaultRateSchedule);
     }
     if (other.ShowCancellationPolicy != false)
     {
         ShowCancellationPolicy = other.ShowCancellationPolicy;
     }
     if (other.RequirePhoneNumber != false)
     {
         RequirePhoneNumber = other.RequirePhoneNumber;
     }
     if (other.CharacterCase != 0)
     {
         CharacterCase = other.CharacterCase;
     }
     if (other.BlockDropDays != 0)
     {
         BlockDropDays = other.BlockDropDays;
     }
     if (other.ViewFolioHighlightDays != 0)
     {
         ViewFolioHighlightDays = other.ViewFolioHighlightDays;
     }
 }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (defaultRateSchedule_ != null)
            {
                hash ^= DefaultRateSchedule.GetHashCode();
            }
            if (ShowCancellationPolicy != false)
            {
                hash ^= ShowCancellationPolicy.GetHashCode();
            }
            if (RequirePhoneNumber != false)
            {
                hash ^= RequirePhoneNumber.GetHashCode();
            }
            if (CharacterCase != 0)
            {
                hash ^= CharacterCase.GetHashCode();
            }
            if (BlockDropDays != 0)
            {
                hash ^= BlockDropDays.GetHashCode();
            }
            if (ViewFolioHighlightDays != 0)
            {
                hash ^= ViewFolioHighlightDays.GetHashCode();
            }
            return(hash);
        }