Exemple #1
0
 public void MergeFrom(PretaxIncidentalReservationNightlyQuote other)
 {
     if (other == null)
     {
         return;
     }
     if (other.incidentalPrice_ != null)
     {
         if (incidentalPrice_ == null)
         {
             incidentalPrice_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         IncidentalPrice.MergeFrom(other.IncidentalPrice);
     }
     if (other.incidentalItem_ != null)
     {
         if (incidentalItem_ == null)
         {
             incidentalItem_ = new global::HOLMS.Types.Supply.IncidentalItems.IncidentalItemIndicator();
         }
         IncidentalItem.MergeFrom(other.IncidentalItem);
     }
     if (other.opsdate_ != null)
     {
         if (opsdate_ == null)
         {
             opsdate_ = new global::HOLMS.Types.Primitive.PbLocalDate();
         }
         Opsdate.MergeFrom(other.Opsdate);
     }
 }
Exemple #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (incidentalPrice_ != null)
            {
                hash ^= IncidentalPrice.GetHashCode();
            }
            if (incidentalItem_ != null)
            {
                hash ^= IncidentalItem.GetHashCode();
            }
            if (opsdate_ != null)
            {
                hash ^= Opsdate.GetHashCode();
            }
            return(hash);
        }