Get All Groups

To fetch all the groups in which you are member of call the below method.

Mirrorfly.getAllGroups(fetchFromServer: GET_SERVER_DATA,flyCallBack: (FlyResponse response) {
if(response.isSuccess && response.hasData){
var groupsProfileList = profileFromJson(response.data);;
// Update the UI
}else{
// Fetching group list failed print throwable to find the exception details.
}
});
caution

Need to call getAllGroups atlas once after user login so that the all the groups info will be fetched and saved in local DB else no group related data will be available.

ArgumentTypeDescription
GET_SERVER_DATAboolif true fetches data from the server else fetches data from local database
flyCallbackFlyResponsecallback to observe the action status