Skip to content

Activity

It’s a class that represents a user’s activity

Kind: global class
Extends: Base

The constructor function initializes an object with properties based on the provided data, and assigns default values if the data is missing or invalid.

ParamTypeDescription
[data]ObjectThe data for the activity.
clientClientThe client that instantiated this activity.

Converts the current object to a JSON representation.

Kind: instance method of Activity
Returns: Object - - The JSON representation of the object.