public SubmitHotelOrderResponse SubmitHotelOrder(SubmitHotelOrderRequest SubmitHotelOrderRequest) { object[] results = this.Invoke("SubmitHotelOrder", new object[] { SubmitHotelOrderRequest }); return((SubmitHotelOrderResponse)(results[0])); }
public SubmitHotelOrderResponse SubmitHotelOrder(SubmitHotelOrderRequest SubmitHotelOrderRequest) { object[] results = this.Invoke("SubmitHotelOrder", new object[] { SubmitHotelOrderRequest}); return ((SubmitHotelOrderResponse)(results[0])); }
/// <remarks/> public System.IAsyncResult BeginSubmitHotelOrder(SubmitHotelOrderRequest SubmitHotelOrderRequest, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SubmitHotelOrder", new object[] { SubmitHotelOrderRequest}, callback, asyncState); }
/// <remarks/> public System.IAsyncResult BeginSubmitHotelOrder(SubmitHotelOrderRequest SubmitHotelOrderRequest, System.AsyncCallback callback, object asyncState) { return(this.BeginInvoke("SubmitHotelOrder", new object[] { SubmitHotelOrderRequest }, callback, asyncState)); }
public JsResultObject submitHotelOrder(ref OrderModel orderModel) { if (!this.login()) { return LoginFailHandler(""); } SubmitHotelOrderRequest req = new SubmitHotelOrderRequest(); req.RequestHead = this.requestHead; req.RequestHead.GUID = Guid.NewGuid().ToString(); HotelOrderForSubmitHotelOrder hotelOrder=new HotelOrderForSubmitHotelOrder(); RoomForSubmitHotelOrder roomOrder = this.toRoomForSubmitHotelOrder(orderModel); hotelOrder.RoomGroups = new RoomForSubmitHotelOrder[] {roomOrder}; req.HotelOrder = hotelOrder; SubmitHotelOrderResponse res = elongService.SubmitHotelOrder(req); if (res.ResponseHead.ResultCode == ELongApiService.RESULT_CODE_SUCCESS) { orderModel.elongOrderId = res.SubmitHotelOrderResult.HotelOrderID; orderModel.orderStatus = OrderModel.ORDER_STATUS_ZD_SUCCESS; } else { orderModel.remark = res.ResponseHead.ResultMessage; } return SubmitHotelOrderHandler(res); }