Connection Meta
The connectionMeta()
function is used to retrieve user metadata, including follow status, follower count, and following count.
Steps to Get Connection Meta
Build a
ConnectionMetaRequest
object using theConnectionMetaRequestBuilder
class.Call the
connectionMeta()
function using the instance of theLMFeedClient
class.Use the response (
LMResponse<ConnectionMetaResponse>
) as per your requirement.// Build the request object
final ConnectionMetaRequest connectionMetaRequest =
(ConnectionMetaRequestBuilder()..userUUID('user_id')).build();
// Get the response from calling the function
final LMResponse<ConnectionMetaResponse> connectionMetaResponse =
await LMFeedCore.client.connectionMeta(connectionMetaRequest);
// Process the response, as per requirement
if (connectionMetaResponse.success) {
// your function to handle successful retrieval of connection meta
handleConnectionMetaSuccess(connectionMetaResponse);
} else {
// your function to handle error message
handleConnectionMetaError(connectionMetaResponse.errorMessage);
}
Models
ConnectionMetaRequest
List of parameters for the ConnectionMetaRequest
class
Variable | Type | Description | Optional |
---|---|---|---|
userUUID | String | User ID of a user |
ConnectionMetaResponse
List of parameters for the ConnectionMetaResponse
class
Variable | Type | Description | Optional |
---|---|---|---|
followStatus | bool | Indicates whether you follow the user | |
followersCount | int | Number of the user's followers | |
followingsCount | int | Number of people the user is following |