Ejemplo n.º 1
0
 public void MergeFrom(DateRestriction other)
 {
     if (other == null)
     {
         return;
     }
     if (other.propertyId_ != null)
     {
         if (propertyId_ == null)
         {
             propertyId_ = new global::HOLMS.Types.TenancyConfig.Indicators.PropertyIndicator();
         }
         PropertyId.MergeFrom(other.PropertyId);
     }
     if (other.opsdate_ != null)
     {
         if (opsdate_ == null)
         {
             opsdate_ = new global::HOLMS.Types.Primitive.PbLocalDate();
         }
         Opsdate.MergeFrom(other.Opsdate);
     }
     if (other.ClosedToArrival != false)
     {
         ClosedToArrival = other.ClosedToArrival;
     }
     if (other.MinimumStayNights != 0)
     {
         MinimumStayNights = other.MinimumStayNights;
     }
 }
 public void MergeFrom(RoomType other)
 {
     if (other == null)
     {
         return;
     }
     if (other.entityId_ != null)
     {
         if (entityId_ == null)
         {
             entityId_ = new global::HOLMS.Types.Supply.RoomTypes.RoomTypeIndicator();
         }
         EntityId.MergeFrom(other.EntityId);
     }
     if (other.Description.Length != 0)
     {
         Description = other.Description;
     }
     if (other.NormalOccupancy != 0)
     {
         NormalOccupancy = other.NormalOccupancy;
     }
     if (other.MaxOccupancy != 0)
     {
         MaxOccupancy = other.MaxOccupancy;
     }
     if (other.CleaningTimeCheckoutMins != 0)
     {
         CleaningTimeCheckoutMins = other.CleaningTimeCheckoutMins;
     }
     if (other.CleaningTimeStayoverMins != 0)
     {
         CleaningTimeStayoverMins = other.CleaningTimeStayoverMins;
     }
     if (other.CleaningTimeDustMins != 0)
     {
         CleaningTimeDustMins = other.CleaningTimeDustMins;
     }
     if (other.CleaningTimeDeepMins != 0)
     {
         CleaningTimeDeepMins = other.CleaningTimeDeepMins;
     }
     if (other.BaseManagementHolds != 0)
     {
         BaseManagementHolds = other.BaseManagementHolds;
     }
     if (other.AdditionalWebHolds != 0)
     {
         AdditionalWebHolds = other.AdditionalWebHolds;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.propertyId_ != null)
     {
         if (propertyId_ == null)
         {
             propertyId_ = new global::HOLMS.Types.TenancyConfig.Indicators.PropertyIndicator();
         }
         PropertyId.MergeFrom(other.PropertyId);
     }
     if (other.PropertyName.Length != 0)
     {
         PropertyName = other.PropertyName;
     }
     if (other.ChannelManagerId.Length != 0)
     {
         ChannelManagerId = other.ChannelManagerId;
     }
 }