Package com.mailersend.sdk.activities
Class ActivitiesList
- java.lang.Object
-
- com.mailersend.sdk.MailerSendResponse
-
- com.mailersend.sdk.activities.ActivitiesList
-
public class ActivitiesList extends MailerSendResponse
ActivitiesList class.
- Version:
- $Id: $Id
- Author:
- mailersend
-
-
Field Summary
Fields Modifier and Type Field Description Activity[]activitiesprotected DatedateFromprotected DatedateToprotected StringdomainIdprotected String[]eventsprotected MailerSendmailersendObj-
Fields inherited from class com.mailersend.sdk.MailerSendResponse
headers, messageId, rateLimit, rateLimitRemaining, responseStatusCode
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedActivitiesList()Protected constructor to prevent creating new instances from outside the SDK
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCurrentPage()Returns the current results pageActivitiesListnextPage()Gets the next activities page using the original filtersvoidpostDeserialize()Is called to perform any actions after the deserialization of the response to the /activities endpoint Do not call directlyActivitiesListpreviousPage()Gets the previous activities page using the original filters
-
-
-
Field Detail
-
activities
@SerializedName("data") public Activity[] activities
-
mailersendObj
protected transient MailerSend mailersendObj
-
dateFrom
protected transient Date dateFrom
-
dateTo
protected transient Date dateTo
-
events
protected transient String[] events
-
domainId
protected transient String domainId
-
-
Method Detail
-
getCurrentPage
public int getCurrentPage()
Returns the current results page- Returns:
- a int.
-
nextPage
public ActivitiesList nextPage() throws MailerSendException
Gets the next activities page using the original filters- Returns:
- a
ActivitiesListobject. - Throws:
MailerSendException
-
previousPage
public ActivitiesList previousPage() throws MailerSendException
Gets the previous activities page using the original filters- Returns:
- a
ActivitiesListobject. - Throws:
MailerSendException
-
postDeserialize
public void postDeserialize()
Is called to perform any actions after the deserialization of the response to the /activities endpoint Do not call directly
-
-