@Immutable @LevelUpApi(contract=PUBLIC) public final class MerchantCampaignsRequestFactory extends AbstractRequestFactory
AbstractRequests for interacting with
merchant campaign data on the web service.| Constructor and Description |
|---|
MerchantCampaignsRequestFactory(Context context,
AccessTokenRetriever retriever) |
| Modifier and Type | Method and Description |
|---|---|
AbstractRequest |
buildGetMerchantCampaignsRequest(long merchantWebServiceId) |
getAccessTokenRetriever, getContextpublic MerchantCampaignsRequestFactory(Context context, AccessTokenRetriever retriever)
context - the Application context.retriever - the implementation of AccessTokenRetriever to use to get the
User's
AccessToken.@LevelUpApi(contract=PUBLIC) @RequiresPermission(value="manage_user_campaigns") public AbstractRequest buildGetMerchantCampaignsRequest(long merchantWebServiceId)
merchantWebServiceId - the ID of the merchant on the web service.AbstractRequest that represents a request to the web service to get the
com.scvngr.levelup.core.model.campaign.CampaignMetadata list of the merchant
with the ID passed.