MediaSearchResult

public abstract class MediaSearchResult


Result of a media search request.

Summary

Public constructors

Public methods

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

Creates a new instance of MediaSearchResult.

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

MediaSearchResult

public MediaSearchResult()

Public methods

create

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

Creates a new instance of MediaSearchResult.

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.