CampaignRecord

public class CampaignRecord

Domain representation of a message campaign.

Methods

equals

public boolean equals(Object o)

getCampaignType

public CampaignType getCampaignType()

getId

public Long getId()

getMaxDuration

public String getMaxDuration()

getMessages

public List<CampaignMessageRecord> getMessages()

getName

public String getName()

hashCode

public int hashCode()

setCampaignType

public void setCampaignType(CampaignType type)

setId

public void setId(Long id)

setMaxDuration

public void setMaxDuration(String maxDuration)

setMessages

public void setMessages(List<CampaignMessageRecord> messages)

setName

public void setName(String name)

toCampaign

public Campaign toCampaign()

Converts this domain representation to the specialized representation of a Campaign, based on the campaignType field.

Returns:representation of this campaign

toString

public String toString()

updateFrom

public void updateFrom(CampaignRecord other)

Updates this campaign record with the values taken from the other campaign record. All of the fields of this class will be replaced, except of id.

Parameters:
  • other – a campaign record to update the values from