Class CategoryOffersCollectionOperations
java.lang.Object
com.microsoft.store.partnercenter.BasePartnerComponent<Tuple<String,String>>
com.microsoft.store.partnercenter.offers.CategoryOffersCollectionOperations
- All Implemented Interfaces:
IEntireEntityCollectionRetrievalOperations<Offer,ResourceCollection<Offer>>,IEntityCollectionRetrievalOperations<Offer,ResourceCollection<Offer>>,IPagedEntityCollectionRetrievalOperations<Offer,ResourceCollection<Offer>>,IPartnerComponent<Tuple<String,String>>,ICategoryOffersCollection
public class CategoryOffersCollectionOperations extends BasePartnerComponent<Tuple<String,String>> implements ICategoryOffersCollection
-
Constructor Summary
Constructors Constructor Description CategoryOffersCollectionOperations(IPartner rootPartnerOperations, String categoryId, String country)Initializes a new instance of the CategoryOffersCollectionOperations class. -
Method Summary
Modifier and Type Method 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.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
-
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
Retrieves all the offers in the given offer category.- Specified by:
getin interfaceICategoryOffersCollection- Specified by:
getin interfaceIEntireEntityCollectionRetrievalOperations<Offer,ResourceCollection<Offer>>- Returns:
- The offers in the given offer category.
-
get
Retrieves a subset of offers in the given offer category.- Specified by:
getin interfaceICategoryOffersCollection- 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 in the given offer category.
-