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

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

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

                case 18: {
                    if (paymentId_ == null)
                    {
                        paymentId_ = new global::HOLMS.Types.Primitive.Uuid();
                    }
                    input.ReadMessage(paymentId_);
                    break;
                }

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

                case 34: {
                    if (amount_ == null)
                    {
                        amount_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
                    }
                    input.ReadMessage(amount_);
                    break;
                }

                case 40: {
                    state_ = (global::HOLMS.Types.Booking.Groups.PaymentState)input.ReadEnum();
                    break;
                }
                }
            }
        }
Beispiel #2
0
 public void MergeFrom(PaymentReservationMapping other)
 {
     if (other == null)
     {
         return;
     }
     if (other.groupBookingId_ != null)
     {
         if (groupBookingId_ == null)
         {
             groupBookingId_ = new global::HOLMS.Types.Booking.Indicators.GroupBookingIndicator();
         }
         GroupBookingId.MergeFrom(other.GroupBookingId);
     }
     if (other.paymentId_ != null)
     {
         if (paymentId_ == null)
         {
             paymentId_ = new global::HOLMS.Types.Primitive.Uuid();
         }
         PaymentId.MergeFrom(other.PaymentId);
     }
     if (other.reservationId_ != null)
     {
         if (reservationId_ == null)
         {
             reservationId_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
         }
         ReservationId.MergeFrom(other.ReservationId);
     }
     if (other.amount_ != null)
     {
         if (amount_ == null)
         {
             amount_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         Amount.MergeFrom(other.Amount);
     }
     if (other.State != 0)
     {
         State = other.State;
     }
 }