CampaignEnrollmentRecord

public class CampaignEnrollmentRecord

This is the record which will be returned when message campaign service is queried for enrollments. It holds the details of an enrollment.

Constructors

CampaignEnrollmentRecord

public CampaignEnrollmentRecord(String externalId, String campaignName, LocalDate referenceDate, CampaignEnrollmentStatus status)

This is the constructor which is used to create an CampaignEnrollmentRecord.

Parameters:
  • externalId – external ID of the created campaign enrollment
  • campaignName – campaign name of the created campaign enrollment
  • referenceDate – reference date of the created campaign enrollment
  • status – status of the campaign enrollment

Methods

getCampaignName

public String getCampaignName()

This returns the Campaign Name of a CampaignEnrollmentRecord.

Returns:name of the campaign the enrollment is assigned to

getExternalId

public String getExternalId()

This returns the External ID of a CampaignEnrollmentRecord.

Returns:external ID of the enrollment

getReferenceDate

public LocalDate getReferenceDate()

This returns the Start Date of a CampaignEnrollmentRecord.

Returns:the reference date of this enrollment

getStatus

public CampaignEnrollmentStatus getStatus()

This returns the Status of a CampaignEnrollmentRecord.

Returns:the status of this enrollment