示例#1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 8: {
                    ReservationIsCancelled = input.ReadBool();
                    break;
                }

                case 18: {
                    if (reservation_ == null)
                    {
                        reservation_ = new global::HOLMS.Types.Booking.Reservations.CancelledReservation();
                    }
                    input.ReadMessage(reservation_);
                    break;
                }
                }
            }
        }
示例#2
0
 public void MergeFrom(ReservationCancellationSvcGetCancelledReservationResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ReservationIsCancelled != false)
     {
         ReservationIsCancelled = other.ReservationIsCancelled;
     }
     if (other.reservation_ != null)
     {
         if (reservation_ == null)
         {
             reservation_ = new global::HOLMS.Types.Booking.Reservations.CancelledReservation();
         }
         Reservation.MergeFrom(other.Reservation);
     }
 }