use of com.facebook.places.model.CurrentPlaceFeedbackRequestParams in project facebook-android-sdk by facebook.
the class PlaceManagerTest method testCurrentPlaceFeedbackRequest.
@Test
public void testCurrentPlaceFeedbackRequest() {
CurrentPlaceFeedbackRequestParams.Builder builder = new CurrentPlaceFeedbackRequestParams.Builder();
builder.setPlaceId("12345");
builder.setTracking("trackingid");
builder.setWasHere(true);
CurrentPlaceFeedbackRequestParams params = builder.build();
GraphRequest request = PlaceManager.newCurrentPlaceFeedbackRequest(params);
assertEquals("current_place/feedback", request.getGraphPath());
assertEquals(HttpMethod.POST, request.getHttpMethod());
Bundle requestParams = request.getParameters();
assertEquals("12345", requestParams.get("place_id"));
assertEquals("trackingid", requestParams.get("tracking"));
assertEquals(true, requestParams.get("was_here"));
}
Aggregations