public void MergeFrom(GroupBookingRoomTypeQuantityUpdated other)
 {
     if (other == null)
     {
         return;
     }
     if (other.JWToken.Length != 0)
     {
         JWToken = other.JWToken;
     }
     if (other.groupBooking_ != null)
     {
         if (groupBooking_ == null)
         {
             groupBooking_ = new global::HOLMS.Types.Booking.Indicators.GroupBookingIndicator();
         }
         GroupBooking.MergeFrom(other.GroupBooking);
     }
     roomTypeQuantities_.Add(other.roomTypeQuantities_);
     if (other.dateRange_ != null)
     {
         if (dateRange_ == null)
         {
             dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange();
         }
         DateRange.MergeFrom(other.DateRange);
     }
     addHoldQuantities_.Add(other.addHoldQuantities_);
 }
Beispiel #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (JWToken.Length != 0)
            {
                hash ^= JWToken.GetHashCode();
            }
            if (groupBooking_ != null)
            {
                hash ^= GroupBooking.GetHashCode();
            }
            hash ^= roomTypeQuantities_.GetHashCode();
            return(hash);
        }
Beispiel #3
0
 public void MergeFrom(GroupBookingRoomTypeQuantityUpdated other)
 {
     if (other == null)
     {
         return;
     }
     if (other.JWToken.Length != 0)
     {
         JWToken = other.JWToken;
     }
     if (other.groupBooking_ != null)
     {
         if (groupBooking_ == null)
         {
             groupBooking_ = new global::HOLMS.Types.Booking.Indicators.GroupBookingIndicator();
         }
         GroupBooking.MergeFrom(other.GroupBooking);
     }
     roomTypeQuantities_.Add(other.roomTypeQuantities_);
 }