CampaignRequest

public class CampaignRequest

This is the document to enroll an entity into a campaign

Constructors

CampaignRequest

public CampaignRequest()

CampaignRequest

public CampaignRequest(String externalId, String campaignName, LocalDate referenceDate, Time startTime)

Creates a request for enrollment into a campaign. Holds all fields required for the enrollment.

Parameters:
  • externalId – a client defined id to identify the enrollment
  • campaignName – the campaign into which the entity should be enrolled
  • referenceDate – the date the campaign has started for this enrollment. It can be a past date resulting in a delayed enrollment.
  • startTime – time of the day at which the alert must be raised. This overrides the campaign’s deliverTime.

Methods

campaignName

public String campaignName()

deliverTime

public Time deliverTime()

externalId

public String externalId()

referenceDate

public LocalDate referenceDate()

setCampaignName

public void setCampaignName(String campaignName)

setExternalId

public void setExternalId(String externalId)

setReferenceDate

public void setReferenceDate(LocalDate referenceDate)

setStartTime

public void setStartTime(Time startTime)

toString

public String toString()