Class CampaignEvent
java.lang.Object
org.apache.unomi.api.Item
org.apache.unomi.api.MetadataItem
org.apache.unomi.api.campaigns.events.CampaignEvent
- All Implemented Interfaces:
Serializable
A specific campaign event to help analyzing your key performance indicators by marking specific dates during your campaign.
- Author:
- : rincevent Created : 17/03/15
- See Also:
-
Field Summary
FieldsFields inherited from class org.apache.unomi.api.MetadataItem
metadata -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new Campaign event.CampaignEvent(Metadata metadata) Instantiates a new Campaign event with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the identifier of the associatedCampaign.getCost()Retrieves the cost associated with this campaign event.Retrieves the currency.Retrieves the event date.Retrieves the timezone.voidsetCampaignId(String campaignId) Sets the campaign id.voidSets the cost.voidsetCurrency(String currency) Sets the currency.voidsetEventDate(Date eventDate) Sets the event date.voidsetTimezone(String timezone) Sets the timezone.Methods inherited from class org.apache.unomi.api.MetadataItem
getMetadata, getScope, setMetadataMethods inherited from class org.apache.unomi.api.Item
equals, getItemId, getItemType, getItemType, getSystemMetadata, getVersion, hashCode, setItemId, setItemType, setScope, setSystemMetadata, setVersion
-
Field Details
-
ITEM_TYPE
The CampaignEvent ITEM_TYPE.
-
-
Constructor Details
-
CampaignEvent
public CampaignEvent()Instantiates a new Campaign event. -
CampaignEvent
Instantiates a new Campaign event with the specified metadata.- Parameters:
metadata- the metadata
-
-
Method Details
-
getCost
Retrieves the cost associated with this campaign event.- Returns:
- the cost associated with this campaign event
-
setCost
Sets the cost.- Parameters:
cost- the cost
-
getCurrency
Retrieves the currency.- Returns:
- the currency
-
setCurrency
Sets the currency.- Parameters:
currency- the currency
-
getEventDate
Retrieves the event date.- Returns:
- the event date
-
setEventDate
Sets the event date.- Parameters:
eventDate- the event date
-
getCampaignId
Retrieves the identifier of the associatedCampaign.- Returns:
- the identifier of the associated
Campaign
-
setCampaignId
Sets the campaign id.- Parameters:
campaignId- the campaign id
-
getTimezone
Retrieves the timezone.- Returns:
- the timezone
-
setTimezone
Sets the timezone.- Parameters:
timezone- the timezone
-