Skip to content

Commit 3084129

Browse files
author
Simon Jingzhe Huang
committed
chore: add lodging id search examples
1 parent 8577b28 commit 3084129

File tree

5 files changed

+814
-66
lines changed

5 files changed

+814
-66
lines changed

examples/pom.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<maven.compiler.source>1.8</maven.compiler.source>
3232
<maven.compiler.target>1.8</maven.compiler.target>
3333
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
34-
<xap-java-sdk.sdk.version>0.0.15-SNAPSHOT</xap-java-sdk.sdk.version>
34+
<xap-java-sdk.sdk.version>0.0.17-SNAPSHOT</xap-java-sdk.sdk.version>
3535
</properties>
3636

3737
<repositories>
@@ -65,6 +65,12 @@
6565
<artifactId>log4j-slf4j2-impl</artifactId>
6666
<version>2.23.1</version>
6767
</dependency>
68+
69+
<dependency>
70+
<groupId>com.fasterxml.jackson.core</groupId>
71+
<artifactId>jackson-databind</artifactId>
72+
<version>2.18.1</version>
73+
</dependency>
6874
</dependencies>
6975

7076
<build>

examples/src/main/java/com/expediagroup/sdk/xap/examples/scenarios/lodging/AvailabilityCalendarsQuickStartScenario.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,16 @@
2020
import com.expediagroup.sdk.xap.models.AvailabilityCalendarResponse;
2121
import com.expediagroup.sdk.xap.operations.GetLodgingAvailabilityCalendarsOperation;
2222
import com.expediagroup.sdk.xap.operations.GetLodgingAvailabilityCalendarsOperationParams;
23-
import org.slf4j.Logger;
24-
import org.slf4j.LoggerFactory;
2523
import java.util.Arrays;
2624
import java.util.HashSet;
25+
import org.slf4j.Logger;
26+
import org.slf4j.LoggerFactory;
2727

2828
/**
2929
* This example demonstrates how to use Availability Calendar api with simple search.
30-
* Note: this is a Vrbo scenario. You need a key that is enabled for Vrbo brand to run this.
30+
* In terms of how to get property Ids, you can refer to {@link QuotesQuickStartScenario}.
31+
*
32+
* <p>Note: this is a Vrbo scenario. You need a key that is enabled for Vrbo brand to run this.
3133
*/
3234
public class AvailabilityCalendarsQuickStartScenario implements VrboScenario {
3335

0 commit comments

Comments
 (0)