コード例 #1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    if (roomType_ == null)
                    {
                        roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomType();
                    }
                    input.ReadMessage(roomType_);
                    break;
                }

                case 18: {
                    rooms_.AddEntriesFrom(input, _repeated_rooms_codec);
                    break;
                }
                }
            }
        }
コード例 #2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    JWToken = input.ReadString();
                    break;
                }

                case 16: {
                    crudAction_ = (global::HOLMS.Types.Primitive.CrudAction)input.ReadEnum();
                    break;
                }

                case 26: {
                    if (roomType_ == null)
                    {
                        roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomType();
                    }
                    input.ReadMessage(roomType_);
                    break;
                }
                }
            }
        }
コード例 #3
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    if (date_ == null)
                    {
                        date_ = new global::HOLMS.Types.Primitive.PbLocalDate();
                    }
                    input.ReadMessage(date_);
                    break;
                }

                case 18: {
                    if (rateSchedule_ == null)
                    {
                        rateSchedule_ = new global::HOLMS.Types.Supply.RateSchedule();
                    }
                    input.ReadMessage(rateSchedule_);
                    break;
                }

                case 26: {
                    if (roomType_ == null)
                    {
                        roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomType();
                    }
                    input.ReadMessage(roomType_);
                    break;
                }

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

                case 40: {
                    IsPriceOverriddenBooking = input.ReadBool();
                    break;
                }
                }
            }
        }
コード例 #4
0
 public void MergeFrom(ReservationCreationSummary 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.BookingId.Length != 0)
     {
         BookingId = other.BookingId;
     }
     if (other.dateRange_ != null)
     {
         if (dateRange_ == null)
         {
             dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange();
         }
         DateRange.MergeFrom(other.DateRange);
     }
     if (other.roomType_ != null)
     {
         if (roomType_ == null)
         {
             roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomType();
         }
         RoomType.MergeFrom(other.RoomType);
     }
     if (other.NumberAdults != 0)
     {
         NumberAdults = other.NumberAdults;
     }
     if (other.NumberChildren != 0)
     {
         NumberChildren = other.NumberChildren;
     }
     if (other.priceEstimate_ != null)
     {
         if (priceEstimate_ == null)
         {
             priceEstimate_ = new global::HOLMS.Types.Booking.Pricing.ReservationPriceEstimate();
         }
         PriceEstimate.MergeFrom(other.PriceEstimate);
     }
     tags_.Add(other.tags_);
 }
コード例 #5
0
 public void MergeFrom(FullRoomType other)
 {
     if (other == null)
     {
         return;
     }
     if (other.roomType_ != null)
     {
         if (roomType_ == null)
         {
             roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomType();
         }
         RoomType.MergeFrom(other.RoomType);
     }
     rooms_.Add(other.rooms_);
 }
コード例 #6
0
 public void MergeFrom(ScheduledPrice other)
 {
     if (other == null)
     {
         return;
     }
     if (other.date_ != null)
     {
         if (date_ == null)
         {
             date_ = new global::HOLMS.Types.Primitive.PbLocalDate();
         }
         Date.MergeFrom(other.Date);
     }
     if (other.rateSchedule_ != null)
     {
         if (rateSchedule_ == null)
         {
             rateSchedule_ = new global::HOLMS.Types.Supply.RateSchedule();
         }
         RateSchedule.MergeFrom(other.RateSchedule);
     }
     if (other.roomType_ != null)
     {
         if (roomType_ == null)
         {
             roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomType();
         }
         RoomType.MergeFrom(other.RoomType);
     }
     if (other.nightlyPrice_ != null)
     {
         if (nightlyPrice_ == null)
         {
             nightlyPrice_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         NightlyPrice.MergeFrom(other.NightlyPrice);
     }
     if (other.IsPriceOverriddenBooking != false)
     {
         IsPriceOverriddenBooking = other.IsPriceOverriddenBooking;
     }
 }
コード例 #7
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 8: {
                    result_ = (global::HOLMS.Types.Supply.RPC.RoomTypeSvcUpdateResult)input.ReadEnum();
                    break;
                }

                case 18: {
                    if (updated_ == null)
                    {
                        updated_ = new global::HOLMS.Types.Supply.RoomTypes.RoomType();
                    }
                    input.ReadMessage(updated_);
                    break;
                }

                case 24: {
                    TotalIllegalHoldDates = input.ReadUInt32();
                    break;
                }

                case 34: {
                    firstIllegalHoldDates_.AddEntriesFrom(input, _repeated_firstIllegalHoldDates_codec);
                    break;
                }
                }
            }
        }
コード例 #8
0
 public void MergeFrom(RoomTypeCrud other)
 {
     if (other == null)
     {
         return;
     }
     if (other.JWToken.Length != 0)
     {
         JWToken = other.JWToken;
     }
     if (other.CrudAction != 0)
     {
         CrudAction = other.CrudAction;
     }
     if (other.roomType_ != null)
     {
         if (roomType_ == null)
         {
             roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomType();
         }
         RoomType.MergeFrom(other.RoomType);
     }
 }
コード例 #9
0
 public void MergeFrom(RoomTypeSvcUpdateResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.updated_ != null)
     {
         if (updated_ == null)
         {
             updated_ = new global::HOLMS.Types.Supply.RoomTypes.RoomType();
         }
         Updated.MergeFrom(other.Updated);
     }
     if (other.TotalIllegalHoldDates != 0)
     {
         TotalIllegalHoldDates = other.TotalIllegalHoldDates;
     }
     firstIllegalHoldDates_.Add(other.firstIllegalHoldDates_);
 }
コード例 #10
0
 public virtual AsyncUnaryCall <global::HOLMS.Types.Supply.RoomTypes.RoomType> UpdateAsync(global::HOLMS.Types.Supply.RoomTypes.RoomType request, Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(UpdateAsync(request, new CallOptions(headers, deadline, cancellationToken)));
 }
コード例 #11
0
 public void MergeFrom(ReservationSummary other)
 {
     if (other == null)
     {
         return;
     }
     if (other.entityId_ != null)
     {
         if (entityId_ == null)
         {
             entityId_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
         }
         EntityId.MergeFrom(other.EntityId);
     }
     if (other.BookingId.Length != 0)
     {
         BookingId = other.BookingId;
     }
     if (other.State != 0)
     {
         State = other.State;
     }
     if (other.guest_ != null)
     {
         if (guest_ == null)
         {
             guest_ = new global::HOLMS.Types.CRM.Guests.Guest();
         }
         Guest.MergeFrom(other.Guest);
     }
     if (other.dateRange_ != null)
     {
         if (dateRange_ == null)
         {
             dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange();
         }
         DateRange.MergeFrom(other.DateRange);
     }
     if (other.roomType_ != null)
     {
         if (roomType_ == null)
         {
             roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomType();
         }
         RoomType.MergeFrom(other.RoomType);
     }
     if (other.GuaranteeStatus != 0)
     {
         GuaranteeStatus = other.GuaranteeStatus;
     }
     if (other.tenancy_ != null)
     {
         if (tenancy_ == null)
         {
             tenancy_ = new global::HOLMS.Types.IAM.TenancyIndicator();
         }
         Tenancy.MergeFrom(other.Tenancy);
     }
     if (other.property_ != null)
     {
         if (property_ == null)
         {
             property_ = new global::HOLMS.Types.TenancyConfig.Indicators.PropertyIndicator();
         }
         Property.MergeFrom(other.Property);
     }
     if (other.Channel != 0)
     {
         Channel = other.Channel;
     }
     if (other.VehiclePlateInformation.Length != 0)
     {
         VehiclePlateInformation = other.VehiclePlateInformation;
     }
     if (other.CurrentOccupiedRoomNumber.Length != 0)
     {
         CurrentOccupiedRoomNumber = other.CurrentOccupiedRoomNumber;
     }
     if (other.currentOccupiedRoom_ != null)
     {
         if (currentOccupiedRoom_ == null)
         {
             currentOccupiedRoom_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator();
         }
         CurrentOccupiedRoom.MergeFrom(other.CurrentOccupiedRoom);
     }
     if (other.TerminalOccupiedRoomNumber.Length != 0)
     {
         TerminalOccupiedRoomNumber = other.TerminalOccupiedRoomNumber;
     }
     if (other.terminalOccupiedRoom_ != null)
     {
         if (terminalOccupiedRoom_ == null)
         {
             terminalOccupiedRoom_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator();
         }
         TerminalOccupiedRoom.MergeFrom(other.TerminalOccupiedRoom);
     }
     if (other.NumberAdults != 0)
     {
         NumberAdults = other.NumberAdults;
     }
     if (other.NumberChildren != 0)
     {
         NumberChildren = other.NumberChildren;
     }
     activeTags_.Add(other.activeTags_);
     if (other.cancellationPolicy_ != null)
     {
         if (cancellationPolicy_ == null)
         {
             cancellationPolicy_ = new global::HOLMS.Types.Booking.Indicators.CancellationPolicyIndicator();
         }
         CancellationPolicy.MergeFrom(other.CancellationPolicy);
     }
     if (other.hkTimePreference_ != null)
     {
         if (hkTimePreference_ == null)
         {
             hkTimePreference_ = new global::HOLMS.Types.Operations.Housekeeping.HousekeepingTime();
         }
         HkTimePreference.MergeFrom(other.HkTimePreference);
     }
     if (other.createdAt_ != null)
     {
         if (createdAt_ == null)
         {
             createdAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         CreatedAt.MergeFrom(other.CreatedAt);
     }
     if (other.OutstandingIssuedRoomKeys != 0)
     {
         OutstandingIssuedRoomKeys = other.OutstandingIssuedRoomKeys;
     }
     if (other.OptaRoomStayIndex != 0)
     {
         OptaRoomStayIndex = other.OptaRoomStayIndex;
     }
     if (other.ReservationIdFromChannel.Length != 0)
     {
         ReservationIdFromChannel = other.ReservationIdFromChannel;
     }
 }
コード例 #12
0
 public virtual global::System.Threading.Tasks.Task <global::HOLMS.Types.Primitive.ServerActionConfirmation> Delete(global::HOLMS.Types.Supply.RoomTypes.RoomType request, grpc::ServerCallContext context)
 {
     throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
 }
コード例 #13
0
 public virtual grpc::AsyncUnaryCall <global::HOLMS.Types.Primitive.ServerActionConfirmation> DeleteAsync(global::HOLMS.Types.Supply.RoomTypes.RoomType request, grpc::CallOptions options)
 {
     return(CallInvoker.AsyncUnaryCall(__Method_Delete, null, options, request));
 }
コード例 #14
0
 public virtual grpc::AsyncUnaryCall <global::HOLMS.Types.Supply.RPC.RoomTypeSvcUpdateResponse> UpdateAsync(global::HOLMS.Types.Supply.RoomTypes.RoomType request, grpc::CallOptions options)
 {
     return(CallInvoker.AsyncUnaryCall(__Method_Update, null, options, request));
 }
コード例 #15
0
 public virtual grpc::AsyncUnaryCall <global::HOLMS.Types.Primitive.ServerActionConfirmation> DeleteAsync(global::HOLMS.Types.Supply.RoomTypes.RoomType request, grpc::Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(DeleteAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)));
 }
コード例 #16
0
 public virtual global::HOLMS.Types.Supply.RPC.RoomTypeSvcUpdateResponse Update(global::HOLMS.Types.Supply.RoomTypes.RoomType request, grpc::Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(Update(request, new grpc::CallOptions(headers, deadline, cancellationToken)));
 }
コード例 #17
0
 public virtual global::HOLMS.Types.Supply.RoomTypes.RoomType Create(global::HOLMS.Types.Supply.RoomTypes.RoomType request, grpc::CallOptions options)
 {
     return(CallInvoker.BlockingUnaryCall(__Method_Create, null, options, request));
 }
コード例 #18
0
 public virtual global::System.Threading.Tasks.Task <global::HOLMS.Types.Supply.RPC.CheckDependenciesResponse> CheckDependencies(global::HOLMS.Types.Supply.RoomTypes.RoomType request, grpc::ServerCallContext context)
 {
     throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
 }
 public void MergeFrom(CompleteOpenReservation other)
 {
     if (other == null)
     {
         return;
     }
     if (other.entityId_ != null)
     {
         if (entityId_ == null)
         {
             entityId_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
         }
         EntityId.MergeFrom(other.EntityId);
     }
     if (other.BookingId.Length != 0)
     {
         BookingId = other.BookingId;
     }
     if (other.State != 0)
     {
         State = other.State;
     }
     if (other.guest_ != null)
     {
         if (guest_ == null)
         {
             guest_ = new global::HOLMS.Types.CRM.Guests.Guest();
         }
         Guest.MergeFrom(other.Guest);
     }
     if (other.dateRange_ != null)
     {
         if (dateRange_ == null)
         {
             dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange();
         }
         DateRange.MergeFrom(other.DateRange);
     }
     if (other.NumberAdults != 0)
     {
         NumberAdults = other.NumberAdults;
     }
     if (other.NumberChildren != 0)
     {
         NumberChildren = other.NumberChildren;
     }
     if (other.roomType_ != null)
     {
         if (roomType_ == null)
         {
             roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomType();
         }
         RoomType.MergeFrom(other.RoomType);
     }
     additionalGuests_.Add(other.additionalGuests_);
     if (other.TaxExempt != false)
     {
         TaxExempt = other.TaxExempt;
     }
     if (other.GuaranteeStatus != 0)
     {
         GuaranteeStatus = other.GuaranteeStatus;
     }
     if (other.unpaidGuaranteeBalance_ != null)
     {
         if (unpaidGuaranteeBalance_ == null)
         {
             unpaidGuaranteeBalance_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         UnpaidGuaranteeBalance.MergeFrom(other.UnpaidGuaranteeBalance);
     }
     if (other.hkTimePreference_ != null)
     {
         if (hkTimePreference_ == null)
         {
             hkTimePreference_ = new global::HOLMS.Types.Operations.Housekeeping.HousekeepingTime();
         }
         HkTimePreference.MergeFrom(other.HkTimePreference);
     }
     if (other.VehiclePlateInformation.Length != 0)
     {
         VehiclePlateInformation = other.VehiclePlateInformation;
     }
     if (other.CurrentOccupiedRoomNumber.Length != 0)
     {
         CurrentOccupiedRoomNumber = other.CurrentOccupiedRoomNumber;
     }
     if (other.currentOccupiedRoom_ != null)
     {
         if (currentOccupiedRoom_ == null)
         {
             currentOccupiedRoom_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator();
         }
         CurrentOccupiedRoom.MergeFrom(other.CurrentOccupiedRoom);
     }
     if (other.TerminalOccupiedRoomNumber.Length != 0)
     {
         TerminalOccupiedRoomNumber = other.TerminalOccupiedRoomNumber;
     }
     if (other.terminalOccupiedRoom_ != null)
     {
         if (terminalOccupiedRoom_ == null)
         {
             terminalOccupiedRoom_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator();
         }
         TerminalOccupiedRoom.MergeFrom(other.TerminalOccupiedRoom);
     }
     activeTags_.Add(other.activeTags_);
     if (other.ChannelManagerId.Length != 0)
     {
         ChannelManagerId = other.ChannelManagerId;
     }
     if (other.SourceChannelId.Length != 0)
     {
         SourceChannelId = other.SourceChannelId;
     }
     if (other.cancellationPolicy_ != null)
     {
         if (cancellationPolicy_ == null)
         {
             cancellationPolicy_ = new global::HOLMS.Types.Booking.Indicators.CancellationPolicyIndicator();
         }
         CancellationPolicy.MergeFrom(other.CancellationPolicy);
     }
 }
コード例 #20
0
 public void MergeFrom(ReservationAmendmentSummary 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.BookingId.Length != 0)
     {
         BookingId = other.BookingId;
     }
     if (other.dateRangePrior_ != null)
     {
         if (dateRangePrior_ == null)
         {
             dateRangePrior_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange();
         }
         DateRangePrior.MergeFrom(other.DateRangePrior);
     }
     if (other.roomTypePrior_ != null)
     {
         if (roomTypePrior_ == null)
         {
             roomTypePrior_ = new global::HOLMS.Types.Supply.RoomTypes.RoomType();
         }
         RoomTypePrior.MergeFrom(other.RoomTypePrior);
     }
     if (other.NumberAdultsPrior != 0)
     {
         NumberAdultsPrior = other.NumberAdultsPrior;
     }
     if (other.NumberChildrenPrior != 0)
     {
         NumberChildrenPrior = other.NumberChildrenPrior;
     }
     if (other.priceEstimatePrior_ != null)
     {
         if (priceEstimatePrior_ == null)
         {
             priceEstimatePrior_ = new global::HOLMS.Types.Booking.Pricing.ReservationPriceEstimate();
         }
         PriceEstimatePrior.MergeFrom(other.PriceEstimatePrior);
     }
     if (other.dateRangeLatter_ != null)
     {
         if (dateRangeLatter_ == null)
         {
             dateRangeLatter_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange();
         }
         DateRangeLatter.MergeFrom(other.DateRangeLatter);
     }
     if (other.roomTypeLatter_ != null)
     {
         if (roomTypeLatter_ == null)
         {
             roomTypeLatter_ = new global::HOLMS.Types.Supply.RoomTypes.RoomType();
         }
         RoomTypeLatter.MergeFrom(other.RoomTypeLatter);
     }
     if (other.NumberAdultsLatter != 0)
     {
         NumberAdultsLatter = other.NumberAdultsLatter;
     }
     if (other.NumberChildrenLatter != 0)
     {
         NumberChildrenLatter = other.NumberChildrenLatter;
     }
     if (other.priceEstimateLatter_ != null)
     {
         if (priceEstimateLatter_ == null)
         {
             priceEstimateLatter_ = new global::HOLMS.Types.Booking.Pricing.ReservationPriceEstimate();
         }
         PriceEstimateLatter.MergeFrom(other.PriceEstimateLatter);
     }
     tagsPrior_.Add(other.tagsPrior_);
     tagsLatter_.Add(other.tagsLatter_);
 }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

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

                case 18: {
                    BookingId = input.ReadString();
                    break;
                }

                case 24: {
                    state_ = (global::HOLMS.Types.Booking.Reservations.ReservationState)input.ReadEnum();
                    break;
                }

                case 34: {
                    if (guest_ == null)
                    {
                        guest_ = new global::HOLMS.Types.CRM.Guests.Guest();
                    }
                    input.ReadMessage(guest_);
                    break;
                }

                case 42: {
                    if (dateRange_ == null)
                    {
                        dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange();
                    }
                    input.ReadMessage(dateRange_);
                    break;
                }

                case 48: {
                    NumberAdults = input.ReadInt32();
                    break;
                }

                case 56: {
                    NumberChildren = input.ReadInt32();
                    break;
                }

                case 66: {
                    if (roomType_ == null)
                    {
                        roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomType();
                    }
                    input.ReadMessage(roomType_);
                    break;
                }

                case 74: {
                    additionalGuests_.AddEntriesFrom(input, _repeated_additionalGuests_codec);
                    break;
                }

                case 88: {
                    TaxExempt = input.ReadBool();
                    break;
                }

                case 96: {
                    guaranteeStatus_ = (global::HOLMS.Types.Booking.Reservations.ReservationGuaranteeStatus)input.ReadEnum();
                    break;
                }

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

                case 122: {
                    if (hkTimePreference_ == null)
                    {
                        hkTimePreference_ = new global::HOLMS.Types.Operations.Housekeeping.HousekeepingTime();
                    }
                    input.ReadMessage(hkTimePreference_);
                    break;
                }

                case 130: {
                    VehiclePlateInformation = input.ReadString();
                    break;
                }

                case 138: {
                    CurrentOccupiedRoomNumber = input.ReadString();
                    break;
                }

                case 146: {
                    if (currentOccupiedRoom_ == null)
                    {
                        currentOccupiedRoom_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator();
                    }
                    input.ReadMessage(currentOccupiedRoom_);
                    break;
                }

                case 154: {
                    TerminalOccupiedRoomNumber = input.ReadString();
                    break;
                }

                case 162: {
                    if (terminalOccupiedRoom_ == null)
                    {
                        terminalOccupiedRoom_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator();
                    }
                    input.ReadMessage(terminalOccupiedRoom_);
                    break;
                }

                case 170: {
                    activeTags_.AddEntriesFrom(input, _repeated_activeTags_codec);
                    break;
                }

                case 178: {
                    ChannelManagerId = input.ReadString();
                    break;
                }

                case 186: {
                    SourceChannelId = input.ReadString();
                    break;
                }

                case 194: {
                    if (cancellationPolicy_ == null)
                    {
                        cancellationPolicy_ = new global::HOLMS.Types.Booking.Indicators.CancellationPolicyIndicator();
                    }
                    input.ReadMessage(cancellationPolicy_);
                    break;
                }
                }
            }
        }
コード例 #22
0
 public void MergeFrom(CancelledReservation other)
 {
     if (other == null)
     {
         return;
     }
     if (other.entityId_ != null)
     {
         if (entityId_ == null)
         {
             entityId_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
         }
         EntityId.MergeFrom(other.EntityId);
     }
     if (other.BookingId.Length != 0)
     {
         BookingId = other.BookingId;
     }
     if (other.State != 0)
     {
         State = other.State;
     }
     if (other.guest_ != null)
     {
         if (guest_ == null)
         {
             guest_ = new global::HOLMS.Types.CRM.Guests.Guest();
         }
         Guest.MergeFrom(other.Guest);
     }
     if (other.dateRange_ != null)
     {
         if (dateRange_ == null)
         {
             dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange();
         }
         DateRange.MergeFrom(other.DateRange);
     }
     if (other.NumberAdults != 0)
     {
         NumberAdults = other.NumberAdults;
     }
     if (other.NumberChildren != 0)
     {
         NumberChildren = other.NumberChildren;
     }
     if (other.roomType_ != null)
     {
         if (roomType_ == null)
         {
             roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomType();
         }
         RoomType.MergeFrom(other.RoomType);
     }
     additionalGuests_.Add(other.additionalGuests_);
     if (other.TaxExempt != false)
     {
         TaxExempt = other.TaxExempt;
     }
     if (other.cancellationPenaltyApplied_ != null)
     {
         if (cancellationPenaltyApplied_ == null)
         {
             cancellationPenaltyApplied_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         CancellationPenaltyApplied.MergeFrom(other.CancellationPenaltyApplied);
     }
     if (other.CancellationReason.Length != 0)
     {
         CancellationReason = other.CancellationReason;
     }
     if (other.cancellationPolicy_ != null)
     {
         if (cancellationPolicy_ == null)
         {
             cancellationPolicy_ = new global::HOLMS.Types.Booking.CancellationPolicy();
         }
         CancellationPolicy.MergeFrom(other.CancellationPolicy);
     }
     if (other.RequestingParty.Length != 0)
     {
         RequestingParty = other.RequestingParty;
     }
     if (other.cancellationDate_ != null)
     {
         if (cancellationDate_ == null)
         {
             cancellationDate_ = new global::HOLMS.Types.Primitive.PbLocalDate();
         }
         CancellationDate.MergeFrom(other.CancellationDate);
     }
     if (other.CancellationNumber != 0L)
     {
         CancellationNumber = other.CancellationNumber;
     }
     activeTags_.Add(other.activeTags_);
 }
コード例 #23
0
 public virtual global::System.Threading.Tasks.Task <global::HOLMS.Types.Supply.RoomTypes.RoomType> Update(global::HOLMS.Types.Supply.RoomTypes.RoomType request, ServerCallContext context)
 {
     throw new RpcException(new Status(StatusCode.Unimplemented, ""));
 }
コード例 #24
0
 public virtual AsyncUnaryCall <global::HOLMS.Types.Supply.RoomTypes.RoomType> UpdateAsync(global::HOLMS.Types.Supply.RoomTypes.RoomType request, CallOptions options)
 {
     return(CallInvoker.AsyncUnaryCall(__Method_Update, null, options, request));
 }
コード例 #25
0
 public virtual grpc::AsyncUnaryCall <global::HOLMS.Types.Supply.RPC.CheckDependenciesResponse> CheckDependenciesAsync(global::HOLMS.Types.Supply.RoomTypes.RoomType request, grpc::Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(CheckDependenciesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)));
 }
コード例 #26
0
 public virtual global::HOLMS.Types.Primitive.ServerActionConfirmation Delete(global::HOLMS.Types.Supply.RoomTypes.RoomType request, CallOptions options)
 {
     return(CallInvoker.BlockingUnaryCall(__Method_Delete, null, options, request));
 }
コード例 #27
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 18: {
                    BookingId = input.ReadString();
                    break;
                }

                case 26: {
                    if (dateRangePrior_ == null)
                    {
                        dateRangePrior_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange();
                    }
                    input.ReadMessage(dateRangePrior_);
                    break;
                }

                case 34: {
                    if (roomTypePrior_ == null)
                    {
                        roomTypePrior_ = new global::HOLMS.Types.Supply.RoomTypes.RoomType();
                    }
                    input.ReadMessage(roomTypePrior_);
                    break;
                }

                case 40: {
                    NumberAdultsPrior = input.ReadUInt32();
                    break;
                }

                case 48: {
                    NumberChildrenPrior = input.ReadUInt32();
                    break;
                }

                case 66: {
                    if (priceEstimatePrior_ == null)
                    {
                        priceEstimatePrior_ = new global::HOLMS.Types.Booking.Pricing.ReservationPriceEstimate();
                    }
                    input.ReadMessage(priceEstimatePrior_);
                    break;
                }

                case 74: {
                    if (dateRangeLatter_ == null)
                    {
                        dateRangeLatter_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange();
                    }
                    input.ReadMessage(dateRangeLatter_);
                    break;
                }

                case 82: {
                    if (roomTypeLatter_ == null)
                    {
                        roomTypeLatter_ = new global::HOLMS.Types.Supply.RoomTypes.RoomType();
                    }
                    input.ReadMessage(roomTypeLatter_);
                    break;
                }

                case 88: {
                    NumberAdultsLatter = input.ReadUInt32();
                    break;
                }

                case 96: {
                    NumberChildrenLatter = input.ReadUInt32();
                    break;
                }

                case 114: {
                    if (priceEstimateLatter_ == null)
                    {
                        priceEstimateLatter_ = new global::HOLMS.Types.Booking.Pricing.ReservationPriceEstimate();
                    }
                    input.ReadMessage(priceEstimateLatter_);
                    break;
                }

                case 122: {
                    tagsPrior_.AddEntriesFrom(input, _repeated_tagsPrior_codec);
                    break;
                }

                case 130: {
                    tagsLatter_.AddEntriesFrom(input, _repeated_tagsLatter_codec);
                    break;
                }
                }
            }
        }
コード例 #28
0
 public virtual grpc::AsyncUnaryCall <global::HOLMS.Types.Supply.RPC.CheckDependenciesResponse> CheckDependenciesAsync(global::HOLMS.Types.Supply.RoomTypes.RoomType request, grpc::CallOptions options)
 {
     return(CallInvoker.AsyncUnaryCall(__Method_CheckDependencies, null, options, request));
 }
コード例 #29
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

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

                case 18: {
                    BookingId = input.ReadString();
                    break;
                }

                case 24: {
                    state_ = (global::HOLMS.Types.Booking.Reservations.ReservationState)input.ReadEnum();
                    break;
                }

                case 34: {
                    if (guest_ == null)
                    {
                        guest_ = new global::HOLMS.Types.CRM.Guests.Guest();
                    }
                    input.ReadMessage(guest_);
                    break;
                }

                case 42: {
                    if (dateRange_ == null)
                    {
                        dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange();
                    }
                    input.ReadMessage(dateRange_);
                    break;
                }

                case 48: {
                    NumberAdults = input.ReadInt32();
                    break;
                }

                case 56: {
                    NumberChildren = input.ReadInt32();
                    break;
                }

                case 66: {
                    if (roomType_ == null)
                    {
                        roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomType();
                    }
                    input.ReadMessage(roomType_);
                    break;
                }

                case 74: {
                    additionalGuests_.AddEntriesFrom(input, _repeated_additionalGuests_codec);
                    break;
                }

                case 88: {
                    TaxExempt = input.ReadBool();
                    break;
                }

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

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

                case 114: {
                    if (cancellationPolicy_ == null)
                    {
                        cancellationPolicy_ = new global::HOLMS.Types.Booking.CancellationPolicy();
                    }
                    input.ReadMessage(cancellationPolicy_);
                    break;
                }

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

                case 130: {
                    if (cancellationDate_ == null)
                    {
                        cancellationDate_ = new global::HOLMS.Types.Primitive.PbLocalDate();
                    }
                    input.ReadMessage(cancellationDate_);
                    break;
                }

                case 136: {
                    CancellationNumber = input.ReadInt64();
                    break;
                }

                case 146: {
                    activeTags_.AddEntriesFrom(input, _repeated_activeTags_codec);
                    break;
                }
                }
            }
        }
コード例 #30
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

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

                case 18: {
                    BookingId = input.ReadString();
                    break;
                }

                case 24: {
                    state_ = (global::HOLMS.Types.Booking.Reservations.ReservationState)input.ReadEnum();
                    break;
                }

                case 34: {
                    if (guest_ == null)
                    {
                        guest_ = new global::HOLMS.Types.CRM.Guests.Guest();
                    }
                    input.ReadMessage(guest_);
                    break;
                }

                case 42: {
                    if (dateRange_ == null)
                    {
                        dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange();
                    }
                    input.ReadMessage(dateRange_);
                    break;
                }

                case 50: {
                    if (roomType_ == null)
                    {
                        roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomType();
                    }
                    input.ReadMessage(roomType_);
                    break;
                }

                case 56: {
                    guaranteeStatus_ = (global::HOLMS.Types.Booking.Reservations.ReservationGuaranteeStatus)input.ReadEnum();
                    break;
                }

                case 66: {
                    if (tenancy_ == null)
                    {
                        tenancy_ = new global::HOLMS.Types.IAM.TenancyIndicator();
                    }
                    input.ReadMessage(tenancy_);
                    break;
                }

                case 74: {
                    if (property_ == null)
                    {
                        property_ = new global::HOLMS.Types.TenancyConfig.Indicators.PropertyIndicator();
                    }
                    input.ReadMessage(property_);
                    break;
                }

                case 80: {
                    channel_ = (global::HOLMS.Types.Booking.Channels.Channel)input.ReadEnum();
                    break;
                }

                case 90: {
                    VehiclePlateInformation = input.ReadString();
                    break;
                }

                case 98: {
                    CurrentOccupiedRoomNumber = input.ReadString();
                    break;
                }

                case 106: {
                    if (currentOccupiedRoom_ == null)
                    {
                        currentOccupiedRoom_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator();
                    }
                    input.ReadMessage(currentOccupiedRoom_);
                    break;
                }

                case 114: {
                    TerminalOccupiedRoomNumber = input.ReadString();
                    break;
                }

                case 122: {
                    if (terminalOccupiedRoom_ == null)
                    {
                        terminalOccupiedRoom_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator();
                    }
                    input.ReadMessage(terminalOccupiedRoom_);
                    break;
                }

                case 128: {
                    NumberAdults = input.ReadInt32();
                    break;
                }

                case 136: {
                    NumberChildren = input.ReadInt32();
                    break;
                }

                case 146: {
                    activeTags_.AddEntriesFrom(input, _repeated_activeTags_codec);
                    break;
                }

                case 170: {
                    if (cancellationPolicy_ == null)
                    {
                        cancellationPolicy_ = new global::HOLMS.Types.Booking.Indicators.CancellationPolicyIndicator();
                    }
                    input.ReadMessage(cancellationPolicy_);
                    break;
                }

                case 178: {
                    if (hkTimePreference_ == null)
                    {
                        hkTimePreference_ = new global::HOLMS.Types.Operations.Housekeeping.HousekeepingTime();
                    }
                    input.ReadMessage(hkTimePreference_);
                    break;
                }

                case 186: {
                    if (createdAt_ == null)
                    {
                        createdAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
                    }
                    input.ReadMessage(createdAt_);
                    break;
                }

                case 192: {
                    OutstandingIssuedRoomKeys = input.ReadInt32();
                    break;
                }

                case 200: {
                    OptaRoomStayIndex = input.ReadInt32();
                    break;
                }

                case 210: {
                    ReservationIdFromChannel = input.ReadString();
                    break;
                }
                }
            }
        }