Skip to main content
Version: 5.7.0

LeaveGroupAuto

Leave a group in which the user is a member. If member is OWNER, a new owner is automatically selected: most recently active ADMIN; otherwise, most recently active MEMBER; otherwise, group is deleted.

ServiceOperation
groupLEAVE_GROUP_AUTO

Method Parameters

ParameterDescription
groupIdThe id of the group.

Usage

http://localhost:3000
string groupId = "a-group-id";

SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.GroupService.LeaveGroupAuto(groupId, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {}
}