public class TargetGroupsService extends AbstractMaileonService
TargetGroupsService
client send operational requests to the Maileon TargetGroupsResource
.AbstractMaileonService.QueryParameters
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SERVICE |
MAILEON_XML_TYPE
Constructor and Description |
---|
TargetGroupsService(MaileonConfiguration config)
Instantiates a new Maileon target group service.
|
Modifier and Type | Method and Description |
---|---|
TargetGroup |
deleteTargetGroup(long targetGroupId)
Deletes a targetgroup according to a particular id.
|
TargetGroup |
getTargetGroup(long targetGroupId)
Gets a targetgroup according to a particular id.
|
Page<TargetGroup> |
getTargetGroups(int pageSize,
int pageIndex)
Retuns a page of contact filters using the provided pagination settings.
|
int |
getTargetGroupsCount()
Returns the total count of target groups in the account.
|
delete, delete, delete, encodePath, get, get, get, isCompressionEnabled, isDebug, isRequestCompressionEnabled, post, post, post, put, put, put, setCompressionEnabled, setDebug, setRequestCompressionEnabled
public static final java.lang.String SERVICE
public TargetGroupsService(MaileonConfiguration config)
config
- the configuration of Maileon APIpublic int getTargetGroupsCount() throws MaileonException
MaileonException
public Page<TargetGroup> getTargetGroups(int pageSize, int pageIndex) throws MaileonException
pageSize
- required number of elements in the result page [1..1000].pageIndex
- starts with 1.TargetGroup
objects.MaileonException
public TargetGroup getTargetGroup(long targetGroupId) throws MaileonException
targetGroupId
- of the requested targetgroup IDTargetGroup
instanceMaileonException
public TargetGroup deleteTargetGroup(long targetGroupId) throws MaileonException
targetGroupId
- ID of the targetgroup to deleteTargetGroup
instance that has been deletedMaileonException
Copyright © 2018. All Rights Reserved.