Class EntitlementCollectionByEntitlementTypeOperations
java.lang.Object
com.microsoft.store.partnercenter.BasePartnerComponent<Tuple<String,String>>
com.microsoft.store.partnercenter.entitlements.EntitlementCollectionByEntitlementTypeOperations
- All Implemented Interfaces:
IEntitlementCollectionByEntitlementType,IEntireEntityCollectionRetrievalOperations<Entitlement,ResourceCollection<Entitlement>>,IPartnerComponent<Tuple<String,String>>
public class EntitlementCollectionByEntitlementTypeOperations extends BasePartnerComponent<Tuple<String,String>> implements IEntitlementCollectionByEntitlementType
Entitlement collection by entitlement type operations class.
-
Constructor Summary
Constructors Constructor Description EntitlementCollectionByEntitlementTypeOperations(IPartner rootPartnerOperations, String customerId, String entitlementType)Initializes a new instance of the EntitlementCollectionByEntitlementTypeOperations class. -
Method Summary
Modifier and Type Method Description ResourceCollection<Entitlement>get()Gets an entitlement collection with the given entitlement type.ResourceCollection<Entitlement>get(Boolean showExpiry)Gets an entitlement collection with the given entitlement type.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
-
EntitlementCollectionByEntitlementTypeOperations
public EntitlementCollectionByEntitlementTypeOperations(IPartner rootPartnerOperations, String customerId, String entitlementType)Initializes a new instance of the EntitlementCollectionByEntitlementTypeOperations class.- Parameters:
rootPartnerOperations- The root partner operations instance.customerId- Identifier for the customer.entitlementType- The type of entitlement.
-
-
Method Details
-
get
Gets an entitlement collection with the given entitlement type.- Specified by:
getin interfaceIEntireEntityCollectionRetrievalOperations<Entitlement,ResourceCollection<Entitlement>>- Returns:
- The collection of entitlements corresponding to a specific entitlement type for the customer.
-
get
Gets an entitlement collection with the given entitlement type.- Specified by:
getin interfaceIEntitlementCollectionByEntitlementType- Parameters:
showExpiry- A flag to indicate if the expiry date is required to be returned along with the entitlement (if applicable).- Returns:
- The collection of entitlements corresponding to a specific entitlement type for the customer.
-