Methods
(static) fetchInterests(userIdopt) → {Promise.<Array.<number>>}
- Source:
Parameters:
| Name |
Type |
Attributes |
Default |
Description |
userId |
number
|
<optional>
|
globalConfig.sessionConfig.userId
|
The user ID |
Returns:
- The list of interests
-
Type
-
Promise.<Array.<number>>
(static) fetchUninterests(userIdopt) → {Promise.<Array.<number>>}
- Source:
Parameters:
| Name |
Type |
Attributes |
Default |
Description |
userId |
number
|
<optional>
|
globalConfig.sessionConfig.userId
|
The user ID |
Returns:
- The list of content the user is not interested in
-
Type
-
Promise.<Array.<number>>
(static) markContentAsInterested(contentId) → {Promise.<any>}
- Source:
Parameters:
| Name |
Type |
Description |
contentId |
number
|
|
Returns:
-
Type
-
Promise.<any>
(static) markContentAsNotInterested(contentId) → {Promise.<any>}
- Source:
Parameters:
| Name |
Type |
Description |
contentId |
number
|
|
Returns:
-
Type
-
Promise.<any>
(static) removeContentAsInterested(contentId) → {Promise.<any>}
- Source:
Parameters:
| Name |
Type |
Description |
contentId |
number
|
|
Returns:
-
Type
-
Promise.<any>
(static) removeContentAsNotInterested(contentId) → {Promise.<any>}
- Source:
Parameters:
| Name |
Type |
Description |
contentId |
number
|
|
Returns:
-
Type
-
Promise.<any>