CampaignRequest class final

One campaign asking to be shown, plus the driver that asked.

The gates read this and nothing else about where the campaign came from, so they never learn whether a CEP, a live test, or Digia's rule engine delivered it — only driver's SourcePolicy says how the drivers differ.

Constructors

CampaignRequest({required CampaignDriver driver, required CampaignModel campaign, required CEPTriggerPayload trigger})

Properties

campaign → CampaignModel
What they asked to show.
final
driver → CampaignDriver
Who asked.
final
hashCode → int
The hash code for this object.
no setterinherited
payload → CEPTriggerPayload
The delivered trigger with the campaign type stamped on it.
latefinal
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

invalidConfig(String detail, String cause) → RoutingDropped
The drop for a campaign whose own config cannot be rendered, with cause carrying the symbolic reason. Logs it and reports it to the driver first.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited