public HotelPropertyDescriptionRS HotelDescription(HotelSelectDto search)
        {
            HotelPropertyDescriptionRQ hpdrq = new HotelPropertyDescriptionRQ();

            hpdrq.AvailRequestSegment
                = new HotelPropertyDescriptionRQAvailRequestSegment();

            hpdrq.AvailRequestSegment.GuestCounts
                = new HotelPropertyDescriptionRQAvailRequestSegmentGuestCounts();
            hpdrq.AvailRequestSegment.GuestCounts.Count = search.TotalTravellers;

            hpdrq.AvailRequestSegment.HotelSearchCriteria =
                new HotelPropertyDescriptionRQAvailRequestSegmentHotelSearchCriteria();
            hpdrq.AvailRequestSegment.HotelSearchCriteria.Criterion
                = new HotelPropertyDescriptionRQAvailRequestSegmentHotelSearchCriteriaCriterion();
            hpdrq.AvailRequestSegment.HotelSearchCriteria.Criterion.HotelRef
                = new HotelPropertyDescriptionRQAvailRequestSegmentHotelSearchCriteriaCriterionHotelRef();
            hpdrq.AvailRequestSegment.HotelSearchCriteria.Criterion.HotelRef.HotelCode = search.HotelCode;

            hpdrq.AvailRequestSegment.TimeSpan
                = new HotelPropertyDescriptionRQAvailRequestSegmentTimeSpan();
            hpdrq.AvailRequestSegment.TimeSpan.Start = search.StartDate;
            hpdrq.AvailRequestSegment.TimeSpan.End = search.EndDate;

            Security1 security = new Security1();
            security.BinarySecurityToken = search.SessionId;

            HotelPropertyDescriptionService hpds = new HotelPropertyDescriptionService();

            hpds.MessageHeaderValue = this.CreateMessageHeader();
            hpds.Security = security;

            var result =  hpds.HotelPropertyDescriptionRQ(hpdrq);
            var XML = Common.Utility.Serialize(result);
            return result;
        }
Beispiel #2
0
 /// <remarks/>
 public void HotelPropertyDescriptionRQAsync(HotelPropertyDescriptionRQ HotelPropertyDescriptionRQ1, object userState) {
     if ((this.HotelPropertyDescriptionRQOperationCompleted == null)) {
         this.HotelPropertyDescriptionRQOperationCompleted = new System.Threading.SendOrPostCallback(this.OnHotelPropertyDescriptionRQOperationCompleted);
     }
     this.InvokeAsync("HotelPropertyDescriptionRQ", new object[] {
                 HotelPropertyDescriptionRQ1}, this.HotelPropertyDescriptionRQOperationCompleted, userState);
 }
Beispiel #3
0
 /// <remarks/>
 public void HotelPropertyDescriptionRQAsync(HotelPropertyDescriptionRQ HotelPropertyDescriptionRQ1) {
     this.HotelPropertyDescriptionRQAsync(HotelPropertyDescriptionRQ1, null);
 }