public class ParameterizedFeedIdentifierBuilder
extends java.lang.Object
Supported feed types are:
FeedIdentifier.Type.SEARCH,
FeedIdentifier.Type.SOUND_SEARCH,
FeedIdentifier.Type.SOUND_TRENDING
| Constructor and Description |
|---|
ParameterizedFeedIdentifierBuilder(FeedIdentifier baseFeedIdentifier)
Supported feed types for now are
FeedIdentifier.Type.SEARCH,
FeedIdentifier.Type.SOUND_SEARCH,
FeedIdentifier.Type.SOUND_TRENDING |
| Modifier and Type | Method and Description |
|---|---|
FeedIdentifier |
build()
Build new
FeedIdentifier with applied changes. |
static boolean |
supportsParametrization(FeedIdentifier feedIdentifier) |
ParameterizedFeedIdentifierBuilder |
withContentRating(Gfycat.ContentRating contentRating)
Feed will contain gfycats with content rating below or equal to provided contentRating.
|
ParameterizedFeedIdentifierBuilder |
withMaxAspectRatio(float maxAspectRatio)
Feed will contain gfycats with aspect ration below maxAspectRatio.
|
ParameterizedFeedIdentifierBuilder |
withMaxLength(float maxLength)
Feed will contain gfycats with length of GIF below maxLength.
|
ParameterizedFeedIdentifierBuilder |
withMinAspectRatio(float minAspectRatio)
Feed will contain gfycats with aspect ration above minAspectRatio
|
ParameterizedFeedIdentifierBuilder |
withMinLength(float minLength)
Feed will contain gfycats with length of GIF above minLength.
|
public ParameterizedFeedIdentifierBuilder(FeedIdentifier baseFeedIdentifier)
FeedIdentifier.Type.SEARCH,
FeedIdentifier.Type.SOUND_SEARCH,
FeedIdentifier.Type.SOUND_TRENDINGbaseFeedIdentifier - - should be one of types listed above.public static boolean supportsParametrization(FeedIdentifier feedIdentifier)
public ParameterizedFeedIdentifierBuilder withMinAspectRatio(float minAspectRatio)
Note that @minAspectRatio should be in range
from FeedIdentifierParameters.MIN_ASPECT_RATIO to FeedIdentifierParameters.MAX_ASPECT_RATIO,
if not it will be converted to nearest acceptable.
public ParameterizedFeedIdentifierBuilder withMaxAspectRatio(float maxAspectRatio)
Note that @maxAspectRatio should be in range
from FeedIdentifierParameters.MIN_ASPECT_RATIO_VALUE to FeedIdentifierParameters.MAX_ASPECT_RATIO,
if not it will be converted to nearest acceptable.
public ParameterizedFeedIdentifierBuilder withMinLength(float minLength)
Note that @minLength should be in range
from FeedIdentifierParameters.MIN_LENGTH_VALUE to FeedIdentifierParameters.MAX_LENGTH_VALUE,
if not it will be converted to nearest acceptable.
public ParameterizedFeedIdentifierBuilder withMaxLength(float maxLength)
Note that @maxLength should be in range
from FeedIdentifierParameters.MIN_LENGTH_VALUE to FeedIdentifierParameters.MAX_LENGTH_VALUE,
if not it will be converted to nearest acceptable.
public ParameterizedFeedIdentifierBuilder withContentRating(Gfycat.ContentRating contentRating)
public FeedIdentifier build()
FeedIdentifier with applied changes.