/// <summary> /// Resolve a group membership request sent to the current user /// </summary> /// <param name="id">The Id of the group that sent the request</param> /// <param name="accept">Whether the request has been accepted</param> /// <param name="onComplete">**Optional** Callback for if the request was successfully resolved</param> public void ManageGroupRequest(int id, bool accept, Action <bool> onComplete = null) { GroupResponseRelationshipStatus.UpdateRequest(id, accept, result => { RefreshRelationships(refresh => { onComplete?.Invoke(result && result); }); }); }
/// <summary> /// Cancel a group membership request sent by the current user /// </summary> /// <param name="id">The Id of the group that received the request</param> /// <param name="onComplete">**Optional** Callback for if the request was successfully cancelled</param> public void CancelSentGroupRequest(int id, Action <bool> onComplete = null) { GroupResponseRelationshipStatus.CancelSentRequest(id, result => { RefreshRelationships(refresh => { onComplete?.Invoke(result && result); }); }); }
/// <summary> /// Send group membership request to a group /// </summary> /// <param name="id">The id of the group to send the request to</param> /// <param name="onComplete">**Optional** Callback for if the request was successfully performed</param> public void AddGroup(int id, Action <bool> onComplete = null) { GroupResponseRelationshipStatus.Add(id, result => { RefreshRelationships(refresh => { onComplete?.Invoke(result && result); }); }); }