Class OfferAddOnsOperations
java.lang.Object
com.microsoft.store.partnercenter.BasePartnerComponent<Tuple<String,String>>
com.microsoft.store.partnercenter.offers.OfferAddOnsOperations
- All Implemented Interfaces:
IEntireEntityCollectionRetrievalOperations<Offer,ResourceCollection<Offer>>,IEntityCollectionRetrievalOperations<Offer,ResourceCollection<Offer>>,IPagedEntityCollectionRetrievalOperations<Offer,ResourceCollection<Offer>>,IPartnerComponent<Tuple<String,String>>,IOfferAddOns
public class OfferAddOnsOperations extends BasePartnerComponent<Tuple<String,String>> implements IOfferAddOns
Implements offer add-ons behavior.
-
Constructor Summary
Constructors Constructor Description OfferAddOnsOperations(IPartner rootPartnerOperations, String offerId, String country)Initializes a new instance of the OfferAddOnsOperations class. -
Method Summary
Modifier and Type Method 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.Methods inherited from class com.microsoft.store.partnercenter.BasePartnerComponent
getContext, getPartnerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.microsoft.store.partnercenter.IPartnerComponent
getContext, getPartner
-
Constructor Details
-
OfferAddOnsOperations
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
Retrieves the add-ons for the given offer.- Specified by:
getin interfaceIEntireEntityCollectionRetrievalOperations<Offer,ResourceCollection<Offer>>- Specified by:
getin interfaceIOfferAddOns- Returns:
- The offer add-ons.
-
get
Retrieves a subset of offers for the provided country.- Specified by:
getin interfaceIOfferAddOns- Specified by:
getin interfaceIPagedEntityCollectionRetrievalOperations<Offer,ResourceCollection<Offer>>- Parameters:
offset- The starting index.size- The maximum number of offers to return.- Returns:
- The requested segment of the offers for the provided country.
-