public void MergeFrom(Group other)
 {
     if (other == null)
     {
         return;
     }
     if (other.entityId_ != null)
     {
         if (entityId_ == null)
         {
             entityId_ = new global::HOLMS.Types.CRM.Groups.GroupIndicator();
         }
         EntityId.MergeFrom(other.EntityId);
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.GroupType != 0)
     {
         GroupType = other.GroupType;
     }
     if (other.GroupNumber.Length != 0)
     {
         GroupNumber = other.GroupNumber;
     }
     if (other.creditLimit_ != null)
     {
         if (creditLimit_ == null)
         {
             creditLimit_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         CreditLimit.MergeFrom(other.CreditLimit);
     }
     if (other.Active != false)
     {
         Active = other.Active;
     }
     if (other.contactInfo_ != null)
     {
         if (contactInfo_ == null)
         {
             contactInfo_ = new global::HOLMS.Types.Primitive.ContactInformation();
         }
         ContactInfo.MergeFrom(other.ContactInfo);
     }
     if (other.property_ != null)
     {
         if (property_ == null)
         {
             property_ = new global::HOLMS.Types.TenancyConfig.Indicators.PropertyIndicator();
         }
         Property.MergeFrom(other.Property);
     }
 }
        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.CRM.Groups.GroupIndicator();
                    }
                    input.ReadMessage(entityId_);
                    break;
                }

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

                case 24: {
                    groupType_ = (global::HOLMS.Types.CRM.Groups.GroupType)input.ReadEnum();
                    break;
                }

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

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

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

                case 58: {
                    if (contactInfo_ == null)
                    {
                        contactInfo_ = new global::HOLMS.Types.Primitive.ContactInformation();
                    }
                    input.ReadMessage(contactInfo_);
                    break;
                }

                case 66: {
                    if (property_ == null)
                    {
                        property_ = new global::HOLMS.Types.TenancyConfig.Indicators.PropertyIndicator();
                    }
                    input.ReadMessage(property_);
                    break;
                }
                }
            }
        }
Exemple #3
0
 public virtual global::System.Threading.Tasks.Task <global::HOLMS.Types.CRM.Groups.Group> GetById(global::HOLMS.Types.CRM.Groups.GroupIndicator request, grpc::ServerCallContext context)
 {
     throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
 }
Exemple #4
0
 public virtual grpc::AsyncUnaryCall <global::HOLMS.Types.CRM.Groups.Group> GetByIdAsync(global::HOLMS.Types.CRM.Groups.GroupIndicator request, grpc::Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(GetByIdAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)));
 }
Exemple #5
0
 public virtual grpc::AsyncUnaryCall <global::HOLMS.Types.CRM.Groups.Group> GetByIdAsync(global::HOLMS.Types.CRM.Groups.GroupIndicator request, grpc::CallOptions options)
 {
     return(CallInvoker.AsyncUnaryCall(__Method_GetById, null, options, request));
 }
Exemple #6
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 #7
0
 public virtual global::HOLMS.Types.CRM.Groups.Group GetById(global::HOLMS.Types.CRM.Groups.GroupIndicator request, grpc::CallOptions options)
 {
     return(CallInvoker.BlockingUnaryCall(__Method_GetById, null, options, request));
 }
Exemple #8
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;
     }
 }
 public virtual global::HOLMS.Types.CRM.Groups.Group GetById(global::HOLMS.Types.CRM.Groups.GroupIndicator request, Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(GetById(request, new CallOptions(headers, deadline, cancellationToken)));
 }
Exemple #10
0
 public virtual AsyncUnaryCall <global::HOLMS.Types.Booking.Groups.GroupBookingExt> CreateAsync(global::HOLMS.Types.CRM.Groups.GroupIndicator request, CallOptions options)
 {
     return(CallInvoker.AsyncUnaryCall(__Method_Create, null, options, request));
 }
Exemple #11
0
 public virtual AsyncUnaryCall <global::HOLMS.Types.Booking.Groups.GroupBookingExt> CreateAsync(global::HOLMS.Types.CRM.Groups.GroupIndicator request, Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(CreateAsync(request, new CallOptions(headers, deadline, cancellationToken)));
 }
Exemple #12
0
 public virtual global::System.Threading.Tasks.Task <global::HOLMS.Types.Booking.Groups.GroupBookingExt> Create(global::HOLMS.Types.CRM.Groups.GroupIndicator request, ServerCallContext context)
 {
     throw new RpcException(new Status(StatusCode.Unimplemented, ""));
 }