Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
Teldar
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rabab
Teldar
Commits
b6e1c697
Commit
b6e1c697
authored
2 years ago
by
kasmi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix horrible code of rabab
parent
b019e930
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
12 additions
and
10 deletions
+12
-10
tldd-hotels/src/main/java/com/fractalite/hermes/teldar/cfg/TeldarRouteBuilder.java
+1
-1
tldd-hotels/src/main/java/com/fractalite/hermes/teldar/parsers/ParserQuotesresponse.java
+7
-5
tldd-hotels/src/main/java/com/fractalite/hermes/teldar/services/GetHotelDetailsRequest.java
+1
-1
tldd-hotels/src/main/java/com/fractalite/hermes/teldar/services/HotelQuotesRequest.java
+3
-3
tldd-hotels/target/classes/com/fractalite/hermes/teldar/cfg/TeldarRouteBuilder.class
+0
-0
tldd-hotels/target/classes/com/fractalite/hermes/teldar/parsers/ParserQuotesresponse.class
+0
-0
tldd-hotels/target/classes/com/fractalite/hermes/teldar/services/GetHotelDetailsRequest.class
+0
-0
tldd-hotels/target/classes/com/fractalite/hermes/teldar/services/HotelQuotesRequest.class
+0
-0
No files found.
tldd-hotels/src/main/java/com/fractalite/hermes/teldar/cfg/TeldarRouteBuilder.java
View file @
b6e1c697
...
...
@@ -204,7 +204,7 @@ public static final String customerKey = "univairmer.tours"; // Univairmer*/
from
(
nmrOrDirect
+
EP_SEARCH
).
routeId
(
EP_SEARCH
).
setExchangePattern
(
ExchangePattern
.
InOut
)
.
log
(
"Contacting search webservice !!!!! ${body}"
).
choice
()
// stop if morocco
.
when
(
new
JXPathExpression
(
"in/body/trip/content[1]/hotel/address/country/code = '
ma
'"
)).
otherwise
()
.
when
(
new
JXPathExpression
(
"in/body/trip/content[1]/hotel/address/country/code = ''"
)).
otherwise
()
.
process
(
new
Processor
()
{
...
...
This diff is collapsed.
Click to expand it.
tldd-hotels/src/main/java/com/fractalite/hermes/teldar/parsers/ParserQuotesresponse.java
View file @
b6e1c697
...
...
@@ -185,15 +185,17 @@ public class ParserQuotesresponse extends TeldarParsers {
}
int
travellerCount
=
0
;
List
<
Integer
>
childrenAges
=
new
ArrayList
<
Integer
>();
Child
child
=
new
Child
();
//
Child child = new Child();
for
(
int
ch
=
0
;
ch
<
roomOffer
.
getChildrenCount
();
ch
++)
{
if
(
child
.
getAge
()<
2
)
{
Traveller
traveller
=
new
Traveller
(
PaxType
.
INFANT
,
Byte
.
parseByte
(
"10"
));
//if (child.getAge()<2)
{
Traveller
traveller
=
new
Traveller
(
PaxType
.
CHILD
,
Byte
.
parseByte
(
"10"
));
traveller
.
setId
(
Integer
.
toString
(++
travellerCount
));
traveller
.
setClassification
(
PaxType
.
INFANT
);
// traveller.setClassification(PaxType.CHILD
);
trs
.
add
(
traveller
);
childrenAges
.
add
(
10
);
}
...
...
@@ -216,7 +218,7 @@ public class ParserQuotesresponse extends TeldarParsers {
roomProduct
.
getOccupancy2
().
setChildAge
(
childrenAges
);
room
=
new
Room
(
hermesRoomType
,
board
,
bedLayout
,
trs
);
logger
.
info
(
"adultOffers"
+
roomOffer
.
getAdultsCount
());
logger
.
info
(
"adultOffers"
+
roomOffer
.
getAdultsCount
()
+
" child "
+
roomOffer
.
getChildrenCount
()
);
bedLayout
=
new
BedLayout
(
"db"
,
"Double"
,
Byte
.
parseByte
(
""
+
roomOffer
.
getAdultsCount
()
+
roomOffer
.
getChildrenCount
()));
}
...
...
This diff is collapsed.
Click to expand it.
tldd-hotels/src/main/java/com/fractalite/hermes/teldar/services/GetHotelDetailsRequest.java
View file @
b6e1c697
...
...
@@ -43,7 +43,7 @@ public class GetHotelDetailsRequest extends TeldarServices {
customeridentification
.
setPassword
(
TeldarRouteBuilder
.
password
);
customeridentification
.
setCustomerKey
(
TeldarRouteBuilder
.
customerKey
);
gethoteldetails
.
setLanguage
(
"
EN
"
);
gethoteldetails
.
setLanguage
(
"
FR
"
);
gethoteldetails
.
setIdentification
(
customeridentification
);
HotelCode
hotelcode
=
new
HotelCode
();
...
...
This diff is collapsed.
Click to expand it.
tldd-hotels/src/main/java/com/fractalite/hermes/teldar/services/HotelQuotesRequest.java
View file @
b6e1c697
...
...
@@ -70,7 +70,7 @@ public HotelAvailability getList(HotelStay hotelstay) throws ParseException, Dat
destinationcriteria
.
setHotel
(
hotel
);
avaCriteria
.
setDestinationCriteria
(
destinationcriteria
);
hotelavailability
.
setLanguage
(
"
EN
"
);
hotelavailability
.
setLanguage
(
"
FR
"
);
avaCriteria
.
setCheckIn
(
hotelstay
.
getCheckin
().
toString
());
avaCriteria
.
setCheckOut
(
hotelstay
.
getCheckout
().
toString
());
...
...
@@ -78,7 +78,7 @@ public HotelAvailability getList(HotelStay hotelstay) throws ParseException, Dat
Facility
facility
=
new
Facility
();
facility
.
getCode
();
facility
.
getValue
();
RoomCriterias
crit
=
new
RoomCriterias
();
...
...
@@ -96,7 +96,7 @@ public HotelAvailability getList(HotelStay hotelstay) throws ParseException, Dat
if
(
traveller
.
getClassification
()
==
PaxType
.
ADULT
)
nbreOfAdult
++;
//else if (traveller.getClassification() == PaxType.CHILD)
else
if
(
traveller
.
getClassification
()
==
PaxType
.
INFANT
)
else
if
(
traveller
.
getClassification
()
==
PaxType
.
CHILD
)
{
Child
child
=
new
Child
();
...
...
This diff is collapsed.
Click to expand it.
tldd-hotels/target/classes/com/fractalite/hermes/teldar/cfg/TeldarRouteBuilder.class
View file @
b6e1c697
No preview for this file type
This diff is collapsed.
Click to expand it.
tldd-hotels/target/classes/com/fractalite/hermes/teldar/parsers/ParserQuotesresponse.class
View file @
b6e1c697
No preview for this file type
This diff is collapsed.
Click to expand it.
tldd-hotels/target/classes/com/fractalite/hermes/teldar/services/GetHotelDetailsRequest.class
View file @
b6e1c697
No preview for this file type
This diff is collapsed.
Click to expand it.
tldd-hotels/target/classes/com/fractalite/hermes/teldar/services/HotelQuotesRequest.class
View file @
b6e1c697
No preview for this file type
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment