Skip to content

Activity

Activity ⇐ Base

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

Kind: global class
Extends: Base

new Activity([data], client)

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.

activity.toJSON() ⇒ Object

Converts the current object to a JSON representation.

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