A Custom Event model object. More...
Public Member Functions | |
| CustomEvent () | |
| Initializes a new instance of the CustomEvent class. | |
| void | AddProperty (string name, string value) |
| Adds a string property. | |
| void | AddProperty (string name, double value) |
| Adds a double property. | |
| void | AddProperty (string name, bool value) |
| Adds a bool property. | |
| void | AddProperty (string name, ICollection< string > value) |
| Adds a string array property. | |
Properties | |
| string | EventName [get, set] |
| Gets or sets the name of the event. | |
| decimal | EventValue [get, set] |
| Gets or sets the event value. | |
| string | TransactionId [get, set] |
| Gets or sets the transaction identifier. | |
| string | InteractionType [get, set] |
| Gets or sets interaction type. | |
| string | InteractionId [get, set] |
| Gets or sets the interaction identifier. | |
Detailed Description
A Custom Event model object.
Constructor & Destructor Documentation
◆ CustomEvent()
|
inline |
Initializes a new instance of the CustomEvent class.
References AirshipSDK.List.
Member Function Documentation
◆ AddProperty() [1/4]
Adds a bool property.
- Parameters
-
name The property name. value The property value.
References AirshipSDK.List.
◆ AddProperty() [2/4]
Adds a double property.
- Parameters
-
name The property name. value The property value.
References AirshipSDK.List.
◆ AddProperty() [3/4]
|
inline |
Adds a string array property.
- Parameters
-
name The property name. value The property value.
References AirshipSDK.List.
◆ AddProperty() [4/4]
Adds a string property.
- Parameters
-
name The property name. value The property value.
References AirshipSDK.List.
Property Documentation
◆ EventName
|
getset |
Gets or sets the name of the event.
The name of the event.
◆ EventValue
|
getset |
Gets or sets the event value.
Reads as 0 on an event that was never given a value. The getter used to parse the backing field unconditionally, which threw on such an event. An unset value and a value of 0 are indistinguishable here; ToJson tells them apart from the backing field and omits the key entirely when nothing was set.
The event value, or 0 if the event carries none.
◆ InteractionId
|
getset |
Gets or sets the interaction identifier.
The interaction identifier.
◆ InteractionType
|
getset |
Gets or sets interaction type.
The interaction type.
◆ TransactionId
|
getset |
Gets or sets the transaction identifier.
The transaction identifier.
1.9.8