Ejemplo n.º 1
0
 public void MergeFrom(AmendmentHeldLodgingPackage other)
 {
     if (other == null)
     {
         return;
     }
     if (other.holdIndicator_ != null)
     {
         if (holdIndicator_ == null)
         {
             holdIndicator_ = new global::HOLMS.Types.Supply.ReservationAmendmentHoldIndicator();
         }
         HoldIndicator.MergeFrom(other.HoldIndicator);
     }
     if (other.expiresAt_ != null)
     {
         if (expiresAt_ == null)
         {
             expiresAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         ExpiresAt.MergeFrom(other.ExpiresAt);
     }
     if (other.package_ != null)
     {
         if (package_ == null)
         {
             package_ = new global::HOLMS.Types.Supply.Packages.LodgingPackage();
         }
         Package.MergeFrom(other.Package);
     }
 }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (holdIndicator_ != null)
            {
                hash ^= HoldIndicator.GetHashCode();
            }
            if (expiresAt_ != null)
            {
                hash ^= ExpiresAt.GetHashCode();
            }
            if (package_ != null)
            {
                hash ^= Package.GetHashCode();
            }
            return(hash);
        }