public virtual AsyncUnaryCall <global::HOLMS.Types.Primitive.ServerActionConfirmation> DeleteAsync(global::HOLMS.Types.TenancyConfig.ReservationSource request, CallOptions options)
 {
     return(CallInvoker.AsyncUnaryCall(__Method_Delete, null, options, request));
 }
 public virtual global::System.Threading.Tasks.Task <global::HOLMS.Types.Primitive.ServerActionConfirmation> Delete(global::HOLMS.Types.TenancyConfig.ReservationSource request, ServerCallContext context)
 {
     throw new RpcException(new Status(StatusCode.Unimplemented, ""));
 }
 public virtual AsyncUnaryCall <global::HOLMS.Types.TenancyConfig.ReservationSource> UpdateAsync(global::HOLMS.Types.TenancyConfig.ReservationSource request, CallOptions options)
 {
     return(CallInvoker.AsyncUnaryCall(__Method_Update, null, options, request));
 }
 public virtual AsyncUnaryCall <global::HOLMS.Types.Primitive.ServerActionConfirmation> DeleteAsync(global::HOLMS.Types.TenancyConfig.ReservationSource request, Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(DeleteAsync(request, new CallOptions(headers, deadline, cancellationToken)));
 }
 public virtual global::HOLMS.Types.TenancyConfig.ReservationSource Update(global::HOLMS.Types.TenancyConfig.ReservationSource request, Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(Update(request, new CallOptions(headers, deadline, cancellationToken)));
 }
 public virtual global::HOLMS.Types.TenancyConfig.ReservationSource Update(global::HOLMS.Types.TenancyConfig.ReservationSource request, CallOptions options)
 {
     return(CallInvoker.BlockingUnaryCall(__Method_Update, null, options, request));
 }
Ejemplo n.º 7
0
 public virtual global::HOLMS.Types.Primitive.ServerActionConfirmation Delete(global::HOLMS.Types.TenancyConfig.ReservationSource request, grpc::CallOptions options)
 {
     return(CallInvoker.BlockingUnaryCall(__Method_Delete, null, options, request));
 }
Ejemplo n.º 8
0
 public virtual global::System.Threading.Tasks.Task <global::HOLMS.Types.TenancyConfig.ReservationSource> Update(global::HOLMS.Types.TenancyConfig.ReservationSource request, grpc::ServerCallContext context)
 {
     throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
 }
Ejemplo n.º 9
0
 public virtual grpc::AsyncUnaryCall <global::HOLMS.Types.TenancyConfig.ReservationSource> UpdateAsync(global::HOLMS.Types.TenancyConfig.ReservationSource request, grpc::Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(UpdateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)));
 }
        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;
                }

                case 154: {
                    if (reservationSource_ == null)
                    {
                        reservationSource_ = new global::HOLMS.Types.TenancyConfig.ReservationSource();
                    }
                    input.ReadMessage(reservationSource_);
                    break;
                }
                }
            }
        }
 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_);
     if (other.reservationSource_ != null)
     {
         if (reservationSource_ == null)
         {
             reservationSource_ = new global::HOLMS.Types.TenancyConfig.ReservationSource();
         }
         ReservationSource.MergeFrom(other.ReservationSource);
     }
 }
 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.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);
     }
     if (other.FirstNightAssignedRoom.Length != 0)
     {
         FirstNightAssignedRoom = other.FirstNightAssignedRoom;
     }
     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);
     }
     if (other.ReservationIdFromChannel.Length != 0)
     {
         ReservationIdFromChannel = other.ReservationIdFromChannel;
     }
     if (other.RushReservationIdFromChannel.Length != 0)
     {
         RushReservationIdFromChannel = other.RushReservationIdFromChannel;
     }
     if (other.SourceIndirectChannel.Length != 0)
     {
         SourceIndirectChannel = other.SourceIndirectChannel;
     }
     if (other.reservationSource_ != null)
     {
         if (reservationSource_ == null)
         {
             reservationSource_ = new global::HOLMS.Types.TenancyConfig.ReservationSource();
         }
         ReservationSource.MergeFrom(other.ReservationSource);
     }
 }
        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 80: {
                    TaxExempt = input.ReadBool();
                    break;
                }

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

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

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

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

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

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

                case 154: {
                    FirstNightAssignedRoom = input.ReadString();
                    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;
                }

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

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

                case 218: {
                    SourceIndirectChannel = input.ReadString();
                    break;
                }

                case 226: {
                    if (reservationSource_ == null)
                    {
                        reservationSource_ = new global::HOLMS.Types.TenancyConfig.ReservationSource();
                    }
                    input.ReadMessage(reservationSource_);
                    break;
                }
                }
            }
        }