Пример #1
0
 public void MergeFrom(CheckInSvcGetPreCheckinInfoResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.reservation_ != null)
     {
         if (reservation_ == null)
         {
             reservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
         }
         Reservation.MergeFrom(other.Reservation);
     }
     if (other.VehiclePlates.Length != 0)
     {
         VehiclePlates = other.VehiclePlates;
     }
     if (other.PersonalIdentification.Length != 0)
     {
         PersonalIdentification = other.PersonalIdentification;
     }
     if (other.recommendedAuthorizations_ != null)
     {
         if (recommendedAuthorizations_ == null)
         {
             recommendedAuthorizations_ = new global::HOLMS.Types.Booking.Reservations.RecommendedCheckinAuthorizationAmounts();
         }
         RecommendedAuthorizations.MergeFrom(other.RecommendedAuthorizations);
     }
 }
Пример #2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (reservation_ == null)
                    {
                        reservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
                    }
                    input.ReadMessage(reservation_);
                    break;
                }

                case 18: {
                    VehiclePlates = input.ReadString();
                    break;
                }

                case 26: {
                    PersonalIdentification = input.ReadString();
                    break;
                }

                case 34: {
                    if (recommendedAuthorizations_ == null)
                    {
                        recommendedAuthorizations_ = new global::HOLMS.Types.Booking.Reservations.RecommendedCheckinAuthorizationAmounts();
                    }
                    input.ReadMessage(recommendedAuthorizations_);
                    break;
                }
                }
            }
        }