ReviewSearchResult

public abstract class ReviewSearchResult


Result of a review search request.

Summary

Public constructors

Public methods

static ReviewSearchResult
create(String placeId, int count, @Nullable Exception exception)

Creates a new instance of ReviewSearchResult.

abstract int

Returns the number of items found.

abstract @Nullable Exception

Returns the exception if the request failed, or null if successful.

abstract String

Returns the ID of the place associated with the search result.

Public constructors

ReviewSearchResult

public ReviewSearchResult()

Public methods

create

public static ReviewSearchResult create(String placeId, int count, @Nullable Exception exception)

Creates a new instance of ReviewSearchResult.

Parameters
String placeId

The ID of the place associated with the search result.

int count

The number of items found.

@Nullable Exception exception

The exception if the request failed, or null if successful.

getCount

public abstract int getCount()

Returns the number of items found.

getException

public abstract @Nullable Exception getException()

Returns the exception if the request failed, or null if successful.

getPlaceId

public abstract String getPlaceId()

Returns the ID of the place associated with the search result.