CategoryOffersCollectionOperations Class

Implements

public class CategoryOffersCollectionOperations extends BasePartnerComponent<Tuple<String,String>> implements ICategoryOffersCollection

Constructor Summary

Constructor Description
CategoryOffersCollectionOperations(IPartner rootPartnerOperations, String categoryId, String country)

Initializes a new instance of the CategoryOffersCollectionOperations class.

Method Summary

Modifier and Type Method and Description
ResourceCollection<Offer> get()

Retrieves all the offers in the given offer category.

ResourceCollection<Offer> get(int offset, int size)

Retrieves a subset of offers in the given offer category.

Inherited Members

BasePartnerComponent<TContext>.getContext() BasePartnerComponent<TContext>.getPartner() java.lang.Object.clone() java.lang.Object.equals(java.lang.Object) java.lang.Object.finalize() java.lang.Object.getClass() java.lang.Object.hashCode() java.lang.Object.notify() java.lang.Object.notifyAll() java.lang.Object.toString() java.lang.Object.wait() java.lang.Object.wait(long) java.lang.Object.wait(long,int)

Constructor Details

CategoryOffersCollectionOperations

public CategoryOffersCollectionOperations(IPartner rootPartnerOperations, String categoryId, String country)

Initializes a new instance of the CategoryOffersCollectionOperations class.

Parameters:

rootPartnerOperations - The root partner operations instance.
categoryId - The category identifier which contains the offers.
country - The country on which to base the offers.

Method Details

get

public ResourceCollection get()

Retrieves all the offers in the given offer category.

Returns:

The offers in the given offer category.

get

public ResourceCollection get(int offset, int size)

Retrieves a subset of offers in the given offer category.

Parameters:

offset - The starting index.
size - The maximum number of offers to return.

Returns:

The requested segment of the offers in the given offer category.

Applies to