OfferAddOnsOperations Class

Implements

public class OfferAddOnsOperations extends BasePartnerComponent<Tuple<String,String>> implements IOfferAddOns

Implements offer add-ons behavior.

Constructor Summary

Constructor Description
OfferAddOnsOperations(IPartner rootPartnerOperations, String offerId, String country)

Initializes a new instance of the OfferAddOnsOperations class.

Method Summary

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

Retrieves the add-ons for the given offer.

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

Retrieves a subset of 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

OfferAddOnsOperations

public OfferAddOnsOperations(IPartner rootPartnerOperations, String offerId, String country)

Initializes a new instance of the OfferAddOnsOperations class.

Parameters:

rootPartnerOperations - The root partner operations instance.
offerId - The offer identifier to get its add on offers.
country - The country on which to base the offer add-ons.

Method Details

get

public ResourceCollection get()

Retrieves the add-ons for the given offer.

Returns:

The offer add-ons.

get

public ResourceCollection get(int offset, int size)

Retrieves a subset of offers for the provided country.

Parameters:

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

Returns:

The requested segment of the offers for the provided country.

Applies to