@Immutable @LevelUpApi(contract=PUBLIC) public final class LocationCampaignsRequestFactory extends AbstractRequestFactory
AbstractRequests for interacting with
location campaigns data on the web service.| Constructor and Description |
|---|
LocationCampaignsRequestFactory(Context context) |
LocationCampaignsRequestFactory(Context context,
AccessTokenRetriever retriever) |
| Modifier and Type | Method and Description |
|---|---|
AbstractRequest |
buildGetLocationCampaignsRequest(long locationWebServiceId) |
getAccessTokenRetriever, getContextpublic LocationCampaignsRequestFactory(Context context)
context - the Application context.public LocationCampaignsRequestFactory(Context context, AccessTokenRetriever retriever)
context - Application contextretriever - the implementation of .AccessTokenRetriever to use to get the User's AccessToken if needed.@LevelUpApi(contract=PUBLIC) @RequiresPermission(value="manage_user_campaigns") public AbstractRequest buildGetLocationCampaignsRequest(long locationWebServiceId)
locationWebServiceId - the ID of the Location 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 Location with the ID passed.