Class OfferCollectionOperations
java.lang.Object
com.microsoft.store.partnercenter.BasePartnerComponent<String>
com.microsoft.store.partnercenter.BasePartnerComponentString
com.microsoft.store.partnercenter.offers.OfferCollectionOperations
- All Implemented Interfaces:
IPartnerComponent<String>,IPartnerComponentString,IOfferCollection
public class OfferCollectionOperations extends BasePartnerComponentString implements IOfferCollection
Offer Collection operations implementation.
-
Constructor Summary
Constructors Constructor Description OfferCollectionOperations(IPartner rootPartnerOperations, String country)Initializes a new instance of the OfferCollectionOperations class. -
Method Summary
Modifier and Type Method Description ICategoryOffersCollectionbyCategory(String categoryId)Retrieves the operations that can be applied on offers the belong to an offer category.IOfferbyId(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.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
-
OfferCollectionOperations
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
-
byId
Retrieves the operations tied with a specific offer.- Specified by:
byIdin interfaceIOfferCollection- Parameters:
offerId- The offer id.- Returns:
- The offer operations.
-
get
Retrieves all the offers for the provided country.- Specified by:
getin interfaceIOfferCollection- Returns:
- All offers for the provided country.
-
get
Retrieves all the offers for the provided country.- Specified by:
getin interfaceIOfferCollection- Parameters:
offset- The starting index.size- The maximum number of offers to return.- Returns:
- All offers for the provided country.
-
byCategory
Retrieves the operations that can be applied on offers the belong to an offer category.- Specified by:
byCategoryin interfaceIOfferCollection- Parameters:
categoryId- The offer category Id.- Returns:
- The category offers operations.
-