public class MaileonSchedulingService extends AbstractMaileonService
MaileonSchedulingService
sends operational requests to the ScheduleResource
.AbstractMaileonService.QueryParameters
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SERVICE |
MAILEON_XML_TYPE
Constructor and Description |
---|
MaileonSchedulingService(MaileonConfiguration config)
Constructs a
MaileonSchedulingService . |
Modifier and Type | Method and Description | ||
---|---|---|---|
void |
deleteSchedule(long mailingId)
Deletes the schedule for a given mailing.
|
||
Scheduling |
getSchedule(long mailingId)
Gets the details of the schedule for a given mailing.
|
||
ResponseWrapper |
setSchedule(long mailingId,
Scheduling schedule)
Creates a new scheduling for a given mailing
void setSchedule(long mailingId,
java.lang.String date,
java.lang.String hours,
java.lang.String minutes)
Creates a new scheduling for a given mailing, using the given date.
| ||
void |
updateSchedule(long mailingId,
java.lang.String date,
java.lang.String hours,
java.lang.String minutes)
Updates the current scheduling for a given mailing, using the given date.
|
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 MaileonSchedulingService(MaileonConfiguration config)
MaileonSchedulingService
.config
- Maileon API-Configuration.public void setSchedule(long mailingId, java.lang.String date, java.lang.String hours, java.lang.String minutes) throws MaileonException
mailingId
- The ID of the mailing to set the schedule fordate
- The Date
hours
- The hours of the Time
objectminutes
- The hours of the Time
objectMaileonException
public ResponseWrapper setSchedule(long mailingId, Scheduling schedule) throws MaileonException
mailingId
- The ID of the mailing to set the schedule forschedule
- The Scheduling
MaileonException
public void updateSchedule(long mailingId, java.lang.String date, java.lang.String hours, java.lang.String minutes) throws MaileonException
mailingId
- The ID of the mailing to update the schedule fordate
- The Date
hours
- The hours of the Time
objectminutes
- The hours of the Time
objectMaileonException
public Scheduling getSchedule(long mailingId) throws MaileonException
mailingId
- he ID of the mailing to get the schedule forScheduling
MaileonException
public void deleteSchedule(long mailingId) throws MaileonException
mailingId
- The ID of the mailing to delete the schedule forMaileonException
Copyright © 2018. All Rights Reserved.