Get User Feed Meta
To retrieve the user feed meta information in the LikeMinds Feed, use the getUserFeedMeta() function.
Steps to Get User Feed Meta
Build a
GetUserFeedMetaRequestobject.Call the
getUserFeedMeta()function using the instance of theLMFeedClientclass.Use the response as per your requirement.
// Provide user details for fetching the feed meta
String userUniqueId = "user_unique_id_here";
// Build the request object
GetUserFeedMetaRequest request = GetUserFeedMetaRequest(uuid: userUniqueId);
// Get the response from calling the function
final GetUserFeedMetaResponse response = await lmFeedClient.getUserFeedMeta(request);
// Process the response, as per requirement
if(response.success){
// your function to process user feed meta
processUserFeedMeta(response);
}else{
// your function to process error message
processError(response.errorMessage);
}
tip
Fetching user feed meta provides detailed information about a specific user's feed in the LikeMinds Feed.
Models
GetUserFeedMetaRequest
List of parameters for the GetUserFeedMetaRequest class
| Variable | Type | Description | Optional |
|---|---|---|---|
| uuid | String | Unique ID of the user |
GetUserFeedMetaResponse
List of parameters for the GetUserFeedMetaResponse class
| Variable | Type | Description | Optional |
|---|---|---|---|
| success | bool | API success status | |
| errorMessage | String | Error message in case of failure | ✔ |
| commentsCount | int | Count of comments | ✔ |
| postsCount | int | Count of posts | ✔ |
| pendingPostCount | int | Count of pending posts | ✔ |
| users | Map<String, User> | Map of user details (key: user ID) | ✔ |
| widgets | Map<String, WidgetModel> | Map of widget models (key: widget ID) | ✔ |
| userTopics | Map<String, List<String>> | Map of user topics | ✔ |
| topics | Map<String, Topic> | Map of topics | ✔ |