OfferCollectionOperations Class

Implements

public class OfferCollectionOperations extends BasePartnerComponentString implements IOfferCollection

Offer Collection operations implementation.

Constructor Summary

Constructor Description
OfferCollectionOperations(IPartner rootPartnerOperations, String country)

Initializes a new instance of the OfferCollectionOperations class.

Method Summary

Modifier and Type Method and Description
ICategoryOffersCollection byCategory(String categoryId)

Retrieves the operations that can be applied on offers the belong to an offer category.

IOffer byId(String offerId)

Retrieves the operations tied with a specific offer.

ResourceCollection<Offer> get()

Retrieves all the offers for the provided country.

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

Retrieves all the offers for the provided country.

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

OfferCollectionOperations

public OfferCollectionOperations(IPartner rootPartnerOperations, String country)

Initializes a new instance of the OfferCollectionOperations class.

Parameters:

rootPartnerOperations - The root partner operations instance.
country - The country on which to base the offers

Method Details

byCategory

public ICategoryOffersCollection byCategory(String categoryId)

Retrieves the operations that can be applied on offers the belong to an offer category.

Parameters:

categoryId - The offer category Id.

Returns:

The category offers operations.

byId

public IOffer byId(String offerId)

Retrieves the operations tied with a specific offer.

Parameters:

offerId - The offer id.

Returns:

The offer operations.

get

public ResourceCollection get()

Retrieves all the offers for the provided country.

Returns:

All offers for the provided country.

get

public ResourceCollection get(int offset, int size)

Retrieves all the offers for the provided country.

Parameters:

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

Returns:

All offers for the provided country.

Applies to