Esempio n. 1
0
 public void MergeFrom(CancellationRequest 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.ApplyPenalty != false)
     {
         ApplyPenalty = other.ApplyPenalty;
     }
     if (other.CancellationReason.Length != 0)
     {
         CancellationReason = other.CancellationReason;
     }
     if (other.penaltyEstimate_ != null)
     {
         if (penaltyEstimate_ == null)
         {
             penaltyEstimate_ = new global::HOLMS.Types.Booking.CancellationPenaltyEstimate();
         }
         PenaltyEstimate.MergeFrom(other.PenaltyEstimate);
     }
     if (other.RequestingParty.Length != 0)
     {
         RequestingParty = other.RequestingParty;
     }
 }
Esempio n. 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 16: {
                    ApplyPenalty = input.ReadBool();
                    break;
                }

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

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

                case 42: {
                    RequestingParty = input.ReadString();
                    break;
                }
                }
            }
        }