Skip to content

Commit

Permalink
add client to safety class and fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tsolakoua committed Aug 19, 2020
1 parent ca50fa8 commit 08f2865
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/main/java/com/amadeus/Safety.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public class Safety {
* @hide
*/
public Safety(Amadeus client) {
this.client = client;
this.safetyRatedLocations = new SafetyRatedLocations(client);
}

Expand All @@ -47,4 +48,4 @@ public Safety(Amadeus client) {
public SafetyRatedLocation safetyRatedLocation(String safetyRatedLocationId) {
return new SafetyRatedLocation(client, safetyRatedLocationId);
}
}
}
5 changes: 1 addition & 4 deletions src/main/java/com/amadeus/safety/SafetyRatedLocation.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import com.amadeus.exceptions.ResponseException;
import com.amadeus.resources.Resource;
import com.amadeus.resources.SafePlace;
import com.google.gson.Gson;

/**
* <p>
Expand Down Expand Up @@ -42,9 +41,7 @@ public SafetyRatedLocation(Amadeus client, String safetyRatedLocationId) {
* </p>
*
* <pre>
* amadeus.safety.safetyRatedLocations.get(Params
* .with("longitude", 2.160873)
* .and("latitude", 41.397158));</pre>
* amadeus.safety.safetyRatedLocation("Q930402719").get();</pre>
*
* @param params the parameters to send to the API
* @return an API response object
Expand Down

0 comments on commit 08f2865

Please sign in to comment.