Class PlayURPlugin.CountAction
An action that can have data for a given column appended-to over time. Can be updated frequently, and is updated to the server at a regular interval.
Implements
Inherited Members
Namespace: PlayUR
Assembly: PlayUR.dll
Syntax
public class PlayURPlugin.CountAction : PlayURPlugin.UpdatableAction<int>, PlayURPlugin.IProcessAction
Constructors
| Improve this Doc View SourceCountAction(Action, AnalyticsColumn)
Create an action that can be appended-to over time.
Declaration
public CountAction(Action action, AnalyticsColumn column)
Parameters
Type | Name | Description |
---|---|---|
Action | action | The analytics action id to tag this action with |
AnalyticsColumn | column | The column to use for storing the data |
CountAction(Action, AnalyticsColumn, int)
Create an action that can be appended-to over time, and set the initial data.
Declaration
public CountAction(Action action, AnalyticsColumn column, int initialData)
Parameters
Type | Name | Description |
---|---|---|
Action | action | The analytics action id to tag this action with |
AnalyticsColumn | column | The column to use for storing the data |
int | initialData | The initial data to store in the column |
Fields
| Improve this Doc View Sourcecolumn
Declaration
protected AnalyticsColumn column
Field Value
Type | Description |
---|---|
AnalyticsColumn |
currentDataValue
Declaration
protected int currentDataValue
Field Value
Type | Description |
---|---|
int |
Properties
| Improve this Doc View SourceValue
The current value stored in the column for this action.
Declaration
public int Value { get; }
Property Value
Type | Description |
---|---|
int |
Methods
| Improve this Doc View SourceIncrement(int)
Add to the count for the column for this action. Is not immediately uploaded to server, PlayUR handles this on a regular interval instead.
Declaration
public PlayURPlugin.InProgressAction Increment(int by = 1)
Parameters
Type | Name | Description |
---|---|---|
int | by | The amount to increment by |
Returns
Type | Description |
---|---|
PlayURPlugin.InProgressAction |