Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (JWToken.Length != 0)
            {
                hash ^= JWToken.GetHashCode();
            }
            if (opsdate_ != null)
            {
                hash ^= Opsdate.GetHashCode();
            }
            if (pretaxLodgingCharge_ != null)
            {
                hash ^= PretaxLodgingCharge.GetHashCode();
            }
            if (roomTypeId_ != null)
            {
                hash ^= RoomTypeId.GetHashCode();
            }
            if (guestId_ != null)
            {
                hash ^= GuestId.GetHashCode();
            }
            if (reservationId_ != null)
            {
                hash ^= ReservationId.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 2
0
 public void MergeFrom(FolioChargePostedNotification other)
 {
     if (other == null)
     {
         return;
     }
     if (other.JWToken.Length != 0)
     {
         JWToken = other.JWToken;
     }
     if (other.opsdate_ != null)
     {
         if (opsdate_ == null)
         {
             opsdate_ = new global::HOLMS.Types.Primitive.PbLocalDate();
         }
         Opsdate.MergeFrom(other.Opsdate);
     }
     if (other.pretaxLodgingCharge_ != null)
     {
         if (pretaxLodgingCharge_ == null)
         {
             pretaxLodgingCharge_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         PretaxLodgingCharge.MergeFrom(other.PretaxLodgingCharge);
     }
     if (other.roomTypeId_ != null)
     {
         if (roomTypeId_ == null)
         {
             roomTypeId_ = new global::HOLMS.Types.Supply.RoomTypes.RoomTypeIndicator();
         }
         RoomTypeId.MergeFrom(other.RoomTypeId);
     }
     if (other.guestId_ != null)
     {
         if (guestId_ == null)
         {
             guestId_ = new global::HOLMS.Types.CRM.Guests.GuestIndicator();
         }
         GuestId.MergeFrom(other.GuestId);
     }
     if (other.reservationId_ != null)
     {
         if (reservationId_ == null)
         {
             reservationId_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
         }
         ReservationId.MergeFrom(other.ReservationId);
     }
 }
Ejemplo n.º 3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (opsdate_ != null)
            {
                hash ^= Opsdate.GetHashCode();
            }
            if (pretaxLodgingCharge_ != null)
            {
                hash ^= PretaxLodgingCharge.GetHashCode();
            }
            hash ^= taxEstimates_.GetHashCode();
            return(hash);
        }
Ejemplo n.º 4
0
 public void MergeFrom(TaxedReservationNightlyQuote other)
 {
     if (other == null)
     {
         return;
     }
     if (other.opsdate_ != null)
     {
         if (opsdate_ == null)
         {
             opsdate_ = new global::HOLMS.Types.Primitive.PbLocalDate();
         }
         Opsdate.MergeFrom(other.Opsdate);
     }
     if (other.pretaxLodgingCharge_ != null)
     {
         if (pretaxLodgingCharge_ == null)
         {
             pretaxLodgingCharge_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         PretaxLodgingCharge.MergeFrom(other.PretaxLodgingCharge);
     }
     taxEstimates_.Add(other.taxEstimates_);
 }