Exemple #1
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.GroupBookingIndicator();
                    }
                    input.ReadMessage(entityId_);
                    break;
                }

                case 16: {
                    status_ = (global::HOLMS.Types.Booking.Groups.GroupBookingStatus)input.ReadEnum();
                    break;
                }

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

                case 34: {
                    TaxId = input.ReadString();
                    break;
                }

                case 40: {
                    GroupPaysLodging = input.ReadBool();
                    break;
                }

                case 48: {
                    GroupPaysIncidentals = input.ReadBool();
                    break;
                }

                case 58: {
                    AdditionalNotes = input.ReadString();
                    break;
                }

                case 66: {
                    CustomerBookingId = input.ReadString();
                    break;
                }

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

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

                case 98: {
                    if (group_ == null)
                    {
                        group_ = new global::HOLMS.Types.CRM.Groups.GroupIndicator();
                    }
                    input.ReadMessage(group_);
                    break;
                }

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

                case 114: {
                    if (bookingMethod_ == null)
                    {
                        bookingMethod_ = new global::HOLMS.Types.TenancyConfig.Indicators.GroupBookingMethodIndicator();
                    }
                    input.ReadMessage(bookingMethod_);
                    break;
                }

                case 122: {
                    if (arrivalTemplateId_ == null)
                    {
                        arrivalTemplateId_ = new global::HOLMS.Types.Primitive.Uuid();
                    }
                    input.ReadMessage(arrivalTemplateId_);
                    break;
                }

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

                case 138: {
                    if (travelAgent_ == null)
                    {
                        travelAgent_ = new global::HOLMS.Types.Booking.Indicators.TravelAgentIndicator();
                    }
                    input.ReadMessage(travelAgent_);
                    break;
                }

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

                case 154: {
                    GroupName = input.ReadString();
                    break;
                }
                }
            }
        }
Exemple #2
0
 public virtual global::System.Threading.Tasks.Task <global::HOLMS.Types.Booking.Channels.TravelAgent> GetById(global::HOLMS.Types.Booking.Indicators.TravelAgentIndicator request, grpc::ServerCallContext context)
 {
     throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
 }
Exemple #3
0
 public void MergeFrom(GroupBooking other)
 {
     if (other == null)
     {
         return;
     }
     if (other.entityId_ != null)
     {
         if (entityId_ == null)
         {
             entityId_ = new global::HOLMS.Types.Booking.Indicators.GroupBookingIndicator();
         }
         EntityId.MergeFrom(other.EntityId);
     }
     if (other.Status != 0)
     {
         Status = other.Status;
     }
     if (other.TaxExempt != false)
     {
         TaxExempt = other.TaxExempt;
     }
     if (other.TaxId.Length != 0)
     {
         TaxId = other.TaxId;
     }
     if (other.GroupPaysLodging != false)
     {
         GroupPaysLodging = other.GroupPaysLodging;
     }
     if (other.GroupPaysIncidentals != false)
     {
         GroupPaysIncidentals = other.GroupPaysIncidentals;
     }
     if (other.AdditionalNotes.Length != 0)
     {
         AdditionalNotes = other.AdditionalNotes;
     }
     if (other.CustomerBookingId.Length != 0)
     {
         CustomerBookingId = other.CustomerBookingId;
     }
     if (other.dateRange_ != null)
     {
         if (dateRange_ == null)
         {
             dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange();
         }
         DateRange.MergeFrom(other.DateRange);
     }
     if (other.rateSchedule_ != null)
     {
         if (rateSchedule_ == null)
         {
             rateSchedule_ = new global::HOLMS.Types.Supply.RateScheduleIndicator();
         }
         RateSchedule.MergeFrom(other.RateSchedule);
     }
     if (other.group_ != null)
     {
         if (group_ == null)
         {
             group_ = new global::HOLMS.Types.CRM.Groups.GroupIndicator();
         }
         Group.MergeFrom(other.Group);
     }
     if (other.confirmationTemplateId_ != null)
     {
         if (confirmationTemplateId_ == null)
         {
             confirmationTemplateId_ = new global::HOLMS.Types.Primitive.Uuid();
         }
         ConfirmationTemplateId.MergeFrom(other.ConfirmationTemplateId);
     }
     if (other.bookingMethod_ != null)
     {
         if (bookingMethod_ == null)
         {
             bookingMethod_ = new global::HOLMS.Types.TenancyConfig.Indicators.GroupBookingMethodIndicator();
         }
         BookingMethod.MergeFrom(other.BookingMethod);
     }
     if (other.arrivalTemplateId_ != null)
     {
         if (arrivalTemplateId_ == null)
         {
             arrivalTemplateId_ = new global::HOLMS.Types.Primitive.Uuid();
         }
         ArrivalTemplateId.MergeFrom(other.ArrivalTemplateId);
     }
     if (other.reservationSourceId_ != null)
     {
         if (reservationSourceId_ == null)
         {
             reservationSourceId_ = new global::HOLMS.Types.Primitive.Uuid();
         }
         ReservationSourceId.MergeFrom(other.ReservationSourceId);
     }
     if (other.travelAgent_ != null)
     {
         if (travelAgent_ == null)
         {
             travelAgent_ = new global::HOLMS.Types.Booking.Indicators.TravelAgentIndicator();
         }
         TravelAgent.MergeFrom(other.TravelAgent);
     }
     if (other.cancellationPolicy_ != null)
     {
         if (cancellationPolicy_ == null)
         {
             cancellationPolicy_ = new global::HOLMS.Types.Booking.Indicators.CancellationPolicyIndicator();
         }
         CancellationPolicy.MergeFrom(other.CancellationPolicy);
     }
     if (other.GroupName.Length != 0)
     {
         GroupName = other.GroupName;
     }
 }
Exemple #4
0
 public virtual grpc::AsyncUnaryCall <global::HOLMS.Types.Booking.Channels.TravelAgent> GetByIdAsync(global::HOLMS.Types.Booking.Indicators.TravelAgentIndicator request, grpc::CallOptions options)
 {
     return(CallInvoker.AsyncUnaryCall(__Method_GetById, null, options, request));
 }
Exemple #5
0
 public virtual grpc::AsyncUnaryCall <global::HOLMS.Types.Booking.Channels.TravelAgent> GetByIdAsync(global::HOLMS.Types.Booking.Indicators.TravelAgentIndicator request, grpc::Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(GetByIdAsync(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.TravelAgentIndicator();
                    }
                    input.ReadMessage(entityId_);
                    break;
                }

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

                case 24: {
                    commissionType_ = (global::HOLMS.Types.Booking.Channels.CommissionType)input.ReadEnum();
                    break;
                }

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

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

                case 50: {
                    GivenName = input.ReadString();
                    break;
                }

                case 58: {
                    FamilyName = input.ReadString();
                    break;
                }

                case 66: {
                    BusinessAddress1 = input.ReadString();
                    break;
                }

                case 74: {
                    BusinessAddress2 = input.ReadString();
                    break;
                }

                case 82: {
                    BusinessCity = input.ReadString();
                    break;
                }

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

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

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

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

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

                case 130: {
                    BusinessEmailAddress = input.ReadString();
                    break;
                }
                }
            }
        }
 public void MergeFrom(TravelAgent other)
 {
     if (other == null)
     {
         return;
     }
     if (other.entityId_ != null)
     {
         if (entityId_ == null)
         {
             entityId_ = new global::HOLMS.Types.Booking.Indicators.TravelAgentIndicator();
         }
         EntityId.MergeFrom(other.EntityId);
     }
     if (other.IataId.Length != 0)
     {
         IataId = other.IataId;
     }
     if (other.CommissionType != 0)
     {
         CommissionType = other.CommissionType;
     }
     if (other.commissionAmount_ != null)
     {
         if (commissionAmount_ == null)
         {
             commissionAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         CommissionAmount.MergeFrom(other.CommissionAmount);
     }
     if (other.commissionPercentage_ != null)
     {
         if (commissionPercentage_ == null)
         {
             commissionPercentage_ = new global::HOLMS.Types.Primitive.FixedPointRatio();
         }
         CommissionPercentage.MergeFrom(other.CommissionPercentage);
     }
     if (other.GivenName.Length != 0)
     {
         GivenName = other.GivenName;
     }
     if (other.FamilyName.Length != 0)
     {
         FamilyName = other.FamilyName;
     }
     if (other.BusinessAddress1.Length != 0)
     {
         BusinessAddress1 = other.BusinessAddress1;
     }
     if (other.BusinessAddress2.Length != 0)
     {
         BusinessAddress2 = other.BusinessAddress2;
     }
     if (other.BusinessCity.Length != 0)
     {
         BusinessCity = other.BusinessCity;
     }
     if (other.BusinessState.Length != 0)
     {
         BusinessState = other.BusinessState;
     }
     if (other.BusinessZip.Length != 0)
     {
         BusinessZip = other.BusinessZip;
     }
     if (other.BusinessNation.Length != 0)
     {
         BusinessNation = other.BusinessNation;
     }
     if (other.BusinessPhoneNumber.Length != 0)
     {
         BusinessPhoneNumber = other.BusinessPhoneNumber;
     }
     if (other.BusinessFaxNumber.Length != 0)
     {
         BusinessFaxNumber = other.BusinessFaxNumber;
     }
     if (other.BusinessEmailAddress.Length != 0)
     {
         BusinessEmailAddress = other.BusinessEmailAddress;
     }
 }
 public virtual global::HOLMS.Types.Booking.Channels.TravelAgent GetById(global::HOLMS.Types.Booking.Indicators.TravelAgentIndicator request, CallOptions options)
 {
     return(CallInvoker.BlockingUnaryCall(__Method_GetById, null, options, request));
 }