public override int GetHashCode()
        {
            int hash = 1;

            if (checkInDate_ != null)
            {
                hash ^= CheckInDate.GetHashCode();
            }
            if (averageRate_ != null)
            {
                hash ^= AverageRate.GetHashCode();
            }
            if (ReservationBookingNumber.Length != 0)
            {
                hash ^= ReservationBookingNumber.GetHashCode();
            }
            if (reservationId_ != null)
            {
                hash ^= ReservationId.GetHashCode();
            }
            if (RoomNumber.Length != 0)
            {
                hash ^= RoomNumber.GetHashCode();
            }
            if (guestId_ != null)
            {
                hash ^= GuestId.GetHashCode();
            }
            if (RoomType.Length != 0)
            {
                hash ^= RoomType.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (JWToken.Length != 0)
            {
                hash ^= JWToken.GetHashCode();
            }
            if (reservation_ != null)
            {
                hash ^= Reservation.GetHashCode();
            }
            if (guestId_ != null)
            {
                hash ^= GuestId.GetHashCode();
            }
            if (penalty_ != null)
            {
                hash ^= Penalty.GetHashCode();
            }
            if (DaysBeforeReservationStart != 0)
            {
                hash ^= DaysBeforeReservationStart.GetHashCode();
            }
            if (RequestingParty.Length != 0)
            {
                hash ^= RequestingParty.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 3
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);
        }
 public void MergeFrom(ReservationCheckOutNotification other)
 {
     if (other == null)
     {
         return;
     }
     if (other.JWToken.Length != 0)
     {
         JWToken = other.JWToken;
     }
     if (other.reservation_ != null)
     {
         if (reservation_ == null)
         {
             reservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
         }
         Reservation.MergeFrom(other.Reservation);
     }
     if (other.guestId_ != null)
     {
         if (guestId_ == null)
         {
             guestId_ = new global::HOLMS.Types.CRM.Guests.GuestIndicator();
         }
         GuestId.MergeFrom(other.GuestId);
     }
     if (other.ReservationBookingNumber.Length != 0)
     {
         ReservationBookingNumber = other.ReservationBookingNumber;
     }
 }
 public void MergeFrom(ReservationCheckInNotification other)
 {
     if (other == null)
     {
         return;
     }
     if (other.JWToken.Length != 0)
     {
         JWToken = other.JWToken;
     }
     if (other.reservation_ != null)
     {
         if (reservation_ == null)
         {
             reservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
         }
         Reservation.MergeFrom(other.Reservation);
     }
     if (other.checkInDate_ != null)
     {
         if (checkInDate_ == null)
         {
             checkInDate_ = new global::HOLMS.Types.Primitive.PbLocalDate();
         }
         CheckInDate.MergeFrom(other.CheckInDate);
     }
     if (other.roomId_ != null)
     {
         if (roomId_ == null)
         {
             roomId_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator();
         }
         RoomId.MergeFrom(other.RoomId);
     }
     if (other.guestId_ != null)
     {
         if (guestId_ == null)
         {
             guestId_ = new global::HOLMS.Types.CRM.Guests.GuestIndicator();
         }
         GuestId.MergeFrom(other.GuestId);
     }
     if (other.averageRate_ != null)
     {
         if (averageRate_ == null)
         {
             averageRate_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         AverageRate.MergeFrom(other.AverageRate);
     }
     if (other.ReservationBookingNumber.Length != 0)
     {
         ReservationBookingNumber = other.ReservationBookingNumber;
     }
     if (other.KeepGuaranteeRequested != false)
     {
         KeepGuaranteeRequested = other.KeepGuaranteeRequested;
     }
 }
Ejemplo n.º 6
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);
     }
 }
 public void MergeFrom(GuestCheckedIn other)
 {
     if (other == null)
     {
         return;
     }
     if (other.checkInDate_ != null)
     {
         if (checkInDate_ == null)
         {
             checkInDate_ = new global::HOLMS.Types.Primitive.PbLocalDate();
         }
         CheckInDate.MergeFrom(other.CheckInDate);
     }
     if (other.averageRate_ != null)
     {
         if (averageRate_ == null)
         {
             averageRate_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         AverageRate.MergeFrom(other.AverageRate);
     }
     if (other.ReservationBookingNumber.Length != 0)
     {
         ReservationBookingNumber = other.ReservationBookingNumber;
     }
     if (other.reservationId_ != null)
     {
         if (reservationId_ == null)
         {
             reservationId_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
         }
         ReservationId.MergeFrom(other.ReservationId);
     }
     if (other.RoomNumber.Length != 0)
     {
         RoomNumber = other.RoomNumber;
     }
     if (other.guestId_ != null)
     {
         if (guestId_ == null)
         {
             guestId_ = new global::HOLMS.Types.CRM.Guests.GuestIndicator();
         }
         GuestId.MergeFrom(other.GuestId);
     }
     if (other.RoomType.Length != 0)
     {
         RoomType = other.RoomType;
     }
 }
Ejemplo n.º 8
0
        public void addTravelGuest(List <string> travelGuest)
        {
            MainPage mainPage = new MainPage(webDriver);

            Thread.Sleep(WDEx.delaySml);
            mainPage.SwitchToIFrame(webDriver, "contentIFrame1");
            for (int i = 0; i < travelGuest.Count; i++)
            {
                RecordLocLbl.Click();

                AddGuest.Click();
                GuestId.SendKeys(travelGuest[i]);
                GuestId.SendKeys(Keys.Enter);
                GuestIdValueSelect.Click();
            }
            webDriver.SwitchTo().DefaultContent();
        }
Ejemplo n.º 9
0
 public void MergeFrom(ReservationCancellationNotification other)
 {
     if (other == null)
     {
         return;
     }
     if (other.JWToken.Length != 0)
     {
         JWToken = other.JWToken;
     }
     if (other.reservation_ != null)
     {
         if (reservation_ == null)
         {
             reservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
         }
         Reservation.MergeFrom(other.Reservation);
     }
     if (other.guestId_ != null)
     {
         if (guestId_ == null)
         {
             guestId_ = new global::HOLMS.Types.CRM.Guests.GuestIndicator();
         }
         GuestId.MergeFrom(other.GuestId);
     }
     if (other.penalty_ != null)
     {
         if (penalty_ == null)
         {
             penalty_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         Penalty.MergeFrom(other.Penalty);
     }
     if (other.DaysBeforeReservationStart != 0)
     {
         DaysBeforeReservationStart = other.DaysBeforeReservationStart;
     }
     if (other.RequestingParty.Length != 0)
     {
         RequestingParty = other.RequestingParty;
     }
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (JWToken.Length != 0)
            {
                hash ^= JWToken.GetHashCode();
            }
            if (reservation_ != null)
            {
                hash ^= Reservation.GetHashCode();
            }
            if (guestId_ != null)
            {
                hash ^= GuestId.GetHashCode();
            }
            if (ReservationBookingNumber.Length != 0)
            {
                hash ^= ReservationBookingNumber.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (JWToken.Length != 0)
            {
                hash ^= JWToken.GetHashCode();
            }
            if (reservation_ != null)
            {
                hash ^= Reservation.GetHashCode();
            }
            if (checkInDate_ != null)
            {
                hash ^= CheckInDate.GetHashCode();
            }
            if (roomId_ != null)
            {
                hash ^= RoomId.GetHashCode();
            }
            if (guestId_ != null)
            {
                hash ^= GuestId.GetHashCode();
            }
            if (averageRate_ != null)
            {
                hash ^= AverageRate.GetHashCode();
            }
            if (ReservationBookingNumber.Length != 0)
            {
                hash ^= ReservationBookingNumber.GetHashCode();
            }
            if (KeepGuaranteeRequested != false)
            {
                hash ^= KeepGuaranteeRequested.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 12
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (guestId_ != null)
            {
                hash ^= GuestId.GetHashCode();
            }
            hash ^= cancellations_.GetHashCode();
            if (lastCheckin_ != null)
            {
                hash ^= LastCheckin.GetHashCode();
            }
            if (TotalNightsStayed != 0)
            {
                hash ^= TotalNightsStayed.GetHashCode();
            }
            if (totalInvoiced_ != null)
            {
                hash ^= TotalInvoiced.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 13
0
 public void MergeFrom(GuestHistorySummary other)
 {
     if (other == null)
     {
         return;
     }
     if (other.guestId_ != null)
     {
         if (guestId_ == null)
         {
             guestId_ = new global::HOLMS.Types.CRM.Guests.GuestIndicator();
         }
         GuestId.MergeFrom(other.GuestId);
     }
     cancellations_.Add(other.cancellations_);
     if (other.lastCheckin_ != null)
     {
         if (lastCheckin_ == null)
         {
             lastCheckin_ = new global::HOLMS.Types.CRM.Guests.GuestCheckedIn();
         }
         LastCheckin.MergeFrom(other.LastCheckin);
     }
     if (other.TotalNightsStayed != 0)
     {
         TotalNightsStayed = other.TotalNightsStayed;
     }
     if (other.totalInvoiced_ != null)
     {
         if (totalInvoiced_ == null)
         {
             totalInvoiced_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         TotalInvoiced.MergeFrom(other.TotalInvoiced);
     }
 }
Ejemplo n.º 14
0
        public override int GetHashCode()
        {
            int hashCode = -521319978;

            hashCode = hashCode * -1521134295 + Id.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <Accommodation> .Default.GetHashCode(Accommodation);

            hashCode = hashCode * -1521134295 + AccommodationId.GetHashCode();
            hashCode = hashCode * -1521134295 + _checkIn.GetHashCode();
            hashCode = hashCode * -1521134295 + CheckIn.GetHashCode();
            hashCode = hashCode * -1521134295 + _checkOut.GetHashCode();
            hashCode = hashCode * -1521134295 + CheckOut.GetHashCode();
            hashCode = hashCode * -1521134295 + TotalPrice.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <List <Guest> > .Default.GetHashCode(Guests);

            hashCode = hashCode * -1521134295 + EqualityComparer <Tourist> .Default.GetHashCode(HeadGuest);

            hashCode = hashCode * -1521134295 + GuestId.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <Review> .Default.GetHashCode(Rating);

            hashCode = hashCode * -1521134295 + EqualityComparer <List <BookingStage> > .Default.GetHashCode(BookingHistory);

            return(hashCode);
        }